Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-04-20 04:48:01 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-04-20 06:14:06 +0300
commit1b9d125d3edd8e510f31315ae727b2bea7c4de7b (patch)
treed5b3e3fc0d165babfc4cdc009cab55b49488e1f9 /templates/checkbox.twig
parente51b32afe263b2da17baef81a87b1873166b042f (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.twig6
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>