{% extends "common/base.html" %}
{% load i18n %}

{% block title %}{% trans "Manage books" %}{% endblock %}

{% block content %}
{% if book_list.count <= 1 %}
<h1>{% trans "Remove book" %}</h1>
{% else %}
<h1>{% trans "Remove books" %}</h1>
{% endif %}
{% if book_list.count == 1 %}
<div class="alert alert-danger">{% trans "Are you sure you want to remove this book?" %}</div>
{% else %}
<div class="alert alert-danger">{% trans "Are you sure you want to remove these books?" %}</div>
{% endif %} 
<table class="table table-hover">
    <thead>
        <tr>
            <th>{% trans "Publisher" %}</th>
            <th>{% trans "Title" %}</th>
            <th>{% trans "Price" %}</th>
        </tr>
    </thead>
    {% for book in book_list %}
    <tr>
        <td>{{ book.publisher }}</td>
        <td>{{ book.title }}</td>
        <td>{{ book.price_string }}</td>
    </tr>
    {% endfor %}
</table>
<form action="{{ request.path }}" method="post">
    <button type="submit" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span> {% trans "Remove" %}</button>
    {% csrf_token %}
</form>
{% endblock %}
{% extends "common/base.html" %}
{% load i18n %}

{% block title %}{% trans "Manage books" %}{% endblock %}

{% block content %}
    {% if book_list|length == 1 %}
        <h1>{% trans "Remove book" %}</h1>
    {% else %}
        <h1>{% trans "Remove books" %}</h1>
    {% endif %}

    {% if book_list|length == 1 %}
        <div class="alert alert-danger">{% trans "Are you sure you want to remove this book?" %}</div>
    {% else %}
        <div class="alert alert-danger">{% trans "Are you sure you want to remove these books?" %}</div>
    {% endif %}
    <table class="table table-hover">
        <thead>
        <tr>
            <th>{% trans "Publisher" %}</th>
            <th>{% trans "Title" %}</th>
            <th>{% trans "Price" %}</th>
        </tr>
        </thead>
        {% for book in book_list %}
            <tr>
                <td>{{ book.publisher }}</td>
                <td>{{ book.title }}</td>
                <td>{{ book.price_string }}</td>
            </tr>
        {% endfor %}
    </table>
    <form action="{{ request.path }}" method="post">
        <a href="{% url 'books.views.index' %}" class="btn btn-default" role="button"><span
                class="glyphicon glyphicon-remove"></span> {% trans "Cancel" %}</a>
        <button type="submit" class="btn btn-danger pull-right"><span
                class="glyphicon glyphicon-trash"></span> {% trans "Remove" %}</button>
        {% csrf_token %}
    </form>
{% endblock %}
Improve Remove book type page
Improve Remove book type page

- Add Back button
- Move Delete (Accept) button to right side
- Fix glitches of plural forms of "book"
