From 233acdfa16f54211e5a05fd57adf55d9ec0dc647 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 23 Mar 2017 11:20:48 -0600 Subject: [PATCH] Only include `outerclasses` DIV if defined #135 --- CHANGELOG.md | 6 ++++++ templates/forms/default/form.html.twig | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba872f74..a42217ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v2.3.1 +## 03/23/2017 + +1. [](#bugfix) + * Only include `outerclasses` DIV if defined [#135](https://github.com/getgrav/grav-plugin-form/issues/135) + # v2.3.0 ## 03/17/2017 diff --git a/templates/forms/default/form.html.twig b/templates/forms/default/form.html.twig index 8e6dd09a..00068f1d 100644 --- a/templates/forms/default/form.html.twig +++ b/templates/forms/default/form.html.twig @@ -49,7 +49,7 @@ {% endblock %} {% for button in form.buttons %} -
+ {% if button.outerclasses is defined %}
{% endif %} {% if button.url %} {% endif %} @@ -66,7 +66,7 @@ {% if button.url %} {% endif %} -
+ {% if button.outerclasses is defined %}
{% endif %} {% endfor %} {% block inner_markup_buttons_end %}