2024-07-18 02:05:42 +00:00
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
2023-01-27 23:11:10 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{% if form.errors %}
|
|
|
|
<div class="alert alert-danger alert-dismissable">
|
|
|
|
<a href="#" class="close">x</a>
|
2023-08-25 22:34:33 +00:00
|
|
|
{{ _("Please fix below errors") }}
|
2024-08-14 09:15:19 +00:00
|
|
|
{% if form.non_field_errors %}
|
|
|
|
<ul>
|
|
|
|
{% for error in form.non_field_errors() %}
|
|
|
|
<li>{{ error }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
2023-01-27 23:11:10 +00:00
|
|
|
</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 }}
|
2022-10-08 02:35:21 +00:00
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if field.help_text %}
|
2023-09-17 04:55:24 +00:00
|
|
|
<small class="org-help-text"><i class="fa fa-exclamation-circle"></i> {{ field.help_text|safe }}</small>
|
2022-10-08 02:35:21 +00:00
|
|
|
{% endif %}
|
2023-01-27 23:11:10 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<button type="submit" style="display: inline;" name="action" value="Save" >{{ _('Save') }} </button>
|
2022-05-30 06:59:53 +00:00
|
|
|
</form>
|