From 65430dab6d8c33fc778f1eda8ee483551ae4b9b5 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 14 Jan 2021 18:20:18 +0300 Subject: [PATCH] Form 1.11.0 --- CHANGELOG.md | 12 ++++++++++++ README.md | 8 +++++--- fieldsets/fields/select_media/field.html | 6 +++--- fieldsets/fields/select_template/field.html | 6 +++--- package.json | 2 +- plugin.yaml | 4 ++-- 6 files changed, 26 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 222afc9..1b25214 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ + +# [1.11.0](https://github.com/flextype-plugins/form/compare/v1.10.1...v1.11.0) (2021-01-14) + +### Features + +* **core** update code base for new Flextype 0.9.16 + +### Bug Fixes + +* **fields** fix select_media field +* **fields** fix select_template field + # [1.10.1](https://github.com/flextype-plugins/form/compare/v1.10.0...v1.10.1) (2021-01-07) diff --git a/README.md b/README.md index 96f151e..783cdd5 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

Form Plugin for Flextype

-Version License Total downloads Flextype Quality Score Discord +Version License Total downloads Flextype Quality Score Discord

Form Plugin to render user forms for Flextype. @@ -12,7 +12,7 @@ The following dependencies need to be installed for Form Plugin. | Item | Version | Download | |---|---|---| -| [flextype](https://github.com/flextype/flextype) | 0.9.15 | [download](https://github.com/flextype/flextype/releases) | +| [flextype](https://github.com/flextype/flextype) | 0.9.16 | [download](https://github.com/flextype/flextype/releases) | | [twig](https://github.com/flextype-plugins/twig) | >=2.0.0 | [download](https://github.com/flextype-plugins/twig/releases) | | [jquery](https://github.com/flextype-plugins/jquery) | >=1.0.0 | [download](https://github.com/flextype-plugins/jquery/releases) | @@ -428,7 +428,9 @@ form: ```yaml title: Default default_field: title -icon: 'far fa-file-alt' +icon: + name: "file-alt" + set: "fontawesome|solid" size: 12 form: name: default diff --git a/fieldsets/fields/select_media/field.html b/fieldsets/fields/select_media/field.html index c370d72..033893b 100644 --- a/fieldsets/fields/select_media/field.html +++ b/fieldsets/fields/select_media/field.html @@ -1,10 +1,10 @@ -{% set media_files = filesystem().find().in(PATH_PROJECT ~ '/media/entries/' ~ query.id ~ '/').files() %} +{% set media_files = filesystem().find().depth(0).in(PATH_PROJECT ~ '/media/entries/' ~ query.id ~ '/').files() %}
diff --git a/fieldsets/fields/select_template/field.html b/fieldsets/fields/select_template/field.html index 5486b56..a8510af 100644 --- a/fieldsets/fields/select_template/field.html +++ b/fieldsets/fields/select_template/field.html @@ -1,10 +1,10 @@ -{% set templates = filesystem().find().in(PATH_PROJECT ~ '/themes/' ~ flextype.registry.get('plugins.site.settings.theme') ~ '/templates/').files() %} +{% set templates = filesystem().find().depth(0).in(PATH_PROJECT ~ '/themes/' ~ flextype.registry.get('plugins.site.settings.theme') ~ '/templates/').files() %}
diff --git a/package.json b/package.json index d3947fd..4fbe69b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Form", - "version": "1.10.1", + "version": "1.11.0", "description": "Form Plugin to render user forms for Flextype.", "homepage": "https://flextype.org", "author": "Sergey Romanenko", diff --git a/plugin.yaml b/plugin.yaml index 0de274e..ebb1719 100755 --- a/plugin.yaml +++ b/plugin.yaml @@ -1,5 +1,5 @@ name: Form -version: 1.10.1 +version: 1.11.0 description: Form Plugin to render user forms for Flextype. icon: name: check-circle @@ -16,6 +16,6 @@ keywords: form, fieldsets license: MIT dependencies: - flextype: 0.9.15 + flextype: 0.9.16 twig: '>=2.0.0' jquery: '>=1.0.0'