{% extends "passerelle/manage/service_view.html" %}
{% load i18n passerelle %}

{% block description %}
<p>
Server: {{ object.server }}
</p>
{% endblock %}

{% block endpoints %}
<ul>
<li>{% trans 'Listing all sets:' %} <a href="{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug %}"
        >{{ site_base_uri }}{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug %}</a></li>
<li>{% trans 'Listing interventions in a set:' %} <a
        >{{ site_base_uri }}{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug %}/<i>&lt;set_id&gt;</i></a></li>
<li>{% trans 'Listing of free dates and times for an intervention:' %} <a
        >{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}interventions/<i>&lt;intervention_id&gt;</i>/datetimes</a></li>
<li>{% trans 'Listing of free dates for an intervention:' %} <a
        >{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}interventions/<i>&lt;intervention_id&gt;</i>/dates</a></li>
<li>{% trans 'Listing of free times a given date for an intervention:' %} <a
        >{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}interventions/<i>&lt;intervention_id&gt;</i>/<i>&lt;date&gt;</i>/times</a></li>
<li>{% trans 'Creating a new appointment:' %} <a
        >{{ site_base_uri }}{% url 'clicrdv-create-appointment-qs' slug=object.slug %}</a> (POST)</li>
<li>{% trans 'Cancelling an appointment:' %} <a
        >{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}<i>&lt;appointment_id&gt;</i>/cancel</a></li>
</ul>
{% endblock %}

{% block security %}
<p>
{% trans 'Accessing the listings is open, but creation and cancellation of appointments requests is limited to the following API users:' %}
</p>

{% access_rights_table resource=object permission='can_manage_appointment' %}
{% endblock %}
