{% extends "dashboard.html" %}
{% load static %}
{% load tz %}

{% block content %}
<article>
    <header class="object__header">
        <h1><img src="{% static 'images/gear.png' %}" alt=""> Site configuration</h1>
    </header>

    <section class="object__panel">
        <div class="object__item panel__header panel__header--flex">
            <h4>Shipping methods</h4>
            <a href="{% url 'dashboard:shipmeth-create' %}" class="action-button order__fulfill">+ New method</a>
        </div>
        <div class="panel__item">
            {% for method in shipping_method_list %}
                <p>
                    <a href="{% url 'dashboard:shipmeth-detail' method.pk %}">{{method.name}} | {{method.type}} | {{method.price}}</a>
                </p>
            {% empty %}
                <p>No shipping methods yet.</p>
            {% endfor %}
        </div>
    </section>

    <section class="object__panel">
        <div class="object__item panel__header panel__header--flex">
            <h4>Staff</h4>
            <a href="" class="action-button order__fulfill">+ New staff</a>
        </div>
        <div class="panel__item">
        </div>
    </section>
</article>
{% endblock %}
