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.

32 lines
1.3 KiB

<div class="{{ theme.form.div_class }}" style="{{ theme.form.div_style}}">
<form method="POST" action="">
{{ form.hidden_tag() }}
<fieldset class="form-group">
<div class="form-group">
{% for item in form %}
{% if item.id == 'submit' %}
{% elif item.id == 'csrf_token' %}
{% else %}
{{ item.label(class=theme.form.label_class, style=theme.form.label_style) }}
<!-- 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 %}
{{ item(class=theme.form.input_class) }}
{% endif %}
{% endif %}
{% endfor %}
</div>
</fieldset>
<div class="form-group">
<br>
{{ form.submit(class=theme.form.submit_class, style=theme.form.submit_style) }}
</div>
</form>
</div>