{% extends 'base.html' %}

{% block menuapp %}

{% include 'macrociclos/_menu-macrociclos.html' %}

{% endblock menuapp %}

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

    <h3>{% if form.instance.pk %}Editar vehículo{% else %}Nuevo vehículo{% 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">Guardar</button>
            </div>
        </form>
    </div>
</div>
{% endblock %}
