actix-admin/templates/form_elements/input.html

13 lines
552 B
HTML
Raw Normal View History

2022-08-05 18:23:51 +02:00
<input
class="{{ model_field | get_html_input_class }}
{% if
model.errors | get(key=model_field.field_name, default="" ) !=""
or
model.custom_errors | get(key=model_field.field_name, default="" ) !=""
%}is-danger{% endif %}"
2022-08-05 18:23:51 +02:00
type="{{ model_field | get_html_input_type }}"
value="{{ model.values | get(key=model_field.field_name, default="") }}"
2022-08-05 18:23:51 +02:00
name="{{ model_field.field_name }}"
placeholder="{{ model_field.field_name }}"
aria-label="{{ model_field.field_name }}"
>