add 'custom_fields_group_linked_custom_fields' type

The type create a choice field with, as choices, the custom fields depending of a customFieldGroup.

The type can only be appended to customFieldsGroupType.
This commit is contained in:
2015-02-24 22:29:20 +01:00
parent 0cecb67645
commit d486676011
2 changed files with 145 additions and 0 deletions

View File

@@ -48,6 +48,13 @@ services:
- "@chill.main.helper.translatable_string"
tags:
- { name: 'chill.custom_field', type: 'choice' }
chill.custom_field.custom_fields_group_linked_custom_fields:
class: Chill\CustomFieldsBundle\Form\Type\LinkedCustomFieldsType
arguments:
- "@chill.main.helper.translatable_string"
tags:
- { name: form.type, alias: custom_fields_group_linked_custom_fields }
chill.custom_field.custom_fields_title_type:
class: Chill\CustomFieldsBundle\Form\Type\CustomFieldsTitleType