modified: app.py
modified: db.py modified: routes/journal_routes.py modified: static/css/style.css modified: static/js/main.js modified: templates/base.html modified: templates/day.html modified: templates/future.html modified: templates/index.html new file: templates/monat.html modified: templates/week.html
This commit is contained in:
@@ -10,52 +10,60 @@
|
||||
<a href="{{ url_for('journal.week', week=next_monday.strftime('%G-W%V')) }}" class="btn btn-small">Nächste →</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="page-actions">
|
||||
<a href="{{ url_for('journal.export_week', week=monday.strftime('%G-W%V')) }}" class="btn btn-small">⬇ CSV</a>
|
||||
<button class="btn btn-small" onclick="window.print()">🖨 Drucken/PDF</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="card">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Tag</th>
|
||||
<th>Datum</th>
|
||||
<th>Offen</th>
|
||||
<th>Erledigt</th>
|
||||
<th>Gesamt</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for day in days_detail %}
|
||||
<tr>
|
||||
<td>{{ day.weekday }}</td>
|
||||
<td>{{ day.date.strftime('%d.%m.%Y') }}</td>
|
||||
<td class="num open">{{ day.open }}</td>
|
||||
<td class="num done">{{ day.done }}</td>
|
||||
<td class="num">{{ day.total }}</td>
|
||||
<td><a href="{{ url_for('journal.day', date_str=day.date.strftime('%Y-%m-%d')) }}" class="btn btn-small">Öffnen</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
{% for day in days_detail %}
|
||||
<section class="card day-section">
|
||||
<div class="day-head">
|
||||
<h2>{{ day.weekday }}, {{ day.date.strftime('%d.%m.%Y') }}</h2>
|
||||
<div class="day-head-stats">
|
||||
<span class="pill open">{{ day.open }} offen</span>
|
||||
<span class="pill done">{{ day.done }} erledigt</span>
|
||||
{% if day.moved %}<span class="pill moved">{{ day.moved }} verschoben</span>{% endif %}
|
||||
<a href="{{ url_for('journal.day', date_str=day.date.strftime('%Y-%m-%d')) }}" class="btn btn-small">Tag öffnen</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="card">
|
||||
<h2>Offene Aufgaben dieser Woche</h2>
|
||||
{% if open_notes %}
|
||||
<ul class="note-list">
|
||||
{% for n in open_notes %}
|
||||
<li class="note-item">
|
||||
<span class="bullet bullet-{{ n.bullet_type }}">{{ n.bullet_type }}</span>
|
||||
<span class="note-text">{{ n.note_text }}</span>
|
||||
<span class="note-date">{{ n.note_date.strftime('%d.%m.') }} {{ 'Aufgabe' if n.bullet_type == '.' else ('Termin' if n.bullet_type == 'x' else ('Notiz' if n.bullet_type == '-' else 'Frage')) }}</span>
|
||||
<form method="post" action="{{ url_for('journal.mark_done', note_id=n.id) }}" class="inline">
|
||||
<button class="btn btn-small">Erledigt</button>
|
||||
</form>
|
||||
</li>
|
||||
{% if day.notes %}
|
||||
<div class="mini-notes">
|
||||
{% for n in day.notes %}
|
||||
<div class="mini-note {{ 'is-done' if n.status == 'done' else '' }}">
|
||||
<span class="bullet bullet-{{ n.bullet_type }}" title="{{ bullet_labels.get(n.bullet_type, '') }}">{{ n.bullet_type }}</span>
|
||||
<span class="mini-note-text">{{ n.note_text|linkify }}</span>
|
||||
{% if n.refs|refs %}
|
||||
<span class="refs">
|
||||
{% for r in n.refs|refs %}
|
||||
<a class="ref" href="{{ ref_href(r.type, r.value) }}" target="_blank" rel="noopener">
|
||||
{{ ref_type_label(r.type) }} {{ r.value }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if n.moved_from_date %}
|
||||
<span class="moved-hint">↩ verschoben von {{ n.moved_from_date.strftime('%d.%m.%Y') }}</span>
|
||||
{% endif %}
|
||||
<span class="priority-badge priority-{{ n.priority }}">{{ ['Niedrig','Mittel','Hoch'][n.priority] if n.priority <= 2 else n.priority }}</span>
|
||||
<span class="mini-actions no-print">
|
||||
<form method="post" action="{{ url_for('journal.mark_done', note_id=n.id) }}" class="inline">
|
||||
<button class="btn btn-small {{ 'btn-success' if n.status != 'done' else '' }}">
|
||||
{{ 'Erledigt' if n.status != 'done' else 'Öffnen' }}
|
||||
</button>
|
||||
</form>
|
||||
<form method="post" action="{{ url_for('journal.move_note', note_id=n.id) }}" class="inline move-form">
|
||||
<input type="date" name="target_date" class="move-date" title="Verschiebe-Button nutzt dieses Datum">
|
||||
<button type="submit" class="btn btn-small" name="target" value="date">Verschieben</button>
|
||||
</form>
|
||||
</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<p class="muted">Keine offenen Aufgaben in dieser Woche. 🎉</p>
|
||||
<p class="muted">Keine Einträge.</p>
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user