@@ -31,26 +31,26 @@ |
||
| 31 | 31 | 'label' => 'sylius.form.credit_card.type', |
| 32 | 32 | 'expanded' => true, |
| 33 | 33 | 'choices_as_values' => true, |
| 34 | - ]) |
|
| 35 | - ->add('cardholderName', TextType::class, [ |
|
| 34 | + ]) |
|
| 35 | + ->add('cardholderName', TextType::class, [ |
|
| 36 | 36 | 'label' => 'sylius.form.credit_card.cardholder_name', |
| 37 | - ]) |
|
| 38 | - ->add('number', TextType::class, [ |
|
| 39 | - 'label' => 'sylius.form.credit_card.number', |
|
| 40 | - ]) |
|
| 41 | - ->add('securityCode', TextType::class, [ |
|
| 42 | - 'label' => 'sylius.form.credit_card.security_code', |
|
| 43 | - ]) |
|
| 44 | - ->add('expiryMonth', ChoiceType::class, [ |
|
| 45 | - 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 46 | - 'choices' => $this->getMonthChoices(), |
|
| 47 | - 'choices_as_values' => true, |
|
| 48 | - ]) |
|
| 49 | - ->add('expiryYear', ChoiceType::class, [ |
|
| 50 | - 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 51 | - 'choices' => $this->getViableYears(), |
|
| 52 | - 'choices_as_values' => true, |
|
| 53 | - ]) |
|
| 37 | + ]) |
|
| 38 | + ->add('number', TextType::class, [ |
|
| 39 | + 'label' => 'sylius.form.credit_card.number', |
|
| 40 | + ]) |
|
| 41 | + ->add('securityCode', TextType::class, [ |
|
| 42 | + 'label' => 'sylius.form.credit_card.security_code', |
|
| 43 | + ]) |
|
| 44 | + ->add('expiryMonth', ChoiceType::class, [ |
|
| 45 | + 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 46 | + 'choices' => $this->getMonthChoices(), |
|
| 47 | + 'choices_as_values' => true, |
|
| 48 | + ]) |
|
| 49 | + ->add('expiryYear', ChoiceType::class, [ |
|
| 50 | + 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 51 | + 'choices' => $this->getViableYears(), |
|
| 52 | + 'choices_as_values' => true, |
|
| 53 | + ]) |
|
| 54 | 54 | ; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | return $this->repository->findAll(); |
| 88 | - }, |
|
| 88 | + }, |
|
| 89 | 89 | 'choice_value' => 'code', |
| 90 | 90 | 'choice_label' => 'name', |
| 91 | 91 | 'choice_translation_domain' => false, |