{% load i18n %}
{% block cell-content %}
<h2>Entwürfe in Arbeit · Brouillons en cours</h2>
{% if drafts %}
{% for slug, forms in current_drafts.items %}
<div class="links-list current-drafts-{{ slug }} current-drafts list-of-forms">
  {% if forms.data %}
  <ul>
    {% for data in forms.data %}
    {% if data.url and data.title and not data.form_status_is_endpoint %}
    <li class="{{data.status_css_class}} {% if data.form_status_is_endpoint %}done{% endif %}"><a
      href="{{ data.url }}"><span class="form-title">{{ data.name }}</span>
        <span class="form-number">{{data.datetime|strptime:"%Y-%m-%d %H:%M:%S"}}</span>
        <span class="form-status">{% trans 'draft' %}</span></a></li>
    {% endif %}
    {% endfor %}
  </ul>
  {% endif %}
</div>
{% endfor %}
{% include "combo/pagination.html" %}
{% else %}
  <div class="cell--body"><p class="empty-message">{% trans "There are no current drafts." %}</p></div>{% endif %}
{% endblock %}
