From 7f7125068827f06601b033181ad0c083382bddfe Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 6 Nov 2019 21:55:31 -0700 Subject: [PATCH 01/12] updated changelog date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e053ba54..85115650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # v4.0.0 -## 10/06/2019 +## 11/06/2019 1. [](#new) * Added `tabindex` to global attributes of default field From cda9cfa2902747338d034f6234f000e6f00ad298 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 19 Nov 2019 10:58:35 +0200 Subject: [PATCH 02/12] Improve Grav 1.7 support by not using deprecated `$page->modular()` call --- CHANGELOG.md | 6 ++++++ classes/Form.php | 2 +- form.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85115650..e5c3922b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v4.0.1 +## mm/dd/2019 + +1. [](#new) + * Improve Grav 1.7 support by not using deprecated `$page->modular()` call + # v4.0.0 ## 11/06/2019 diff --git a/classes/Form.php b/classes/Form.php index 285c735e..450ec90b 100644 --- a/classes/Form.php +++ b/classes/Form.php @@ -134,7 +134,7 @@ public function __construct(PageInterface $page, $name = null, $form = null) } // If we're on a modular page, find the real page. - while ($page && $page->modular()) { + while ($page && $page->modularTwig()) { $header = $page->header(); $header->never_cache_twig = true; $page = $page->parent(); diff --git a/form.php b/form.php index 08230bb3..dbc324a4 100644 --- a/form.php +++ b/form.php @@ -157,7 +157,7 @@ public function onPageProcessed(Event $e) // Force never_cache_twig if modular form (recursively up) $current = $page; - while ($current && $current->modular()) { + while ($current && $current->modularTwig()) { $header = $current->header(); $header->never_cache_twig = true; From 3e43df167a81f0febbf1a1fc751b0720fea99805 Mon Sep 17 00:00:00 2001 From: qumuq-til <43707841+qumuq-til@users.noreply.github.com> Date: Mon, 16 Dec 2019 17:00:06 +0300 Subject: [PATCH 03/12] Update textarea.html.twig (#390) removing extraneous %} --- templates/forms/fields/textarea/textarea.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/forms/fields/textarea/textarea.html.twig b/templates/forms/fields/textarea/textarea.html.twig index a3088ee2..44597e71 100644 --- a/templates/forms/fields/textarea/textarea.html.twig +++ b/templates/forms/fields/textarea/textarea.html.twig @@ -17,7 +17,7 @@ {% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %} {% if field.readonly in ['on', 'true', 1] %}readonly="readonly"{% endif %} {% if field.autocomplete in ['on', 'off'] %}autocomplete="{{ field.autocomplete }}"{% endif %} - {% if field.tabindex %}tabindex="{{ field.tabindex }}" %}{% endif %} + {% if field.tabindex %}tabindex="{{ field.tabindex }}"{% endif %} {% if required %}required="required"{% endif %} {% if field.validate.pattern %}pattern="{{ field.validate.pattern }}"{% endif %} {% if field.validate.message %}title="{{ field.validate.message|t|e }}"{% endif %} From d8892f8bc7995aec09c130d7e68a329e483fcd6d Mon Sep 17 00:00:00 2001 From: qumuq-til <43707841+qumuq-til@users.noreply.github.com> Date: Mon, 16 Dec 2019 17:00:24 +0300 Subject: [PATCH 04/12] Update checkbox.html.twig (#395) removing extraneous %} --- templates/forms/fields/checkbox/checkbox.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/forms/fields/checkbox/checkbox.html.twig b/templates/forms/fields/checkbox/checkbox.html.twig index 07c51ef4..c458e979 100644 --- a/templates/forms/fields/checkbox/checkbox.html.twig +++ b/templates/forms/fields/checkbox/checkbox.html.twig @@ -22,7 +22,7 @@ {% if field.autofocus in ['on', 'true', 1] %}autofocus="autofocus"{% endif %} {% if field.novalidate in ['on', 'true', 1] %}novalidate="novalidate"{% endif %} {% if required %}required="required"{% endif %} - {% if field.tabindex %}tabindex="{{ field.tabindex }}" %}{% endif %} + {% if field.tabindex %}tabindex="{{ field.tabindex }}"{% endif %} {% endblock %} />