Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #245 from symfony-cmf/issue_240
Browse files Browse the repository at this point in the history
Fix link type choice options
  • Loading branch information
wouterj committed Jan 23, 2016
2 parents f1d2d01 + 001b392 commit 6b0fec3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Admin/MenuNodeAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ protected function configureFormFields(FormMapper $formMapper)
$formMapper
->with('form.group_general')
->add('linkType', 'choice_field_mask', array(
'choices' => array(
'route' => 'route',
'uri' => 'uri',
'content' => 'content',
),
'map' => array(
'route' => array('route'),
'uri' => array('uri'),
'route' => array('link'),
'uri' => array('link'),
'content' => array('content', 'doctrine_phpcr_odm_tree'),
),
'empty_value' => 'auto',
Expand Down
4 changes: 4 additions & 0 deletions Resources/translations/CmfMenuBundle.de.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
<source>form.label_link_type</source>
<target>Linktyp</target>
</trans-unit>
<trans-unit id="form.label_link">
<source>form.label_link</source>
<target>Link</target>
</trans-unit>
<trans-unit id="show.label_id">
<source>show.label_id</source>
<target>Id</target>
Expand Down
4 changes: 4 additions & 0 deletions Resources/translations/CmfMenuBundle.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<source>form.label_link_type</source>
<target>Link type</target>
</trans-unit>
<trans-unit id="form.label_link">
<source>form.label_link</source>
<target>Link</target>
</trans-unit>
<trans-unit id="form.label_weak">
<source>form.label_weak</source>
<target>Weak association</target>
Expand Down

0 comments on commit 6b0fec3

Please sign in to comment.