diff --git a/contao/templates/frontend/event_edit.html.twig b/contao/templates/frontend/event_edit.html.twig index aafe422..1b01ba3 100644 --- a/contao/templates/frontend/event_edit.html.twig +++ b/contao/templates/frontend/event_edit.html.twig @@ -27,7 +27,13 @@ {{ form_row(form.title) }} {{ form_row(form.startDate) }} {{ form_row(form.endDate) }} - {{ form_row(form.addTime) }} +
+
+ {{ form_widget(form.addTime, { attr: { class: (form.addTime.vars.attr.class|default('') ~ ' ns-tag-switch-input')|trim, role: 'switch' } }) }} + {{ form_label(form.addTime) }} +
+ {{ form_errors(form.addTime) }} +
{{ form_row(form.url) }} - {{ form_row(form.addImage) }} +
+
+ {{ form_widget(form.addImage, { attr: { class: (form.addImage.vars.attr.class|default('') ~ ' ns-tag-switch-input')|trim, role: 'switch' } }) }} + {{ form_label(form.addImage) }} +
+ {{ form_errors(form.addImage) }} +
- {{ form_row(form.termsAccepted) }} - {{ form_row(form.isSoldOut) }} - {{ form_row(form.isCanceled) }} - {{ form_row(form.published) }} +
+
+ {{ form_widget(form.termsAccepted, { attr: { class: (form.termsAccepted.vars.attr.class|default('') ~ ' ns-tag-switch-input')|trim, role: 'switch' } }) }} + {{ form_label(form.termsAccepted) }} +
+ {{ form_errors(form.termsAccepted) }} +
+
+
+ {{ form_widget(form.isSoldOut, { attr: { class: (form.isSoldOut.vars.attr.class|default('') ~ ' ns-tag-switch-input')|trim, role: 'switch' } }) }} + {{ form_label(form.isSoldOut) }} +
+ {{ form_errors(form.isSoldOut) }} +
+
+
+ {{ form_widget(form.isCanceled, { attr: { class: (form.isCanceled.vars.attr.class|default('') ~ ' ns-tag-switch-input')|trim, role: 'switch' } }) }} + {{ form_label(form.isCanceled) }} +
+ {{ form_errors(form.isCanceled) }} +
+
+
+ {{ form_widget(form.published, { attr: { class: (form.published.vars.attr.class|default('') ~ ' ns-tag-switch-input')|trim, role: 'switch' } }) }} + {{ form_label(form.published) }} +
+ {{ form_errors(form.published) }} +