Skip to content

Commit

Permalink
Merge branch 'release/5.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Nov 16, 2021
2 parents 668f64a + 01b4a6f commit a3b59e4
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 @@
# v5.1.4
## 11/16/2021

1. [](#bugfix)
* Fixed buttons no longer rendered [#537](https://github.com/getgrav/grav-plugin-form/issues/537)

# v5.1.3
## 10/26/2021

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Form
slug: form
type: plugin
version: 5.1.3
version: 5.1.4
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 @@ -130,7 +130,7 @@
{{ override_inner_markup_fields_start|raw }}
{{ override_inner_markup_fields|raw }}

{% if form.enabled %}
{% if form.isEnabled() ?? true %}
{% include include_form_field('formname', field_layout, 'hidden') %}
{% include include_form_field('formtask', field_layout, 'hidden') %}
{% include include_form_field('uniqueid', field_layout, 'hidden') %}
Expand All @@ -143,7 +143,7 @@
{% block embed_buttons %}
{{ override_inner_markup_buttons_start|raw }}

{% if form.enabled %}
{% if form.isEnabled() ?? true %}
{% for button in form.buttons %}
{% if button.outerclasses is defined %}<div class="{{ button.outerclasses }}">{% endif %}

Expand Down

0 comments on commit a3b59e4

Please sign in to comment.