From 233acdfa16f54211e5a05fd57adf55d9ec0dc647 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 23 Mar 2017 11:20:48 -0600 Subject: [PATCH 1/2] 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 %} From 3dcbcb5e493abdc1c8e73299c4a38d5007d87ae5 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 23 Mar 2017 11:21:19 -0600 Subject: [PATCH 2/2] Prepare for release --- blueprints.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprints.yaml b/blueprints.yaml index 72cb4741..fb247b6f 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Form -version: 2.3.0 +version: 2.3.1 description: Enables the forms handling icon: check-square author: