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
70 lines
3.3 KiB
HTML
70 lines
3.3 KiB
HTML
{% extends "base.html" %}
|
||
{% block title %}Wochenübersicht – Bullet Journal{% endblock %}
|
||
{% block content %}
|
||
<div class="page-head">
|
||
<div>
|
||
<h1>Wochenübersicht</h1>
|
||
<p class="muted">
|
||
<a href="{{ url_for('journal.week', week=prev_monday.strftime('%G-W%V')) }}" class="btn btn-small">← Vorige</a>
|
||
Woche ab {{ monday.strftime('%d.%m.%Y') }}
|
||
<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>
|
||
|
||
{% 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>
|
||
|
||
{% 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 %}
|
||
</div>
|
||
{% else %}
|
||
<p class="muted">Keine Einträge.</p>
|
||
{% endif %}
|
||
</section>
|
||
{% endfor %}
|
||
{% endblock %}
|