Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nBundle into raziel057-master

Fixed Conflicts:
	Form/Type/TransUnitType.php
  • Loading branch information
Cédric Girard committed Apr 11, 2014
2 parents a2bd2f2 + ce5e0b3 commit d3b5c8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Form/Type/TransUnitType.php
Expand Up @@ -18,12 +18,16 @@ class TransUnitType extends AbstractType
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('key');
$builder->add('key', 'text', array(
'label' => 'translations.key',
));
$builder->add('domain', 'choice', array(
'label' => 'translations.domain',
'choices' => array_combine($options['domains'], $options['domains']),
));
$builder->add('translations', 'collection', array(
'type' => 'lxk_translation',
'label' => 'translations.page_title',
'required' => false,
'options' => array(
'data_class' => $options['translation_class'],
Expand Down

0 comments on commit d3b5c8a

Please sign in to comment.