{% extends 'base.html' %} {% load static %} {% block content %}

{% if object %}Edit{% else %}Add{% endif %} Event

{% csrf_token %} {% for field in form %}
{{ field.as_widget|add_class:"form-control" }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% if field.errors %}
{{ field.errors }}
{% endif %}
{% endfor %} Cancel
{% endblock %}