{% extends "scanningSessions/listall.html" %}

{% block title %}Volunteer Booking - Session Selection{% endblock %}

{% block content_title %}<h2>Volunteer Booking</h2>{% endblock %}

{% block table_item_key_label %}{{ domainObject.getLabelValue }}{% endblock %}

{% block table_item_update_btn %}{% endblock %}

{% block table_item_delete_btn %}{% endblock %}

{% block table_comment %}
  {% if isCountSingle %}
  <p>There is one upcoming session needing a volunteer.</p>
  {% else %}
  <p>There are {{objectCount}} upcoming sessions needing a volunteer.</p>
  {% endif %}
  {% if not isCountZero %}
  <p>Pick a scanning session for {{ selectedVolunteer.getLabelValue }}.</p>
  {% endif %}
{% endblock %}

{% block table_item_actions_extn %}
  {% if not domainObject.isInactive %}
    {% if view.canCreateVolunteerScanningAppointment %}
<a href="{{uriPrefix}}/volunteers/booking/{{selectedVolunteer.getRegisterKeyValue}}/{{domainObject.getRegisterKeyValue}}/" title="Booking"><img height="20" width="20" src="{{ mediaPrefix }}/images/icon-booking.png" alt="Booking"/></a>
    {% endif %}
  {% endif %}
{% endblock %}

{% block primarysidebar %}
<div class="box">
  <h2>Volunteer Booking</h2>
  {% if view.showInlineHelp %}
  <p>You&rsquo;re currently in the <strong>volunteer booking</strong> 
  section of the {{ systemServiceName }} site.</p>
  {% endif %}
</div>
{% endblock %}

