{% extends "oneevent/base.html" %} {% load crispy_forms_tags %} {% block navbar_header_text %}{% if event.id %}Edit{% else %}New{% endif %} Event{% endblock %} {% block heading_action %}{% if event.id %}Edit{% else %}New{% endif %} Event{% endblock %} {% block heading_title %}{{ event.title }} {{ event.start|date:"D, d N Y H:i" }} {% endblock %} {% block content %} {% if event.pk %}
Manage the event
{% endif %}
Details
{% crispy event_form %}
{% if event.pk %}
{% if category_formset.non_form_errors %}
    {{ category_formset.non_form_errors|unordered_list }}
{% endif %} {% crispy category_formset category_helper %}
{% crispy session_formset session_helper %}
{% for choice in event.choices.all %} {% if forloop.first %} {% endif %} {% if forloop.last %} {% endif %} {% empty %} {% endfor %}
ChoiceOptions
{{ choice.title }} {% for option in choice.options.all %}

{{ option.title }} {% if option.default %}default{% endif %}

{% endfor %}

Edit

Delete

No choice defined for this event
Add a choice
{% endif %} {% endblock %}