From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 12 Jul 2024 07:01:23 +0000 (+0200)
Subject: Add previously forgotten GET /calendar_txt template.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/booking/static/process?a=commitdiff_plain;h=8e4b4d5e104c761f3ed263954bbe8d1631bbf0d4;p=taskplom

Add previously forgotten GET /calendar_txt template.
---

diff --git a/templates/calendar_txt.html b/templates/calendar_txt.html
new file mode 100644
index 0000000..567ddd8
--- /dev/null
+++ b/templates/calendar_txt.html
@@ -0,0 +1,20 @@
+{% extends '_base.html' %}
+
+{% block content %}
+<h3>calendar</h3>
+
+<p><a href="/calendar">normal view</a></p>
+
+<form action="calendar_txt" method="GET">
+from <input name="start" class="date" value="{{start}}" />
+to <input name="end" class="date" value="{{end}}" />
+<input type="submit" value="OK" />
+</form>
+<table>
+
+<pre>{% for day in days %}{% if day.weekday == "Monday" %}
+---{% endif %}{% if day.comment or day.calendarized_todos %}
+{{day.weekday|truncate(2,True,'',0)}} {{day.date}} {{day.comment|e}}{% endif %}{% if day.calendarized_todos%}{% for todo in day.calendarized_todos %}
+* {{todo.title_then|e}}{% if todo.comment %} / {{todo.comment|e}}{% endif %}{% endfor %}{% endif %}{% endfor %}
+</pre>
+{% endblock %}