Skip to content

Commit

Permalink
Form 1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jun 23, 2020
1 parent 18f5bd0 commit 55c6045
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="1.1.5"></a>
# [1.1.5](https://github.com/flextype-plugins/form/compare/v1.1.4...v1.1.5) (2020-06-23)

### Bug Fixes

* **fieldsets:** fix form messages on submit

<a name="1.1.4"></a>
# [1.1.4](https://github.com/flextype-plugins/form/compare/v1.1.3...v1.1.4) (2020-06-21)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ form:
name: default
id: default
method: post
message:
messages:
success: true
error: true
buttons:
Expand Down
4 changes: 2 additions & 2 deletions fieldsets/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
{% include "plugins/form/fieldsets/single-form.html" %}
{% endif %}

{% if not fieldset.form.messages.success %}
{% if fieldset.form.messages.success %}
{% for message in flash()['success'] %}
<div class="form-message-success">
{{ message }}
</div>
{% endfor %}
{% endif %}

{% if not fieldset.form.messages.error %}
{% if fieldset.form.messages.error %}
{% for message in flash()['error'] %}
<div class="form-message-error">
{{ message }}
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Form
version: 1.1.4
version: 1.1.5
description: Form Plugin to render user forms for Flextype.
icon: fas fa-check-circle
author:
Expand Down

0 comments on commit 55c6045

Please sign in to comment.