{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_errors, render_field %}
{%- block title -%}
{{ _('Update reference to event "%(name)s"', name=reference.event.name) }}
{%- endblock -%}
{% block content %}

<h1>{{ _('Update reference to event "%(name)s"', name=reference.event.name) }}</h1>

<form action="" method="POST">
    {{ form.hidden_tag() }}

    {% if form.rating.choices|length > 1 %}
        {{ render_field_with_errors(form.rating) }}
    {% endif %}

    {{ render_field(form.submit) }}
</form>

{% endblock %}