From e3c8e07e966d9d569e1b2a448caf6a42ad3d361b Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Sun, 14 Feb 2016 10:41:15 +0100 Subject: [PATCH] Instead of overriding the whole Form template, override block. Do not merge yet. Noticed it was overriding just to add a class. This new method will be possible in the next Form Plugin release, as I just added this possibility. Applies to Deliver and Gateway only. --- templates/forms/form.html.twig | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/templates/forms/form.html.twig b/templates/forms/form.html.twig index 50e4351..308b0ff 100644 --- a/templates/forms/form.html.twig +++ b/templates/forms/form.html.twig @@ -1,21 +1,5 @@ -
{{ form.message }}
+{% extends "forms/default/form.html.twig" %} -
-{% for field in form.fields %} - {% set value = form.value(field.name) %} -
- {% include "forms/fields/#{field.type}/#{field.type}.html.twig" %} -
-{% endfor %} - -
- {% for button in form.buttons %} - - {% endfor %} -
- - {{ nonce_field('form', 'form-nonce') }} - -
+{% block button_classes %} +class="button" +{% endblock %}