Restore backend active toggle field
This commit is contained in:
@@ -59,13 +59,6 @@ $GLOBALS['TL_DCA']['tl_survey'] = [
|
||||
'icon' => 'important.svg',
|
||||
'button_callback' => [SurveyDcaListener::class, 'generatePublishedWarningButton'],
|
||||
],
|
||||
'toggle' => [
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_survey']['toggleActive'],
|
||||
'href' => 'act=toggle&field=isActive',
|
||||
'icon' => 'visible.svg',
|
||||
'primary' => true,
|
||||
'showInHeader' => true,
|
||||
],
|
||||
'delete' => [
|
||||
'href' => 'act=delete',
|
||||
'icon' => 'delete.svg',
|
||||
@@ -88,7 +81,7 @@ $GLOBALS['TL_DCA']['tl_survey'] = [
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'default' => '{title_legend},title,category,description;{assignment_legend},assignedMembers;{publishing_legend},isTemplate;{meta_legend},createdAt,updatedAt',
|
||||
'default' => '{title_legend},title,category,description;{assignment_legend},assignedMembers;{publishing_legend},isActive,isTemplate;{meta_legend},createdAt,updatedAt',
|
||||
],
|
||||
'fields' => [
|
||||
'id' => [
|
||||
@@ -145,7 +138,9 @@ $GLOBALS['TL_DCA']['tl_survey'] = [
|
||||
],
|
||||
'isActive' => [
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_survey']['isActive'],
|
||||
'toggle' => true,
|
||||
'inputType' => 'checkbox',
|
||||
'eval' => ['tl_class' => 'w50 m12', 'doNotCopy' => true],
|
||||
'sql' => "char(1) NOT NULL default ''",
|
||||
],
|
||||
'isTemplate' => [
|
||||
|
||||
Reference in New Issue
Block a user