{% extends "layout.html" %}
{% from "_macros.html" import render_radio_buttons, render_phone_prop, render_email_prop, render_string_prop, render_field_with_errors, render_field, render_event_props, render_image_with_link, render_place, render_link_prop %}
{%- block title -%}
{{ event.name }}
{%- endblock -%}
{% block content %}

<h1>{{ _('Reference event "%(name)s"', name=event.name) }}</h1>
<p>{{ _('Reference this event on your organization\'s calendar.') }}</p>

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

    {{ render_field_with_errors(form.admin_unit_id) }}

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

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

{% endblock %}