Skip to content

Commit

Permalink
EZEE-3324: Form Builder: missing design for checkbox field in the For…
Browse files Browse the repository at this point in the history
…m preview (#1629)
  • Loading branch information
lucasOsti authored Oct 30, 2020
1 parent bfa4bc2 commit a91abcf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"symfony/asset": "^5.0",
"symfony/yaml": "^5.0",
"jms/translation-bundle": "^1.5",
"ezsystems/ezplatform-kernel": "~1.2.0@dev",
"ezsystems/ezplatform-kernel": "^1.3@dev",
"ezsystems/ezplatform-content-forms": "^1.0@dev",
"ezsystems/ezplatform-design-engine": "^3.0@dev",
"ezsystems/ezplatform-user": "^2.0@dev",
Expand All @@ -58,10 +58,10 @@
"fix-cs": "@php ./vendor/bin/php-cs-fixer fix -v --show-progress=estimating"
},
"extra": {
"_ezplatform_branch_for_behat_tests": "3.2",
"_ezplatform_branch_for_behat_tests": "master",
"branch-alias": {
"dev-tmp_ci_branch": "2.2.x-dev",
"dev-master": "2.2.x-dev"
"dev-tmp_ci_branch": "2.3.x-dev",
"dev-master": "2.3.x-dev"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
{%- endfor -%}
{%- endblock -%}

{%- block checkbox_widget -%}
{%- set attr = attr|merge({class: 'ez-input ez-input--checkbox'}) -%}
{{ parent() }}
{%- endblock -%}

{%- block trash_item_checkbox_widget -%}
<input type="checkbox" {{ block('widget_attributes') }}{% if value is defined %} value="{{ value }}"{% endif %}{% if checked %} checked="checked"{% endif %} />
{%- endblock -%}
Expand Down

0 comments on commit a91abcf

Please # to comment.