@@ -30,26 +30,26 @@ |
||
| 30 | 30 | ->add('type', ChoiceType::class, [ |
| 31 | 31 | 'label' => 'sylius.form.credit_card.type', |
| 32 | 32 | 'expanded' => true, |
| 33 | - ]) |
|
| 34 | - ->add('cardholderName', TextType::class, [ |
|
| 33 | + ]) |
|
| 34 | + ->add('cardholderName', TextType::class, [ |
|
| 35 | 35 | 'label' => 'sylius.form.credit_card.cardholder_name', |
| 36 | - ]) |
|
| 37 | - ->add('number', TextType::class, [ |
|
| 38 | - 'label' => 'sylius.form.credit_card.number', |
|
| 39 | - ]) |
|
| 40 | - ->add('securityCode', TextType::class, [ |
|
| 41 | - 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | - ]) |
|
| 43 | - ->add('expiryMonth', ChoiceType::class, [ |
|
| 44 | - 'choices' => $this->getMonthChoices(), |
|
| 45 | - 'choice_translation_domain' => false, |
|
| 46 | - 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 47 | - ]) |
|
| 48 | - ->add('expiryYear', ChoiceType::class, [ |
|
| 49 | - 'choices' => $this->getViableYears(), |
|
| 50 | - 'choice_translation_domain' => false, |
|
| 51 | - 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 52 | - ]) |
|
| 36 | + ]) |
|
| 37 | + ->add('number', TextType::class, [ |
|
| 38 | + 'label' => 'sylius.form.credit_card.number', |
|
| 39 | + ]) |
|
| 40 | + ->add('securityCode', TextType::class, [ |
|
| 41 | + 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | + ]) |
|
| 43 | + ->add('expiryMonth', ChoiceType::class, [ |
|
| 44 | + 'choices' => $this->getMonthChoices(), |
|
| 45 | + 'choice_translation_domain' => false, |
|
| 46 | + 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 47 | + ]) |
|
| 48 | + ->add('expiryYear', ChoiceType::class, [ |
|
| 49 | + 'choices' => $this->getViableYears(), |
|
| 50 | + 'choice_translation_domain' => false, |
|
| 51 | + 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 52 | + ]) |
|
| 53 | 53 | ; |
| 54 | 54 | } |
| 55 | 55 | |