diff --git a/contao/dca/tl_survey.php b/contao/dca/tl_survey.php index cf58ea8..c322520 100644 --- a/contao/dca/tl_survey.php +++ b/contao/dca/tl_survey.php @@ -47,18 +47,15 @@ $GLOBALS['TL_DCA']['tl_survey'] = [ ], 'operations' => [ 'edit' => [ + 'label' => ['Fragen bearbeiten', 'Fragen der Umfrage bearbeiten'], 'href' => 'table=tl_survey_content', 'icon' => 'children.svg', ], 'editheader' => [ + 'label' => ['Umfrage bearbeiten', 'Umfrage bearbeiten'], 'href' => 'act=edit', 'icon' => 'header.svg', ], - 'publishedWarning' => [ - 'label' => &$GLOBALS['TL_LANG']['tl_survey']['publishedWarning'], - 'icon' => 'important.svg', - 'button_callback' => [SurveyDcaListener::class, 'generatePublishedWarningButton'], - ], 'toggle' => [ 'label' => &$GLOBALS['TL_LANG']['tl_survey']['toggleActive'], 'href' => 'act=toggle&field=isActive', @@ -66,12 +63,20 @@ $GLOBALS['TL_DCA']['tl_survey'] = [ 'primary' => true, 'showInHeader' => true, ], + 'publishedWarning' => [ + 'label' => &$GLOBALS['TL_LANG']['tl_survey']['publishedWarning'], + 'icon' => 'important.svg', + 'primary' => true, + 'button_callback' => [SurveyDcaListener::class, 'generatePublishedWarningButton'], + ], 'delete' => [ + 'label' => ['Löschen', 'Eintrag wirklich löschen?'], 'href' => 'act=delete', 'icon' => 'delete.svg', 'attributes' => 'onclick="if(!confirm(\'Eintrag wirklich löschen?\'))return false;Backend.getScrollOffset()"', ], 'show' => [ + 'label' => ['Details', 'Details des Elements ID %s anzeigen'], 'href' => 'act=show', 'icon' => 'show.svg', ], diff --git a/contao/templates/frontend/member_survey_edit.html.twig b/contao/templates/frontend/member_survey_edit.html.twig index ccccab6..4687abe 100644 --- a/contao/templates/frontend/member_survey_edit.html.twig +++ b/contao/templates/frontend/member_survey_edit.html.twig @@ -33,7 +33,6 @@ {% elseif createMode %}
{{ 'survey.edit.create_text'|trans }}
{{ form_start(surveyForm, {attr: {class: 'survey-form-grid'}}) }} {{ form_widget(surveyForm._token) }} @@ -94,11 +93,6 @@ {{ question.question|striptags|trim ?: ('survey.edit.question_fallback'|trans({'%id%': question.id})) }} -