permissions.html

22 Zeilen · 1,3 KB · HTML
Rohdatei
{% extends 'base.html' %}
{% block title %}Berechtigungen{% endblock %}
{% block content %}
<div class="page-head"><div><h1>Berechtigungsübersicht</h1><small>Stand {{ today|d }} – ergibt sich aus gültigen Qualifikationen</small></div>
  <div class="actions"><button type="button" onclick="window.print()">Drucken</button></div></div>
<div class="panel flush table-wrap">
  <table class="matrix">
    <thead><tr><th>Mitarbeiter/in</th>{% for p, label in PERMISSIONS.items() %}<th>{{ label }}</th>{% endfor %}</tr></thead>
    <tbody>
    {% for u in users %}
    <tr><td><a href="/personal/{{ u.id }}"><b>{{ u.full_name }}</b></a><br><small>{{ u.job_title or '' }}</small></td>
      {% for p in PERMISSIONS %}{% set d = details[u.id][p] %}
      <td title="{% if d.granted %}{{ d.sources|join(', ') }}{% elif d.missing and d.sources %}fehlt: {{ d.missing|join(', ') }}{% endif %}">
        {% if d.granted %}<span class="cell-ok">✔</span>{% elif d.sources %}<span class="cell-overdue">gesperrt</span>{% else %}<span class="cell-none">–</span>{% endif %}
      </td>{% endfor %}
    </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<p class="muted">„gesperrt“ = Grundqualifikation vorhanden, aber eine Voraussetzung (z. B. jährliche Unterweisung) fehlt oder ist abgelaufen. Mit der Maus über die Zelle fahren für Details.</p>
{% endblock %}