{% load i18n %}
{% with workflow_messages=view.bottom_workflow_messages %}
{% if workflow_messages %}
{{ workflow_messages|safe }}
{% endif %}
{% endwith %}
{% for evolution in formdata.get_visible_evolution_parts reversed %}
{% with status=evolution.get_status display_parts=evolution.display_parts %}
{% if evolution.status %}
{{evolution.get_status_label}}{{evolution.datetime|date:"j F Y à G\hi"}}
{% elif forloop.first %}
{{formdata.get_visible_status.name}}{{evolution.datetime|date:"j F Y à G\hi"}}
{% endif %}
{% if evolution.who %}
{{evolution.get_author_name|default_if_none:""}}
{% if evolution.get_author_qualification %}({{evolution.get_author_qualification}}){% endif %}
{% endif %}
{% if not evolution.status and not forloop.first %}
{{evolution.datetime}}
{% endif %}
{% if evolution.comment %}
{{evolution.comment|linebreaks}}
{% endif %}
{% for part in display_parts %}
{{part|safe}}
{% endfor %}
{% if forloop.first and workflow_form.varname != "evaluation" %}
{% with workflow_messages=view.actions_workflow_messages %}
{% if workflow_messages %}
{{ workflow_messages|safe }}
{% endif %}
{% endwith %}
{{ workflow_form.render|safe }}
{% endif %}