acks.html

20 Zeilen · 1,0 KB · HTML
Rohdatei
{% extends 'base.html' %}
{% block title %}Lesebestätigungen{% endblock %}
{% block content %}
<div class="page-head"><div><div class="crumb"><a href="/qm">QM-Dokumente</a></div><h1>Lesebestätigungen</h1><small>Stand {{ today|d }} · jeweils aktuelle Version</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 d in docs %}<th><a href="/qm/{{ d.id }}">{{ d.title }}</a><br><small>V{{ d.current.version_no if d.current else '–' }}</small></th>{% endfor %}</tr></thead>
    <tbody>
    {% for u in users %}
    <tr><td><b>{{ u.full_name }}</b></td>
      {% for d in docs %}{% set a = acks.get((d.current.id, u.id)) if d.current else None %}
      <td>{% if a %}<span class="cell-ok">{{ a.acked_at.strftime('%d.%m.%y') }}</span>{% else %}<span class="cell-soon">offen</span>{% endif %}</td>
      {% endfor %}
    </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
{% endblock %}