home · contact · privacy
Add date range input form to /calendar view.
[plomtask] / templates / calendar.html
index 0b7197fd526b171c81d112171abf83f69fb9b354..3acdbc6fc2205e67e0c4e514130e4e33ad292e66 100644 (file)
@@ -1,6 +1,11 @@
 {% extends 'base.html' %}
 
 {% block content %}
+<form action="calendar" method="GET">
+from <input name="start" value="{{start}}" />
+to <input name="end" value="{{end}}" />
+<input type="submit" value="OK" />
+</form>
 <ul>
 {% for day in days %}
 <li><a href="day?date={{day.date}}">{{day.date}}</a> ({{day.weekday}}) {{day.comment|e}}