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

{% block title %}
{% blocktrans with title=review.title|truncatechars:30 %}Delete review '{{ title }}'?{% endblocktrans %} | {% trans "Review management" %} | {{ block.super }}
{% endblock %}

{% block breadcrumbs %}
<ul class="breadcrumb">
    <li>
	<a href="{% url dashboard:index %}">{% trans "Dashboard" %}</a>
        <span class="divider">/</span>
    </li>
    <li>
	<a href="{% url dashboard:reviews-list %}">{% trans "Reviews" %}</a>
        <span class="divider">/</span>
    </li>
	<li class="active"><a href=".">{% blocktrans with title=review.title|truncatechars:30 %}Delete review "{{ title }}"?{% endblocktrans %}</a></li>
</ul>
{% endblock %}

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

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

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

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