passerelle/passerelle/contrib/fake_family/templates/passerelle/contrib/fake_family/detail.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
3.1 KiB
HTML
Raw Normal View History

{% extends "passerelle/manage/service_view.html" %}
2015-09-28 14:46:55 +02:00
{% load i18n passerelle %}
{% block description %}
{% endblock %}
2015-09-28 14:46:55 +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>
<div>
<h3>{% trans "Contents" %}</h3>
<h4>{% trans "Adults" %}</h4>
<table class="main">
<thead><tr><th>{% trans "id" %}</th><th>{% trans "text" %}</th><th>{% trans "birthdate" %}</th><th>{% trans "keywords" %}</th></tr></thead>
<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>
<h4>{% trans "Children" %}</h4>
<table class="main">
<thead><tr><th>{% trans "id" %}</th><th>{% trans "text" %}</th><th>{% trans "birthdate" %}</th><th>{% trans "keywords" %}</th></tr></thead>
<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>
<h4>{% trans "Families" %}</h4>
<table class="main">
<thead><tr><th>{% trans "id" %}</th><th>{% trans "adults" %}</th><th>{% trans "children" %}</th>
<th>{% trans "contacts" %}</th><th>{% trans "keywords" %}</th></tr></thead>
<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>
{% endblock %}
{% 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 %}