2022-05-30 06:59:53 +00:00
|
|
|
<form action="" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% if form.errors %}
|
|
|
|
<div class="alert alert-danger alert-dismissable">
|
|
|
|
<a href="#" class="close">x</a>
|
|
|
|
{{ form.non_field_errors() }}
|
2022-09-15 07:05:02 +00:00
|
|
|
{{ form.errors }}
|
2022-05-30 06:59:53 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% for field in form %}
|
|
|
|
{% if not field.is_hidden %}
|
|
|
|
<div style="margin-bottom: 1em;">
|
|
|
|
{{ field.errors }}
|
2022-09-15 07:05:02 +00:00
|
|
|
<label for="{{field.id_for_label }}"><b>{{ field.label }}{% if field.field.required %}<span style="color:red"> * </span>{% endif %}:</b> </label>
|
2022-05-30 06:59:53 +00:00
|
|
|
<div class="org-field-wrapper" id="org-field-wrapper-{{field.html_name }}">
|
|
|
|
{{ field }}
|
|
|
|
</div>
|
|
|
|
{% if field.help_text %}
|
2022-09-15 07:05:02 +00:00
|
|
|
<i style="display: block">{{ field.help_text|safe }}</i>
|
2022-05-30 06:59:53 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2022-10-07 03:11:46 +00:00
|
|
|
<button type="submit" style="display: inline;" name="action" value="Save" >{{ _('Save') }} </button>
|
|
|
|
<!-- <button type="submit" style="background-color: red; float: right;" name="action" value="Delete" > {{ _('Delete') }} </button> -->
|
2022-05-30 06:59:53 +00:00
|
|
|
</form>
|