{% 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 }}">{{ 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 %}
