{% load assets combo gnm humanize %}
<div class="current-forms">
{% if drafts %}
{% for form in drafts|dictsortreversed:"datetime" %}
{% if "cartads" in form.keywords %}
{% with producer=form|as_producer %}
<div class="tile producer-{{producer.slug}}">
  <div class="tile-picture" style="background-image: url({% asset_url "wcs:form:picture:eservices:"|add:form.form_slug "picture:"|add:producer.slug size=size crop="center" %})"></div>
  <div class="tile-head">
    <div class="tile-title">
      <h2><a href="{{form.url}}">{{form.name}} (brouillon)</a></h2>
      <span class="producer" style="background-image: url({% asset_url "logo:"|add:producer.slug %})">{{ producer.label }}</span>
    </div>
  </div>
  <div class="tile-content">
    <p class="form-date">Fait le : {{form.last_update_time|strptime:"%Y-%m-%d %H:%M:%S"|date:"d/m/Y"}}</p>
  </div>
  <div class="tile-actions">
    <a class="action-more-info" href="{{form.url}}">Plus d’infos</a>
  </div>
</div>
{% endwith %}
{% endif %}
{% endfor %}
{% endif %}
</div>
