You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.5 KiB

<form method="POST" action="" enctype="multipart/form-data">
{{ form.hidden_tag() }}
<fieldset class="form-group">
{% for item in form %}
{% if item.id == 'submit' %}
{% elif item.id == 'csrf_token' %}
{% else %}
{% if item.type == 'BooleanField' %}
<br>
{{ item.label(class=theme.form.check_label_class, style=theme.form.check_label_style) }}
{% else %}
{{ item.label(class=theme.form.input_label_class, style=theme.form.input_label_style) }}
{% endif %}
<!-- Checks if There are somer errors While Filling the form -->
{% if item.errors %}
{{ item(class=theme.form.input_error_class) }}
<div class="{{ theme.form.div_error_class }}">
{% for error in item.errors %}
<span>{{ error }}</span>
{% endfor %}
</div>
{% else %}
{% if item.type == 'BooleanField' %}
{{ item(class=theme.form.check_class) }}
{% else %}
{{ item(class=theme.form.input_class) }}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</fieldset>
<div class="form-groupe">
<br>
{{ form.submit(class=theme.form.submit_class, style=theme.form.submit_style) }}
<br>
</div>
</form>