actix-admin/templates/form_elements/checkbox.html

9 lines
372 B
HTML
Raw Normal View History

2022-08-05 18:23:51 +02:00
<input
class="{{ model_field | get_html_input_class }}"
type="{{ model_field | get_html_input_type }}"
value="true"
name="{{ model_field.field_name }}"
placeholder="{{ model_field.field_name }}"
aria-label="{{ model_field.field_name }}"
2022-08-06 13:55:17 +02:00
{% if model.values | get(key=model_field.field_name, default="false") == "true" %}checked{% endif %}
2022-08-05 18:23:51 +02:00
>