Skip to content

Commit

Permalink
Only include outerclasses DIV if defined #135
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Mar 23, 2017
1 parent cb72d0f commit 233acdf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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
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 233acdf

Please sign in to comment.