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

{% block description %}
{% endblock %}

{% block endpoints %}
<h4>{% trans "Family related" %}</h4>
<ul>
<li>{% trans 'Check WSDL availability:' %} <a href="{% url 'teamnet-axel-ping' slug=object.slug %}"
        >{{ site_base_uri }}{% url 'teamnet-axel-ping' slug=object.slug %}</a>[?debug]</li>
<li>{% trans 'Authentication:' %} <a href="{% url 'teamnet-axel-auth' slug=object.slug %}"
        >{{ site_base_uri }}{% url 'teamnet-axel-auth' slug=object.slug %}?login=...&pwd=...</a></li>
<li>{% trans 'Link:' %} <a href="{% url 'teamnet-axel-link' slug=object.slug %}"
        >{{ site_base_uri }}{% url 'teamnet-axel-link' slug=object.slug %}?NameID=...&login=...&pwd=...</a></li>
<li>{% trans 'Unlink:' %} <a href="{% url 'teamnet-axel-unlink' slug=object.slug %}"
        >{{ site_base_uri }}{% url 'teamnet-axel-unlink' slug=object.slug %}?NameID=...</a></li>
<li>{% trans 'Get all family informations:' %} <a href="{% url 'teamnet-axel-family' slug=object.slug %}"
        >{{ site_base_uri }}{% url 'teamnet-axel-family' slug=object.slug %}?NameID=...</a></li>
<li>{% trans 'Get specific family informations (list of children):' %}
       <a href="{% url 'teamnet-axel-family-filtered' slug=object.slug key='key' %}"
          >{{ site_base_uri }}{% url 'teamnet-axel-family-filtered' slug=object.slug key='key' %}?NameID=...</a>
       <em>key</em> is <em>adults</em> or <em>children</em></li>
</ul>

<h4>{% trans "Invoices related" %}</h4>
<ul>
<li>{% trans 'Get invoice history list:' %}
  {% url 'teamnet-axel-invoices-history' regie_id='42' slug=object.slug as invoices_history_url %}
  <a href="{{ invoices_history_url }}">
    {{ site_base_uri }}{{ invoices_history_url }}?NameID=...
  </a> <em>42</em> {% trans 'is regie identifier' %}
</li>
<li>{% trans 'Get invoice list:' %}
  {% url 'teamnet-axel-invoices' regie_id='42' slug=object.slug as invoices_url %}
  <a href="{{ invoices_url }}">
    {{ site_base_uri }}{{ invoices_url }}?NameID=...
  </a> <em>42</em> {% trans 'is regie identifier' %}
</li>
<li>{% trans 'Show invoice details:' %}
  {% url 'teamnet-axel-invoice' slug=object.slug regie_id='42' invoice_id='2345-20150916' as invoice_details_url %}
  <a href="{{ invoice_details_url }}">
    {{ site_base_uri }}{{ invoice_details_url }}
  </a>
  <em>42</em> {% trans 'is regie identifier' %},
  <em>2345</em> {% trans 'is family identifier' %},
  <em>20150916</em> {% trans 'is invoice identifier' %}
</li>
<li>{% trans 'Get invoice pdf:' %}
  {% url 'teamnet-axel-invoice-pdf' slug=object.slug regie_id='42' invoice_id='2345-20150916' as invoice_download_url %}
  <a href="{{ invoice_download_url }}">
    {{ site_base_uri }}{{ invoice_download_url }}
  </a>
</li>
<li>{% trans 'Pay invoice:' %}
  {% url 'teamnet-axel-invoice-payment' slug=object.slug regie_id='42' invoice_id='2345-20150808' as payment_url %}
  <a href="{{ payment_url }}">
    {{ site_base_uri }}{{ payment_url }}?NameID=...
  </a>
</li>
</ul>
{% endblock %}

{% block security %}
<p>
{% trans 'Access is limited to the following API users:' %}
</p>
{% access_rights_table resource=object permission='can_access' %}
{% endblock %}
