{% load static %}


{% include "diaxeirisi/00_head.html" %}

<body id="app-container" class="menu-default show-spinner vertical boxed">
{% include "diaxeirisi/01_menu.html" %}

    <main>
        <div class="container-fluid">
            <div class="row">
                <div class="col-12">
                    <div class="mb-2">
                        <h1>Δημιουργία Παραγγελίας</h1>
                        <nav class="breadcrumb-container d-none d-sm-block d-lg-inline-block" aria-label="breadcrumb">
                            <ol class="breadcrumb pt-0">
                                <li class="breadcrumb-item">
                                    <a href="/dx">Πίσω</a>
                                </li>
                            </ol>
                        </nav>
                    </div>
                    <div class="separator mb-5"></div>
                </div>
            </div>
            <div class="row mb-4">
                        <div class="col-7 col-md-7 col-xl-5">
                                <div class="container">
    {% block content %}

      <div class="card">
        <div class="card-header">
        <h1>All collections</h1>
        <a class="btn btn-outline-primary" href="{% url 'orders:collection_create' %}" role="button">Create new collection</a>
        </div>
        <div class="card-body">
          {% if collections %}
          {% for object in collections %}
            <li>
                <a href="{% url 'orders:collection_detail' pk=object.pk %}">Collection ID {{ object }}</a>
            </li>
          {% endfor %}
          {% else %}
            <p>No collections</p>
          {% endif %}
        </div>
      </div>

    {% endblock %}
    </div>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.0/js/bootstrap.min.js" integrity="sha384-7aThvCh9TypR7fIc2HV4O/nFMVCBwyIUKL8XCtKE+8xgCgl/PQGuFsvShjr74PBp" crossorigin="anonymous"></script>


                        </div>
                    </div>
        </div>

    </main>

{% include "diaxeirisi/99_footer.html" %}
