2022-10-08 02:35:21 +00:00
|
|
|
{% extends "organization/home-base.html" %}
|
|
|
|
|
2024-06-24 19:56:00 +00:00
|
|
|
{% block js_media %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{{ form.media.js }}
|
|
|
|
{% include "organization/home-js.html" %}
|
2022-10-08 02:35:21 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block three_col_media %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{{ form.media.css }}
|
2022-10-08 02:35:21 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block middle_content %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<form action="" method="post">
|
2022-10-08 02:35:21 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{% if form.errors %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div class="alert alert-danger alert-dismissable">
|
|
|
|
<a href="#" class="close">x</a>
|
|
|
|
{{ form.non_field_errors() }}
|
|
|
|
{{ form.errors }}
|
|
|
|
</div>
|
2022-10-08 02:35:21 +00:00
|
|
|
{% endif %}
|
|
|
|
{% for field in form %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% 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 style="color:red"> * </span>{% endif %}:</b> </label>
|
|
|
|
<div class="org-field-wrapper" id="org-field-wrapper-{{field.html_name }}">
|
|
|
|
{{ field }}
|
|
|
|
</div>
|
|
|
|
{% 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>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-10-08 02:35:21 +00:00
|
|
|
{% endfor %}
|
|
|
|
<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>
|
2023-01-27 23:11:10 +00:00
|
|
|
</form>
|
2022-10-08 02:35:21 +00:00
|
|
|
{% endblock %}
|