Skip to content
Snippets Groups Projects
Commit 1ff8f2bf authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Revert "taxonomy-admin: hide children form cause not working"

This reverts commit 671d10f2.
parent b7fd005a
No related branches found
No related tags found
No related merge requests found
......@@ -74,15 +74,14 @@ class CategoryAdmin extends GoGoAbstractAdmin
->add('displayInInfoBar')
->add('displayInForm')
->end()
// 05/2021 not working properly so hiding
// ->panel('categories', array('class' => 'col-xs-12 sub-options-container'))
// ->add('isFixture', HiddenType::class, ['attr' => ['class' => 'gogo-sort-options'], 'label_attr' => ['style' => 'display:none']])
// ->add('options', CollectionType::class, array(
// 'by_reference' => false,
// 'entry_type' => OptionLiteType::class,
// 'allow_add' => true,
// 'label_attr'=> ['style'=> 'display:none']))
// ->end()
->panel('categories', array('class' => 'col-xs-12 sub-options-container'))
->add('isFixture', HiddenType::class, ['attr' => ['class' => 'gogo-sort-options'], 'label_attr' => ['style' => 'display:none']])
->add('options', CollectionType::class, array(
'by_reference' => false,
'entry_type' => OptionLiteType::class,
'allow_add' => true,
'label_attr'=> ['style'=> 'display:none']))
->end()
;
}
......
......@@ -71,14 +71,13 @@ class OptionAdmin extends GoGoAbstractAdmin
->add('displayInInfoBar')
->add('displayInForm')
->end()
// 05/2021 not working properly so hiding
// ->panel('subcategories', array('class' => 'col-xs-12 sub-categories-container'))
// ->add('subcategories', CollectionType::class, array(
// 'by_reference' => false,
// 'entry_type' => CategoryLiteType::class,
// 'allow_add' => true,
// 'label_attr'=> ['style'=> 'display:none']))
// ->end()
->panel('subcategories', array('class' => 'col-xs-12 sub-categories-container'))
->add('subcategories', CollectionType::class, array(
'by_reference' => false,
'entry_type' => CategoryLiteType::class,
'allow_add' => true,
'label_attr'=> ['style'=> 'display:none']))
->end()
->end()
->tab('advanced')
->halfPanelDefault('secondary')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment