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

{% block content %}
<article>
    <header class="object__header">
        <h1><img src="{% static 'images/coupon.png' %}" alt=""> {{ coupon.name }}</h1>
        <div class="object__menu">
            <a href="{% url 'dashboard:coupon-delete' coupon.pk %}" class="action-button action-button--warning">Delete</a>
            <a href="{% url 'dashboard:coupon-update' coupon.pk %}" class="action-button">Edit</a>
        </div>
    </header>
    <section class="product__detail object__panel">
        <div>
            <p>{{ coupon.get_type_display }}</p>
            <p>{{ coupon.code }}</p>
            <p>{{ coupon.valid_from }}</p>
            <p>{{ coupon.valid_to }}</p>
            <p>{{ coupon.discount_value }} {{ coupon.get_discount_value_type_display }}</p>
        </div>
    </section>
</article>
{% endblock content %}
