{% extends 'base.html' %}

{% load crispy_forms_tags %}

{% block title %}Nouvelle commande groupée{% endblock %}

{% block content %}
    <p class="desktop-hidden mobile-content-title">
        {% block content_title %}Créer une commande groupée{% endblock %}
    </p>
    <div class="box">
        <p class="title">Nouvelle commande groupée</p>
        <div class="columns">
            <div class="column is-8">
                <form method="post" onsubmit="deadlinePassedCheck(event)">
                    {% csrf_token %}
                    {{ form | crispy }}
                    <div class="buttons">
                        <a class="button is-light" href="{% url 'order:index' %}">Annuler</a>
                        <input class="button is-primary" type="submit" value="Suivant">
                    </div>
                </form>
            </div>
        </div>
    </div>
{% endblock %}

{% block extra_js %}
    {% include 'warning_grouped_order_creation.html' %}
{% endblock %}
