{% extends "base.html" %} {% set active_page = "credentials" %} {% set can_create = current_user.has_permission('credentials.create') %} {% set can_edit = current_user.has_permission('credentials.edit') %} {% set can_delete = current_user.has_permission('credentials.edit') %} {% set category_labels = dict(categories) %} {% block page_title %}Zugangsdaten{% endblock %} {% block page_sub %}
{% endblock %} {% block content %} {% import "_hint_icon.html" as hi %}| Name | Username | Kategorie | Verwendet von | Aktionen |
|---|---|---|---|---|
| {{ c['name'] }} | {{ c['username'] }} | {{ category_labels.get(c['category'], c['category']) }} | {% if usage_total == 0 %}—{% else %} {% if c['switch_count'] %}{{ c['switch_count'] }} Switch{{ 'e' if c['switch_count'] != 1 else '' }}{% endif %} {% if c['switch_count'] and c['device_count'] %}, {% endif %} {% if c['device_count'] %}{{ c['device_count'] }} Gerät{{ 'e' if c['device_count'] != 1 else '' }}{% endif %} {% endif %} |
{% if can_edit %}
{% endif %}
{% if can_delete %}
{% endif %}
|
| Noch keine Zugangsdaten vorhanden. | ||||