{% extends "base.html" %} {% block title %}Schlüsselverwaltung{% endblock %} {% block content %}

Schlüsselverwaltung

{% if '/vorstand' in current_user.groups %} Neuen Schlüssel hinzufügen {% endif %}
{% if keys %}
{% for key in keys %} {% endfor %}
ID Name Zugewiesen an Aktionen
{{ key.id }} {{ key.name }} {% if key.user %} {{ key.user.name }} {% else %} Nicht zugewiesen {% endif %}
{% if '/vorstand' in current_user.groups %} Bearbeiten {% endif %} {% if key.user_id == current_user.id %} Schlüssel abgeben {% endif %}
{% else %}
Keine Schlüssel gefunden. {% if '/vorstand' in current_user.groups %}Neuen Schlüssel hinzufügen.{% endif %}
{% endif %}
{% endblock %}