Files
Journal/templates/week.html
SimolZimol f973e67311 modified: Dockerfile
new file:   pdf_export.py
	modified:   requirements.txt
	modified:   routes/journal_routes.py
	modified:   static/css/style.css
	modified:   templates/base.html
	modified:   templates/day.html
	new file:   templates/edit_future.html
	new file:   templates/edit_note.html
	modified:   templates/future.html
	modified:   templates/monat.html
	new file:   templates/report.html
	modified:   templates/week.html
2026-08-02 21:28:30 +02:00

75 lines
3.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% 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>
<a href="{{ url_for('journal.edit_note', note_id=n.id) }}" class="btn btn-small">Bearbeiten</a>
<form method="post" action="{{ url_for('journal.delete_note', note_id=n.id) }}" class="inline"
onsubmit="return confirm('Diese Notiz wirklich löschen?');">
<button class="btn btn-small btn-danger">Löschen</button>
</form>
</span>
</div>
{% endfor %}
</div>
{% else %}
<p class="muted">Keine Einträge.</p>
{% endif %}
</section>
{% endfor %}
{% endblock %}