Add survey duplication actions
This commit is contained in:
@@ -12,6 +12,7 @@ $GLOBALS['TL_DCA']['tl_survey'] = [
|
||||
'ctable' => ['tl_survey_content', 'tl_survey_condition', 'tl_survey_editor', 'tl_survey_submission'],
|
||||
'enableVersioning' => true,
|
||||
'onload_callback' => [
|
||||
[SurveyDcaListener::class, 'handleDuplicateSurveyAction'],
|
||||
[SurveyDcaListener::class, 'refreshSurveyBackendStateIndex'],
|
||||
],
|
||||
'onsubmit_callback' => [
|
||||
@@ -69,6 +70,12 @@ $GLOBALS['TL_DCA']['tl_survey'] = [
|
||||
'primary' => true,
|
||||
'button_callback' => [SurveyDcaListener::class, 'generatePublishedWarningButton'],
|
||||
],
|
||||
'duplicateSurvey' => [
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_survey']['duplicateSurvey'],
|
||||
'href' => 'key=duplicateSurvey',
|
||||
'icon' => 'copy.svg',
|
||||
'button_callback' => [SurveyDcaListener::class, 'generateDuplicateSurveyButton'],
|
||||
],
|
||||
'delete' => [
|
||||
'label' => ['Löschen', 'Eintrag wirklich löschen?'],
|
||||
'href' => 'act=delete',
|
||||
|
||||
Reference in New Issue
Block a user