{% extends 'dashboard/layout.html' %}
{% load currency_filters %}

{% block title %}
Delete voucher '{{ voucher.name }}'? | Vouchers | {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ul class="breadcrumb">
    <li>
        <a href="{% url dashboard:index %}">Dashboard</a>
        <span class="divider">/</span>
    </li>
    <li>
        <a href="{% url dashboard:voucher-list %}">Vouchers</a>
        <span class="divider">/</span>
    </li>
	<li class="active"><a href=".">Delete voucher '{{ voucher.name }}'?</a></li>
</ul>
{% endblock %}

{% block header %}
<div class="page-header">
	<h1>Delete voucher '{{ voucher.name }}'?</h1>
</div>
{% endblock header %}

{% block dashboard_content %}

    <h2>Voucher details</h2>
	<table class="table">
		<tbody>
			<tr><th>Name</th><td>{{ voucher.name }}</td></tr>
			<tr><th>Code</th><td>{{ voucher.code }}</td></tr>
			<tr><th>Start date</th><td>{{ voucher.start_date }}</td></tr>
			<tr><th>End date</th><td>{{ voucher.end_date }}</td></tr>
			<tr><th>Usage</th><td>{{ voucher.usage }}</td></tr>
			<tr><th>Discount</th><td>{{ voucher.benefit_description }}</td></tr>
		</tbody>
	</table>

	<form action="." method="post" class="">
		{% csrf_token %}
		<div class="form-actions">
			<button class="btn btn-danger btn-large" type="submit">Delete</button> or
			<a href="{% url dashboard:range-list %}">cancel</a>
		</div>
	</form>

{% endblock dashboard_content %}
