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

{% block title %}
Delete offer #{{ offer.id }}? | Offer management | {{ 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:offer-list %}">Offers</a>
        <span class="divider">/</span>
    </li>
	<li class="active"><a href=".">Delete offer #{{ offer.id }}?</a></li>
</ul>
{% endblock %}

{% block header %}
<div class="page-header">
	<h1>Delete offer #{{ offer.id }}?</h1>
</div>
{% endblock header %}

{% block dashboard_content %}
<form action="." method="post" class="">
	{% csrf_token %}

	<table class="table">
		<tbody>
			<tr><th>Name</th><td>{{ offer.name }}</td></tr>
			<tr><th>Description</th><td>{{ offer.description }}</td></tr>
			<tr><th>Start date</th><td>{{ offer.start_date }}</td></tr>
			<tr><th>End date</th><td>{{ offer.end_date }}</td></tr>
			<tr><th>Condition </th><td>{{ offer.condition.description }}</td></tr>
			<tr><th>Benefit</th><td>{{ offer.benefit.description }}</td></tr>
		</tbody>
	</table>

	<div class="form-actions">
		<button class="btn btn-danger" type="submit">Delete</button> or
		<a href="{% url dashboard:offer-list %}">cancel</a>
	</div>
</form>
{% endblock dashboard_content %}
