NDOJ/templates/organization/requests/pending.html

46 lines
1.4 KiB
HTML
Raw Permalink 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 %}
2023-01-27 23:11:10 +00:00
<script type="text/javascript">
$(function() {
$("select").select2();
});
</script>
{% endblock %}
2022-05-30 06:59:53 +00:00
{% block middle_content %}
2023-01-27 23:11:10 +00:00
{% include "messages.html" %}
{% include "organization/requests/tabs.html" %}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
{% if formset.forms %}
<form action="" method="post">
{% csrf_token %}
{{ formset.management_form }}
<table class="table">
<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) }}">
{{ form.instance.time|date(_("N j, Y, g:i a")) }}
</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 %}
2020-01-21 06:35:58 +00:00
{% endblock %}