{% extends "wcs/base.html" %}
{% load i18n qommon %}

{% block extra-body-class %}
{{ block.super }}
  page-formdata-status
{% endblock %}

{% block content %}
    <div id="rub_service" class="with-sidebar">
    {% if title %}<h2 style="background-image: url({{portal_url}}assets/wcs:form:picture:banner:eservices:{{form_slug}})">{{ title }}</h2>{% endif %}

<div id="form-status">

<div id="form-status-main">
  {% include "wcs/front/formdata_history.html" %}
</div> <!-- #form-status-main -->

</div> <!-- #form-status -->

    </div>

<div id="form-status-sidebar">

<div id="receipt-intro" class="cell">
<h2>Résumé de ma demande</h2>
<div>
  <p>
    Le formulaire a été enregistré le
    {{formdata.receipt_time|parse_datetime|date:"d/m/Y \à G:i"}}
    {% if formdata.tracking_code %}
    avec le code de suivi {{ formdata.tracking_code }}.
    {% else %}
    avec le numéro {{ formdata.get_display_id }}.
    {% endif %}
  </p>

{{ view.display_fields|safe }}

</div>
</div> <!-- intro -->

{% with workflow_messages=view.bottom_workflow_messages %}
{% if workflow_messages %}
<div class="cell">
{{ workflow_messages|safe }}
</div>
{% endif %}
{% endwith %}



</div> <!-- sidebar -->

{% endblock %}
