diff --git a/CHANGELOG.md b/CHANGELOG.md index 83da99d0..647101d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,15 @@ +# v1.3.0-beta.5 +## 05/12/2016 + +1. [](#improved) + * Moved form/field.html.twig file to the default folder, to be more easily extended in themes + # v1.3.0-beta.4 ## 05/04/2016 1. [](#new) * Added support for `prepend` and `append` field attributes for Text input - + # v1.3.0-beta.3 ## 05/03/2016 @@ -89,7 +95,7 @@ 1. [](#bugfix) * Fix captcha validation * Fix issue where Form was unsetting valid page - + # v1.0.2 ## 12/01/2015 @@ -97,7 +103,7 @@ * Fixed merge of defaults settings * Support for arrays in `data.txt.twig` * Fixed blueprint for admin - + # v1.0.1 ## 12/01/2015 diff --git a/templates/forms/default/field.html.twig b/templates/forms/default/field.html.twig new file mode 100644 index 00000000..0bc1d7c3 --- /dev/null +++ b/templates/forms/default/field.html.twig @@ -0,0 +1,60 @@ +{% set originalValue = originalValue is defined ? originalValue : value %} +{% set toggleableChecked = field.toggleable and (originalValue is not null and originalValue is not empty) %} +{% set isDisabledToggleable = field.toggleable and not toggleableChecked %} +{% set value = (value is null ? field.default : value) %} + +{% block field %} +