complete lang form including money format

This commit is contained in:
Manuel Raynaud
2014-05-06 10:53:16 +02:00
parent ca1cb6e4d1
commit 4cd2ea6316
9 changed files with 161 additions and 5 deletions

View File

@@ -91,6 +91,33 @@ class LangCreateForm extends BaseForm
'for' => 'time_lang'
)
))
->add('decimal_separator', 'text', array(
'constraints' => array(
new NotBlank()
),
'label' => Translator::getInstance()->trans('decimal separator'),
'label_attr' => array(
'for' => 'decimal_separator'
)
))
->add('thousands_separator', 'text', array(
'constraints' => array(
new NotBlank()
),
'label' => Translator::getInstance()->trans('thousands separator'),
'label_attr' => array(
'for' => 'thousands_separator'
)
))
->add('decimals', 'text', array(
'constraints' => array(
new NotBlank()
),
'label' => Translator::getInstance()->trans('Sets the number of decimal points'),
'label_attr' => array(
'for' => 'decimals'
)
))
;
}