Server-Bibliothek
2026-07-23 548bab93e55f6e514557571d3c9da9b1c1d59c35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{% extends "base.html" %}
{% block title %}Protokoll {{ protokoll.mitarbeiter }} – Server-Bibliothek{% endblock %}
{% block content %}
 
<div class="page-head">
  <div>
    <p class="eyebrow">Protokoll{% if protokoll.rechnername %} · {{ protokoll.rechnername }}{% endif %}</p>
    <h1>{{ protokoll.mitarbeiter }}</h1>
  </div>
  <div class="catalog-actions">
    <a href="{{ url_for('zuweisung_neu', protokoll_id=protokoll.id) }}" class="btn">+ Weitere Tools hinzufügen</a>
    <form method="post" action="{{ url_for('protokoll_loeschen', protokoll_id=protokoll.id) }}"
          onsubmit="return confirm('Das komplette Protokoll fuer {{ protokoll.mitarbeiter }} wirklich loeschen?');">
      <button type="submit" class="btn btn-danger">Protokoll löschen</button>
    </form>
  </div>
</div>
 
<div class="detail-grid">
  <div>
    <div class="panel">
      <h2>Zugewiesene Tools ({{ eintraege | length }})</h2>
      {% if eintraege %}
        <table class="data-table">
          <thead>
            <tr><th>Tool</th><th>Version</th><th></th></tr>
          </thead>
          <tbody>
            {% for e in eintraege %}
            <tr>
              <td><a href="{{ url_for('software_detail', software_id=e.software_id) }}">{{ e.software_name }}</a></td>
              <td>{{ e.installierte_version or "–" }}</td>
              <td>
                <form method="post" action="{{ url_for('zuweisung_loeschen', zuweisung_id=e.id) }}"
                      onsubmit="return confirm('{{ e.software_name }} aus diesem Protokoll entfernen?');">
                  <button type="submit" class="btn btn-danger btn-small">Entfernen</button>
                </form>
              </td>
            </tr>
            {% endfor %}
          </tbody>
        </table>
      {% else %}
        <p class="hint">Noch keine Tools in diesem Protokoll.</p>
      {% endif %}
    </div>
  </div>
 
  <div>
    <div class="panel">
      <h2>Details</h2>
      <div class="kv-row"><span class="kv-label">Mitarbeiter</span><span class="kv-value">{{ protokoll.mitarbeiter }}</span></div>
      <div class="kv-row"><span class="kv-label">Rechnername</span><span class="kv-value">{{ protokoll.rechnername or "–" }}</span></div>
      <div class="kv-row"><span class="kv-label">Datum</span><span class="kv-value">{{ protokoll.datum }}</span></div>
      <div class="kv-row"><span class="kv-label">Eingerichtet von</span><span class="kv-value">{{ protokoll.erstellt_von or "–" }}</span></div>
      {% if protokoll.notiz %}
      <div class="kv-row"><span class="kv-label">Notiz</span><span class="kv-value">{{ protokoll.notiz }}</span></div>
      {% endif %}
    </div>
  </div>
</div>
 
{% endblock %}