{% extends "base.html" %} {% block title %}{{ _('History') }} · {{ form.title }} · {{ appearance.name }}{% endblock %} {% macro value(v) -%} {%- if v is none or v == '' -%}{{ _('empty') }} {%- elif v is sameas true -%}{{ _('Yes') }} {%- elif v is sameas false -%}{{ _('No') }} {%- elif v.tzinfo is defined and v.hour is defined -%}{{ v | datetime }} {%- else -%}{{ v }}{%- endif -%} {%- endmacro %} {% block content %}

← {{ _('History') }}

{{ _('State of %(date)s', date=snapshot.created_at | datetime) }}

{{ _(reason_names.get(snapshot.reason, snapshot.reason)) }}{% if actor %} · {{ actor }}{% endif %}

{% if error %}{% endif %} {% if comparison.empty %}

{{ _('Nothing in this state differs from the form as it is now in a way that can be restored.') }}

{% else %}
{{ csrf_field(request) }}

{{ _('Choose what to restore. Only the chosen items change; questions, answers and settings that are not chosen stay as they are now.') }}

{% if comparison.settings %}

{{ _('Settings') }}

{% for item in comparison.settings %} {% endfor %}
{% endif %} {% if comparison.questions %}

{{ _('Questions and options') }}

{% for item in comparison.questions %} {% endfor %}
{% endif %} {% if comparison.responses %}

{{ _('Answers') }}

{% for item in comparison.responses %} {% endfor %}
{% endif %}

{{ _('Before restoring, the current state is saved too, so this step can be undone in the history. Booked places are restored even if there are not enough places any more; the option is then shown as overbooked.') }}

{% endif %} {% endblock %}