mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: new contest edit page and form_checkbox
This commit is contained in:
1 parent
4f66c127da
commit
84d7094b22
6 files changed
+147
-61
No files matched your search
@@ -199,13 +199,14 @@
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="{{ args.name }}"{% if args.value %} checked{% endif %}
|
||||
{{ form_attr('checkbox', args) }}
|
||||
>{{ _(args.label) }}
|
||||
>
|
||||
{% if args.placeholder %}{{ _(args.placeholder) }}{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro form_checkbox(args) %}
|
||||
{{ form_begin({columns:5, no_label:true}|assign(args)) }}
|
||||
{{ form_begin({columns:5}|assign(args)) }}
|
||||
{{ checkbox(args) }}
|
||||
{{ form_end({no_label:true}|assign(args)) }}
|
||||
{{ form_end(args) }}
|
||||
{% endmacro %}
|
||||
Reference in new issue
Block a user