42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
{% load i18n %}
|
|
<table class="main">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans 'Name' %}</th>
|
|
<th>{% trans 'Key Type' %}</th>
|
|
<th>{% trans 'IP Restriction' %}</th>
|
|
{% if perms.base.delete_accessright %}<th></th>{% endif %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for object in access_rights_list %}
|
|
<tr>
|
|
{% if perms.base.change_apiuser %}
|
|
<td><a href="{% url 'apiuser-edit' pk=object.apiuser.id %}">{{ object.apiuser.fullname }}</a></td>
|
|
{% else %}
|
|
<td>{{ object.apiuser.fullname }}</td>
|
|
{% endif %}
|
|
<td>{% if object.apiuser.keytype %}{{ object.apiuser.keytype }}{% else %} - {% endif %}</td>
|
|
<td>{% if object.apiuser.ipsource %}{{ object.apiuser.ipsource }}{% else %} - {% endif %}</td>
|
|
{% if perms.base.delete_accessright %}
|
|
<td><a rel="popup" class="icon-remove-sign" href="{% url 'access-right-remove' pk=object.id %}"></a></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
{% for trusted_service in trusted_services %}
|
|
<tr>
|
|
<td>{{ trusted_service.title }} ({{ trusted_service.verif_orig }})</td>
|
|
<td>SIGN</td>
|
|
<td> - </td>
|
|
{% if perms.base.delete_accessright %}<td><em>{% trans 'trusted service' %}</em></td>{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if perms.base.add_accessright %}
|
|
<p>
|
|
<a rel="popup" class="icon-plus button" href="{% url 'access-right-add' resource_type=resource_type resource_pk=resource_pk codename=permission %}">{% trans 'Add' %}</a>
|
|
</p>
|
|
{% endif %}
|