{% extends "volunteers/booking/select_session.html" %}

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

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

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

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

