1 | <?php |
||
15 | class SubscriptionEditType extends AbstractType |
||
16 | { |
||
17 | public function buildForm(FormBuilderInterface $builder, array $options) |
||
18 | { |
||
19 | $builder |
||
20 | ->add('topay', 'money', array( |
||
21 | 'label' => 'paywall.manage.label.topay', |
||
22 | 'error_bubbling' => true, |
||
23 | 'invalid_message' => 'paywall.manage.error.topay', |
||
24 | 'required' => true, |
||
25 | 'currency' => false, |
||
26 | )) |
||
27 | ->add('currency', null, array( |
||
28 | 'label' => 'paywall.step2.label.currency', |
||
29 | 'error_bubbling' => true, |
||
30 | 'invalid_message' => 'paywall.manage.error.currency', |
||
31 | 'required' => true, |
||
32 | )) |
||
33 | ->add('type', 'choice', array( |
||
34 | 'label' => 'paywall.manage.label.paymenttype', |
||
35 | 'choices' => array( |
||
36 | 'P' => 'paywall.manage.label.paid', |
||
37 | 'PN' => 'paywall.manage.label.paidnow', |
||
38 | 'T' => 'paywall.manage.label.trial', |
||
39 | ), |
||
40 | 'required' => true, |
||
41 | )); |
||
42 | } |
||
43 | |||
44 | public function setDefaultOptions(OptionsResolverInterface $resolver) |
||
50 | |||
51 | public function getName() |
||
55 | } |
||
56 |