{% extends "crm/base.html" %} {% block content %}
<div class="container">
    <div class="grid-x padding-bottom">
        <div class="cell medium-6 large-6 my-block bubble">
            <h1 class="title">
                {% if form.instance.pk %}Edit{% else %}Add{% endif %} Event
            </h1>

            <form method="post">
                {% csrf_token %} {{ form }}

                <div class="mt-3">
                    <button type="submit" class="btn small-button">
                        Save Event
                    </button>
                    <a
                        href="{% url 'crm:planned_events' %}"
                        class="btn btn-secondary"
                        >Cancel</a
                    >
                </div>
            </form>
        </div>
    </div>
</div>

{% endblock %}
