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
60 lines
2.1 KiB
HTML
60 lines
2.1 KiB
HTML
{% extends "base.html" %}
|
||
{% block title %}Future Log – Bullet Journal{% endblock %}
|
||
{% block content %}
|
||
<div class="page-head">
|
||
<div>
|
||
<h1>Future Log</h1>
|
||
<p class="muted">Langfristiger Kalender – Aufgaben, die später erledigt werden.</p>
|
||
</div>
|
||
</div>
|
||
|
||
<section class="card">
|
||
<h2>Neuer Eintrag</h2>
|
||
<form method="post" action="{{ url_for('journal.future') }}" class="note-form">
|
||
<div class="note-form-row">
|
||
<label>
|
||
Monat
|
||
<input type="month" name="month" required>
|
||
</label>
|
||
<label class="grow">
|
||
Notiz
|
||
<input type="text" name="note_text" required placeholder="Eintrag ins Future Log">
|
||
</label>
|
||
<button type="submit" class="btn btn-primary">Hinzufügen</button>
|
||
</div>
|
||
</form>
|
||
</section>
|
||
|
||
{% if grouped %}
|
||
{% for month_key, entries in grouped.items() %}
|
||
<section class="card">
|
||
<h2>{{ month_key[5:7]|int }} / {{ month_key[0:4] }}</h2>
|
||
<ul class="note-list">
|
||
{% for e in entries %}
|
||
<li class="note-item {{ 'is-done' if e.status == 'done' else '' }}">
|
||
<span class="bullet">{{ '✓' if e.status == 'done' else '›' }}</span>
|
||
<div class="note-text">
|
||
<div>{{ e.note_text|linkify }}</div>
|
||
{% if e.refs|refs %}
|
||
<div class="refs">
|
||
{% for r in e.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 %}
|
||
</div>
|
||
{% endif %}
|
||
<span class="note-date">{{ e.month_date.strftime('%m/%Y') }}</span>
|
||
</div>
|
||
</li>
|
||
{% endfor %}
|
||
</ul>
|
||
</section>
|
||
{% endfor %}
|
||
{% else %}
|
||
<section class="card">
|
||
<p class="muted">Noch keine Einträge im Future Log.</p>
|
||
</section>
|
||
{% endif %}
|
||
{% endblock %}
|