From 94f0bb0f56723e540355cef1cacf51ddf1056a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20=C3=85str=C3=B6m?= Date: Sat, 7 Sep 2019 14:26:50 +0200 Subject: [PATCH 001/256] One viewport is enough. --- resources/stubs/addons/resources/views/partials/metadata.twig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/stubs/addons/resources/views/partials/metadata.twig b/resources/stubs/addons/resources/views/partials/metadata.twig index 97fdf2816..1a398c843 100644 --- a/resources/stubs/addons/resources/views/partials/metadata.twig +++ b/resources/stubs/addons/resources/views/partials/metadata.twig @@ -4,7 +4,7 @@ Any other head element should come *after* these tags. #} - + @@ -15,7 +15,6 @@ - {{ template.includes.render('meta')|raw }} From 109186838d200696f7c01e93bec3b21415cd3a6d Mon Sep 17 00:00:00 2001 From: edster Date: Thu, 24 Oct 2019 13:37:43 -0700 Subject: [PATCH 002/256] Add docs on how to extend the ajax form data. Add docs on how to extend the ajax form data. --- docs/en/07.ui/01.forms/02.configuration/07.ajax.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/en/07.ui/01.forms/02.configuration/07.ajax.md b/docs/en/07.ui/01.forms/02.configuration/07.ajax.md index f954612a6..34f04d06c 100644 --- a/docs/en/07.ui/01.forms/02.configuration/07.ajax.md +++ b/docs/en/07.ui/01.forms/02.configuration/07.ajax.md @@ -20,6 +20,11 @@ You can also flag forms as ajax on the fly. $builder->setAjax(true); ``` +## Custom Data + +You can easily add custom data to the JSON response by adding `public function onJsonResponse($data){}` to your form builder. This will allow you to modify the array before it being set in the form response. + + Ajax forms are designed to be included in a modal by default but you can configure it to display using options or however you like. > **In Development:** The Ajax API is still being developed. While ajax forms are usable, more robust JSON response information is still missing.{.note} From 1e48164ca700cff8885bfbddc8c507e33e34a6a1 Mon Sep 17 00:00:00 2001 From: Michal Haracewiat Date: Fri, 25 Oct 2019 12:55:31 +0200 Subject: [PATCH 003/256] Fix the point default Script attends to load wrong config option. Assuming the dot (.) is a defualt value. --- src/Support/Currency.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Support/Currency.php b/src/Support/Currency.php index 27d5ff736..a26b73046 100644 --- a/src/Support/Currency.php +++ b/src/Support/Currency.php @@ -40,7 +40,7 @@ public function format($number, $currency = null, array $options = []) $point = array_get( $options, 'point', - config('streams::currencies.supported.' . $currency . '.point' . '.') + config('streams::currencies.supported.' . $currency . '.point', '.') ); $prefix = null; @@ -80,7 +80,7 @@ public function normalize($number, $currency = null, array $options = []) $point = array_get( $options, 'point', - config('streams::currencies.supported.' . $currency . '.point' . '.') + config('streams::currencies.supported.' . $currency . '.point', '.') ); return number_format(floor(($number * 100)) / 100, $decimals, $point, $separator); From 1d61b84acb1119cbc126d8bf17426961cb9cc83e Mon Sep 17 00:00:00 2001 From: Ryan Thompson Date: Mon, 28 Oct 2019 14:01:34 -0500 Subject: [PATCH 004/256] Add ID support to field type attributes. --- docs/en/01.prologue/02.change-log.md | 5 +++++ resources/views/form/partials/wrapper.twig | 6 ++---- src/Addon/FieldType/FieldType.php | 7 +++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/en/01.prologue/02.change-log.md b/docs/en/01.prologue/02.change-log.md index f87b9ea5c..ef725bc80 100644 --- a/docs/en/01.prologue/02.change-log.md +++ b/docs/en/01.prologue/02.change-log.md @@ -29,6 +29,11 @@ Features that are deprecated will generally be removed in the next `minor` updat ## Releases +### [1.6.179] - 2019-10-28 +#### Added +- Added IDs to default field type attributes. + + ### [1.6.178] - 2019-10-22 #### Fixed - Fix custom error message field prefixes: https://github.com/anomalylabs/streams-platform/pull/673 diff --git a/resources/views/form/partials/wrapper.twig b/resources/views/form/partials/wrapper.twig index b095ed5db..ed9076b16 100644 --- a/resources/views/form/partials/wrapper.twig +++ b/resources/views/form/partials/wrapper.twig @@ -1,6 +1,4 @@ -
{% if field_type.object.label != false and field_type.config.disable_label != true %} -
{% else %} - {% if not form.sections.empty() %} + {% if not form.sections.isEmpty() %} {% for section in form.sections %} {% if section.view %} {% include section.view %} diff --git a/resources/views/form/partials/layout.twig b/resources/views/form/partials/layout.twig index c2dd64bc8..76e7deeb3 100644 --- a/resources/views/form/partials/layout.twig +++ b/resources/views/form/partials/layout.twig @@ -8,7 +8,7 @@ {% else %} - {% if not form.sections.empty() %} + {% if not form.sections.isEmpty() %} {% for section in form.sections %} {% if section.view %} diff --git a/resources/views/grid/grid.twig b/resources/views/grid/grid.twig index f34009dd5..3d3f957ff 100644 --- a/resources/views/grid/grid.twig +++ b/resources/views/grid/grid.twig @@ -4,7 +4,7 @@
- {% if not grid.items.empty() %} + {% if not grid.items.isEmpty() %}