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:
@@ -41,6 +41,23 @@
|
||||
</label>
|
||||
<button type="submit" class="btn btn-primary">Hinzufügen</button>
|
||||
</div>
|
||||
<div class="note-form-row ref-row">
|
||||
<label>
|
||||
Verweis-Typ
|
||||
<select name="ref_type">
|
||||
<option value="">– kein –</option>
|
||||
<option value="email">📧 E-Mail</option>
|
||||
<option value="link">🔗 Link/URL</option>
|
||||
<option value="phone">📞 Telefon</option>
|
||||
<option value="mention">@ Erwähnung</option>
|
||||
</select>
|
||||
</label>
|
||||
<label class="grow">
|
||||
Verweis
|
||||
<input type="text" name="ref_value" placeholder="z. B. name@firma.de oder https://... (optional)">
|
||||
</label>
|
||||
<span class="ref-hint muted">Optional – wird als klickbarer Verweis gespeichert.</span>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
@@ -57,7 +74,21 @@
|
||||
{% for n in notes %}
|
||||
<div class="notes-row {{ '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="note-text">{{ n.note_text }}</span>
|
||||
<div class="note-cell">
|
||||
<div class="note-text">{{ n.note_text|linkify }}</div>
|
||||
{% if n.refs|refs %}
|
||||
<div 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 %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if n.moved_from_date %}
|
||||
<div class="moved-hint">↩ verschoben von {{ n.moved_from_date.strftime('%d.%m.%Y') }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<span class="priority-badge priority-{{ n.priority }}">{{ ['Niedrig','Mittel','Hoch'][n.priority] if n.priority <= 2 else n.priority }}</span>
|
||||
<span class="actions">
|
||||
<form method="post" action="{{ url_for('journal.mark_done', note_id=n.id) }}" class="inline">
|
||||
@@ -65,11 +96,16 @@
|
||||
{{ 'Erledigt' if n.status != 'done' else 'Wieder ö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="In anderen Tag verschieben">
|
||||
<button type="submit" class="btn btn-small" name="target" value="date">Verschieben</button>
|
||||
<button type="submit" class="btn btn-small btn-future" name="target" value="future">→ Future Log</button>
|
||||
</form>
|
||||
<span class="move-ctrl">
|
||||
<input type="date" id="move-date-{{ n.id }}" class="move-date" title="Zieldatum wählen">
|
||||
<form method="post" action="{{ url_for('journal.move_note', note_id=n.id) }}" class="inline">
|
||||
<input type="hidden" name="target_date" id="move-target-{{ n.id }}">
|
||||
<button type="submit" class="btn btn-small" name="target" value="date" id="move-btn-{{ n.id }}" disabled>Verschieben</button>
|
||||
</form>
|
||||
<form method="post" action="{{ url_for('journal.move_note', note_id=n.id) }}" class="inline">
|
||||
<button type="submit" class="btn btn-small btn-future" name="target" value="future">→ Future Log</button>
|
||||
</form>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user