{% extends 'base.html' %}

{% block menuapp %}

{% endblock menuapp %}

{% block content %}
<div class="column is-4 is-offset-4">

    <h3>{% if evento %}Editar evento{% else %}Nuevo evento{% endif %}</h3>
    <div class="box">
        <form method="POST" enctype="multipart/form-data">
            {% csrf_token %}
            {{ form.as_p }}
            <div class="text mb-3">
                <button type="submit" class="btn app-btn-primary w-100 theme-btn mx-auto">{% if evento %}Actualizar{% else %}Crear{% endif %} Evento</button>
            </div>
        </form>
    </div>
</div>
{% endblock %}
