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

{% block description %}
{{ block.super }}

{% if missing_phpserialize or missing_soappy %}
<div class="errors">
<p>{% trans 'Missing runtime dependencies:' %}
{% if missing_phpserialize %}phpserialize{% endif %}
{% if missing_soappy %}SOAPpy{% endif %}
</p>
</div>
{% endif %}
{% endblock %}

{% block endpoints %}
<ul>
<li>{% trans 'Listing communes:' %} <a href="{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="communes" %}"
        >{{ site_base_uri }}{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="communes" %}</a></li>
<li>{% trans 'Listing streets:' %} <a href="{% url 'gdc-voies' slug=object.slug insee=34022%}"
        >{{ site_base_uri }}{% url 'gdc-view' slug=object.slug %}/voies/<i>&lt;insee&gt;</i></a></li>
<li>{% trans 'Listing subjects:' %} <a href="{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="objets" %}"
        >{{ site_base_uri }}{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="objets" %}</a></li>
<li>{% trans 'Posting a new request:' %} <a href="{% url 'gdc-post' slug=object.slug %}"
        >{{ site_base_uri }}{% url 'gdc-post' slug=object.slug %}</a> (POST)</li>
</ul>
{% endblock %}

{% block security %}
<p>
{% trans 'Accessing the listings is open, but posting requests is limited to the following API users:' %}
</p>
{% access_rights_table resource=object permission='can_post_request' %}
{% endblock %}
