{% extends 'django_bookdates/calendar.html' %}
{% load crispy_forms_tags %}

{% block body %}
<div class="container mt-5">
  {% if form.non_field_errors %}
  <div class="alert alert-warning alert-dismissible">
    {{ form.non_field_errors }}
  </div>
  {% endif %}

  {% crispy form %}
  {% if object %}
  <a href="{% url 'deletetimespan' object.calendar.slug object.id %}" class="btn btn-danger">Delete</a>
  {% endif %}
</div>
{% endblock %}
