Skip to content

Commit

Permalink
Merge branch 'release/2.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Mar 23, 2017
2 parents 6b34502 + 3dcbcb5 commit 26e91e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Form
version: 2.3.0
version: 2.3.1
description: Enables the forms handling
icon: check-square
author:
Expand Down
4 changes: 2 additions & 2 deletions templates/forms/default/form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% endblock %}

{% for button in form.buttons %}
<div class="{% if button.outerclasses is defined %} {{ button.outerclasses }}{% endif %}">
{% if button.outerclasses is defined %}<div class="{{ button.outerclasses }}">{% endif %}
{% if button.url %}
<a href="{{ button.url starts with 'http' ? button.url : url(button.url) }}">
{% endif %}
Expand All @@ -66,7 +66,7 @@
{% if button.url %}
</a>
{% endif %}
</div>
{% if button.outerclasses is defined %}</div>{% endif %}
{% endfor %}

{% block inner_markup_buttons_end %}
Expand Down

0 comments on commit 26e91e8

Please sign in to comment.