toodego: add custom cell to display rsj requests (#52838)

This commit is contained in:
Frédéric Péters 2021-04-16 15:57:34 +02:00
parent 8bb1f83d7f
commit 337b63ed71
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{% load i18n combo %}
{% block cell-content %}
<h2>Demandes de Revenu Solidarité Jeunes à traiter</h2>
<div>
<table class="pk-data-table pk-table-zebra">
<thead>
<tr>
<th><span>Demande</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 json.data|dictsort:"form_last_update_datetime" %}
<tr>
<td><a href="{{ data.form_url }}tryauth">{{ data.name }} - {{ data.form_number }}{% if data.form_digest %}<br><small>{{ data.form_digest }}</small>{% endif %}</a></td>
<td style="white-space: pre">{{ data.datetime|strptime:"%Y-%m-%d %H:%M:%S"|date:"d F Y" }}</td>
<td style="white-space: pre">{{ data.last_update_time|strptime:"%Y-%m-%d %H:%M:%S" }}</td>
<td>{{ data.status }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}