This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
rouen-publik-theme/templates/variants/rouen/combo/wcs/current_drafts.html

31 lines
1.0 KiB
HTML

{% load i18n combo %}
{% block cell-content %}
<h2>Mes brouillons en cours</h2>
<div class="cell-summary">
<div class="summary-count">{{ current_drafts.eservices.data|length }}</div>
<div class="summary-link">
<a href="/suivi">Accéder à tous mes brouillons en cours</a>
</div>
</div>
<div class="cell-full">
{% 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 %}
</div>
{% endblock %}