41 lines
1.1 KiB
HTML
41 lines
1.1 KiB
HTML
{#
|
|
Datei: templates/projekt.html
|
|
Autor: Björn Runden <br@runden.de>
|
|
Datum: 2026-06-17
|
|
Zweck: Projekt-Cockpit mit Notizen-Log. Zugriff nur für zugewiesene Nutzer.
|
|
Variablen: user, project (Project), notes (list[Note])
|
|
#}
|
|
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ project.name }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{{ project.name }}</h1>
|
|
<p class="subtitle">Client: {{ project.client.name }}</p>
|
|
|
|
<section>
|
|
<h2>Korrespondenz / Notizen</h2>
|
|
{% if notes %}
|
|
<table class="notes-table">
|
|
<thead>
|
|
<tr><th>Datum</th><th>Autor (sub)</th><th>Notiz</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for n in notes %}
|
|
<tr>
|
|
<td>{{ n.created_at.strftime('%Y-%m-%d %H:%M') }}</td>
|
|
<td><code>{{ n.user_id }}</code></td>
|
|
<td>{{ n.text }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<button class="btn" disabled title="Noch nicht implementiert">Notizen exportieren</button>
|
|
{% else %}
|
|
<p>Keine Notizen für dieses Projekt vorhanden.</p>
|
|
{% endif %}
|
|
</section>
|
|
|
|
<p><a href="{{ url_for('main.index') }}">← Zurück zum Dashboard</a></p>
|
|
{% endblock %}
|