{% extends template_base %}
{% load i18n %}

{% block body %}
{% with workflow_messages=view.workflow_messages %}
  {% if workflow_messages %}
    {{ workflow_messages|safe }}
  {% else %}
    <div id="receipt-intro">
      {{ view.recorded_message|safe }}
      {% if mine %}
        {{ view.get_handling_role_info_text|safe }}
      {% endif %}
      {% if mine and formdata.formdef.enable_tracking_codes and formdata.tracking_code %}
        <p id="tracking-code">
        {% trans "You can get back to this page using the following tracking code:" %}
        <a href="../code/{{ formdata.tracking_code }}/" rel="popup">{{ formdata.tracking_code }}</a>
        </p>
      {% endif %}
    </div>
  {% endif %}
{% endwith %}

{{ view.receipt|safe }}
{{ view.history|safe }}
{{ view.bottom_workflow_messages|safe }}
{% if workflow_form %}
  {{ view.actions_workflow_messages|safe }}
  {{ workflow_form.render|safe }}
{% endif %}

  <div class="back-home-button">
    <a href="{{ publisher.get_root_url }}">{% trans "Back Home" %}</a>
  </div>
{% endblock %}
