{% extends "base.html" %} {% block title %}{{ page_title }} | Roadshow Calendar{% endblock %} {% block content %}
{% if form_mode == 'edit' %}Edit event{% else %}Create event{% endif %}

{{ form_title }}

{{ form_intro }}

{% csrf_token %}
{{ form.name }} {% if form.name.help_text %}
{{ form.name.help_text }}
{% endif %} {% for error in form.name.errors %}
{{ error }}
{% endfor %}
{{ form.location }} {% if form.location.help_text %}
{{ form.location.help_text }}
{% endif %} {% for error in form.location.errors %}
{{ error }}
{% endfor %}
{{ form.start }} {% if form.start.help_text %}
{{ form.start.help_text }}
{% endif %} {% for error in form.start.errors %}
{{ error }}
{% endfor %}
{{ form.end }} {% if form.end.help_text %}
{{ form.end.help_text }}
{% endif %} {% for error in form.end.errors %}
{{ error }}
{% endfor %}
{{ form.event_url }} {% if form.event_url.help_text %}
{{ form.event_url.help_text }}
{% endif %} {% for error in form.event_url.errors %}
{{ error }}
{% endfor %}
{{ form.summary }} {% if form.summary.help_text %}
{{ form.summary.help_text }}
{% endif %} {% for error in form.summary.errors %}
{{ error }}
{% endfor %}
{{ form.is_published }} {% if form.is_published.help_text %}
{{ form.is_published.help_text }}
{% endif %}
{% for error in form.is_published.errors %}
{{ error }}
{% endfor %}
{% if form_mode == 'create' %}

Repeat weekly (optional)

Use the same event details and time range to create one event per week within a date window.

{{ form.recurrence_start_date }} {% if form.recurrence_start_date.help_text %}
{{ form.recurrence_start_date.help_text }}
{% endif %} {% for error in form.recurrence_start_date.errors %}
{{ error }}
{% endfor %}
{{ form.recurrence_end_date }} {% if form.recurrence_end_date.help_text %}
{{ form.recurrence_end_date.help_text }}
{% endif %} {% for error in form.recurrence_end_date.errors %}
{{ error }}
{% endfor %}
{{ form.recurrence_weekday }} {% if form.recurrence_weekday.help_text %}
{{ form.recurrence_weekday.help_text }}
{% endif %} {% for error in form.recurrence_weekday.errors %}
{{ error }}
{% endfor %}
{% endif %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
Cancel
{% endblock %}