{{ forms.text({
name: 'address',
placeholder: "Address"|t('commerce'),
autocomplete: false,
class: 'w-full border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded card-number'~(paymentForm.getErrors('number') ? ' error'),
value: paymentForm.address,
autocomplete: "address"
}) }}
{{ forms.text({
class: 'w-full border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded card-expiry'~(paymentForm.getErrors('month') ? ' error'),
type: 'text',
name: 'city',
placeholder: "City"|t('commerce'),
value: paymentForm.city,
autocomplete: "city"
}) }}
{{ forms.text({
class: 'w-full border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded card-expiry'~(paymentForm.getErrors('year') ? ' error'),
type: 'text',
name: 'state',
placeholder: "State"|t('commerce'),
value: paymentForm.state,
autocomplete: "state"
}) }}
{{ forms.text({
type: 'text',
name: 'postalCode',
placeholder: "Postal Code"|t('commerce'),
class: 'w-full border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded card-cvc'~(paymentForm.getErrors('cvv') ? ' error'),
value: paymentForm.postalCode,
autocomplete: "zip"
}) }}
{{ forms.text({
type: 'text',
name: 'country',
placeholder: "Country"|t('commerce'),
class: 'w-full border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded card-cvc'~(paymentForm.getErrors('cvv') ? ' error'),
value: paymentForm.country,
autocomplete: "country"
}) }}