24 lines
No EOL
901 B
HTML
24 lines
No EOL
901 B
HTML
<form action="" method="post">
|
|
{% csrf_token %}
|
|
{% if form.errors %}
|
|
<div class="alert alert-danger alert-dismissable">
|
|
<a href="#" class="close">x</a>
|
|
{{ _("Please fix below errors") }}
|
|
</div>
|
|
{% endif %}
|
|
{% for field in form %}
|
|
{% if not field.is_hidden %}
|
|
<div style="margin-bottom: 1em;">
|
|
{{ field.errors }}
|
|
<label for="{{field.id_for_label }}"><b>{{ field.label }}{% if field.field.required %}<span class="red"> * </span>{% endif %}:</b> </label>
|
|
<div class="org-field-wrapper" id="org-field-wrapper-{{field.html_name }}">
|
|
{{ field }}
|
|
</div>
|
|
{% if field.help_text %}
|
|
<i style="display: block">{{ field.help_text|safe }}</i>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<button type="submit" style="display: inline;" name="action" value="Save" >{{ _('Save') }} </button>
|
|
</form> |