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

{% block title %}
Delete review "{{ review.title|truncatechars:15 }}? | Review 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:reviews-list %}">Reviews</a>
        <span class="divider">/</span>
    </li>
    <li class="active"><a href=".">Delete review "{{ review.title|truncatechars:15 }}"?</a></li>
</ul>
{% endblock %}

{% block header %}
<div class="page-header">
    <h1>Delete review "{{ review.title|truncatechars:15 }}"?</h1>
</div>
{% endblock header %}

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

	<table class="table">
            <tbody> 
                <tr><th>Review Title</th><td>{{ review.title }}</td></tr>
                <tr><th>Product</th><td>{{ review.product.title }}</td></tr>
                <tr><th>User</th><td>{{ review.user.get_reviewer_name }}</td></tr>
                <tr><th>Score</th><td>{{ review.score|floatformat:1 }}</td></tr>
                <tr><th>Votest</th><td>{{ review.total_votes }}</td></tr>
                <tr><th>Status</th><td>{{ review.status }}</td></tr>
                <tr><th>Date created</th><td>{{ review.date_created }}</td></tr>
            </tbody>
	</table>

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