ui: new contest edit page and form_checkbox

This commit is contained in:
panda committed 2022-12-12 17:43:52 +00:00
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 %}