diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-04-20 04:48:01 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-04-20 06:14:06 +0300 |
commit | 1b9d125d3edd8e510f31315ae727b2bea7c4de7b (patch) | |
tree | d5b3e3fc0d165babfc4cdc009cab55b49488e1f9 /templates/checkbox.twig | |
parent | e51b32afe263b2da17baef81a87b1873166b042f (diff) |
Port some templates to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'templates/checkbox.twig')
-rw-r--r-- | templates/checkbox.twig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/checkbox.twig b/templates/checkbox.twig new file mode 100644 index 0000000000..de23f4b926 --- /dev/null +++ b/templates/checkbox.twig @@ -0,0 +1,6 @@ +<input type="checkbox" name="{{ html_field_name }}" +{%- if html_field_id is defined %} id="{{ html_field_id }}"{% endif -%} +{%- if checked is defined and checked %} checked="checked"{% endif -%} +{%- if onclick is defined and onclick %} class="autosubmit"{% endif %} /><label +{%- if html_field_id is defined %} for="{{ html_field_id }}" +{%- endif %}>{{ label }}</label> |