combo/combo/apps/wcs/templates/combo/wcs/care_forms.html

38 lines
1.7 KiB
HTML

{% load i18n combo %}
{% block cell-content %}
{% for slug, forms in care_forms.items %}
<h2>{% if cell.custom_title %}{{ cell.custom_title }}{% else %}{% trans "Forms to process" %} - {{ forms.title }}{% endif %}</h2>
{% if forms.data %}
<table id="listing" class="main clickable-rows">
<thead>
<tr>
<th><span>{% trans "Form" %}</span></th>
<th><span>{% trans "Reference" %}</span></th>
<th><span>{% trans "Created" %}</span></th>
<th><span>{% trans "Last Modified" %}</span></th>
<th><span>{% trans "Status" %}</span></th>
</tr>
</thead>
<tbody>
{% for data in forms.data|dictsortreversed:"form_receipt_datetime" %}
<tr>
<td>{{ data.name }} {% if data.form_digest %}<br><small>{{ data.form_digest }}</small>{% endif %}</td>
{% if is_portal_agent %}
<td><a href="{{ data.form_url_backoffice }}">{{ data.form_number }}</a></td>
{% else %}
<td><a href="{{ data.form_url }}">{{ data.form_number }}</a></td>
{% endif %}
<td>{{ data.datetime|strptime:"%Y-%m-%d %H:%M:%S" }}</td>
<td>{{ data.last_update_time|strptime:"%Y-%m-%d %H:%M:%S" }}</td>
<td>{{ data.status }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if is_portal_agent %}
<p><a class="pk-button" href="{{ forms.url }}backoffice/management/listing{% if forms.categories %}?category_slugs={{ forms.categories|join:"," }}{% endif %}">{% trans "See all forms" %}</a></p>
{% endif %}
{% endfor %}
{% endblock %}