2016-06-05 09:04:53 +02:00
|
|
|
|
{% extends "passerelle/manage/service_view.html" %}
|
2015-09-28 14:46:55 +02:00
|
|
|
|
{% load i18n passerelle %}
|
|
|
|
|
|
2016-06-05 19:53:41 +02:00
|
|
|
|
{% block description %}
|
|
|
|
|
{% endblock %}
|
2015-09-28 14:46:55 +02:00
|
|
|
|
|
2016-06-05 19:53:41 +02:00
|
|
|
|
{% block endpoints %}
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<ul>
|
|
|
|
|
<li>{% trans 'Dump database (debug):' %} <a href="{% url 'fake-family-dump' slug=object.slug %}"
|
2023-03-29 11:57:05 +02:00
|
|
|
|
>{{ site_base_uri }}{% url 'fake-family-dump' slug=object.slug %}</a></li>
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<li>{% trans 'Link NameID with an adult:' %} <a href="{% url 'fake-family-link' slug=object.slug %}"
|
2023-03-29 11:57:05 +02:00
|
|
|
|
>{{ site_base_uri }}{% url 'fake-family-link' slug=object.slug %}?NameID=...&login=...&password=...</a></li>
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<li>{% trans 'Unlink NameID:' %} <a href="{% url 'fake-family-unlink' slug=object.slug %}"
|
2023-03-29 11:57:05 +02:00
|
|
|
|
>{{ site_base_uri }}{% url 'fake-family-unlink' slug=object.slug %}?NameID=...</a></li>
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<li>{% trans 'Get all family informations:' %} <a href="{% url 'fake-family-info' slug=object.slug %}"
|
2023-03-29 11:57:05 +02:00
|
|
|
|
>{{ site_base_uri }}{% url 'fake-family-info' slug=object.slug %}?NameID=...</a></li>
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<li>{% trans 'Get family list of items:' %} <a href="{% url 'fake-family-key' slug=object.slug key='key' %}"
|
2023-03-29 11:57:05 +02:00
|
|
|
|
>{{ site_base_uri }}{% url 'fake-family-key' slug=object.slug key='key' %}?NameID=...</a></li>
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<em>key</em> = <em>adults</em>, <em>children</em>, …
|
|
|
|
|
</ul>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
|
|
|
|
|
<div>
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<h3>{% trans "Contents" %}</h3>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<h4>{% trans "Adults" %}</h4>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
<table class="main">
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<thead><tr><th>{% trans "id" %}</th><th>{% trans "text" %}</th><th>{% trans "birthdate" %}</th><th>{% trans "keywords" %}</th></tr></thead>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
<tbody>
|
|
|
|
|
{% for adult in object.jsondatabase.adults.values|dictsort:"id" %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ adult.id }}</td><td>{{ adult.text }}</td><td>{{ adult.birthdate }}</td>
|
|
|
|
|
<td>{{ adult.keywords|join:'<br />' }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<h4>{% trans "Children" %}</h4>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
<table class="main">
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<thead><tr><th>{% trans "id" %}</th><th>{% trans "text" %}</th><th>{% trans "birthdate" %}</th><th>{% trans "keywords" %}</th></tr></thead>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
<tbody>
|
|
|
|
|
{% for child in object.jsondatabase.children.values|dictsort:"id" %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ child.id }}</td><td>{{ child.text }}</td><td>{{ child.birthdate }}</td>
|
|
|
|
|
<td>{{ child.keywords|join:'<br />' }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<h4>{% trans "Families" %}</h4>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
<table class="main">
|
2018-02-19 22:24:50 +01:00
|
|
|
|
<thead><tr><th>{% trans "id" %}</th><th>{% trans "adults" %}</th><th>{% trans "children" %}</th>
|
|
|
|
|
<th>{% trans "contacts" %}</th><th>{% trans "keywords" %}</th></tr></thead>
|
2015-09-30 23:36:58 +02:00
|
|
|
|
<tbody>
|
|
|
|
|
{% for family in object.jsondatabase.families.values|dictsort:"id" %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ family.id }}</td>
|
|
|
|
|
<td>{{ family.adults|join:', ' }}</td>
|
|
|
|
|
<td>{{ family.children|join:', ' }}</td>
|
|
|
|
|
<td>{{ family.contacts|join:', ' }}</td>
|
|
|
|
|
<td>{{ family.keywords|join:'<br />' }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2016-06-20 15:26:50 +02:00
|
|
|
|
{% endblock %}
|
2015-09-30 23:36:58 +02:00
|
|
|
|
|
|
|
|
|
|
2016-06-05 19:53:41 +02:00
|
|
|
|
{% block security %}
|
2015-09-28 14:46:55 +02:00
|
|
|
|
<p>
|
|
|
|
|
{% trans 'Access is limited to the following API users:' %}
|
|
|
|
|
</p>
|
|
|
|
|
{% access_rights_table resource=object permission='can_access' %}
|
|
|
|
|
{% endblock %}
|