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

{% block page-title %}
  {% if booking and booking.id %}
    {% include "booking_star.html" %}
    {% trans "Booking" %} <a href="">{{ booking.id }}</a>: {{ booking.get_title }}
  {% else %}
    {{ date }}, {{ page_title }}
  {% endif %}
{% endblock %}

{% block sub-navigation %}
{% endblock %}

{% block content %}
  <form method="post">
  <h3>
    <a id="bookings-pointer" href="javascript:JS_toggleSection('bookings');" class="toggled-section">{% trans "Booking history" %}</a>
  </h3>
  <div id="bookings" class="disabled-list">
    <div class="pagination">
      <div style="float: left">
      </div>
      <div style="float: right;">
        <input type="submit" value="{% trans "Revert" %}" name="revert">
      </div>
    </div>
    <table id="booking-list" class="default-table">
      <thead>
        {% include "booking_history_heading.html" %}
      </thead>
      <tbody>
        {% for history in histories %}
          {% include "booking_history_row.html" %}
        {% empty %}
          <tr><td colspan="11">{% trans "No entries found" %}</td></tr>
        {% endfor %}
      </tbody>
    </table>
    <div class="pagination">

    </div>
  </div>
  <table>
      <tr>
        <td><input name="cancel" type="submit" value="{{ cancel_value }}"></td>
      </tr>
    </table>
  </form>
{% endblock %}
