NDOJ/templates/organization/requests/pending.html

46 lines
1.7 KiB
HTML
Raw Normal View History

2022-05-30 06:59:53 +00:00
{% extends "organization/home-base.html" %}
2023-01-07 08:46:21 +00:00
{% block org_js %}
<script type="text/javascript">
$(function() {
$("select").select2();
});
</script>
{% endblock %}
2022-05-30 06:59:53 +00:00
{% block middle_content %}
2020-01-21 06:35:58 +00:00
{% include "messages.html" %}
{% include "organization/requests/tabs.html" %}
{% if formset.forms %}
<form action="" method="post">
{% csrf_token %}
{{ formset.management_form }}
2021-10-10 22:37:15 +00:00
<table class="table">
2020-01-21 06:35:58 +00:00
<tr>
<th>{{ _('User') }}</th>
<th>{{ _('Time') }}</th>
<th>{{ _('State') }}</th>
<th>{{ _('Reason') }}</th>
{% if formset.can_delete %}
<th>{{ _('Delete?') }}</th>
{% endif %}
</tr>
{% for form in formset %}
<tr id="request-{{ form.instance.id }}">
<td>{{ form.id }}{{ link_user(form.instance.user) }}</td>
<td><a href="{{ url('request_organization_detail', object.id, object.slug, form.instance.id) }}">
2022-05-30 06:59:53 +00:00
{{ form.instance.time|date(_("N j, Y, g:i a")) }}
2020-01-21 06:35:58 +00:00
</a></td>
<td>{{ form.state }}</td>
<td>{{ form.instance.reason|truncatechars(50) }}</td>
{% if formset.can_delete %}
<td>{{ form.DELETE }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
<button type="submit">{{ _('Update') }}</button>
</form>
{% else %}
<p>{{ _('There are no requests to approve.') }}</p>
{% endif %}
{% endblock %}