home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In calendar day gap filling, ensure days before and after existing days.
[plomtask]
/
templates
/
calendar.html
diff --git
a/templates/calendar.html
b/templates/calendar.html
index 715131af6de410b266fa71c0f29743cebeb74f19..4d672421329c95208cb1ca5050130c78065bfe9b 100644
(file)
--- a/
templates/calendar.html
+++ b/
templates/calendar.html
@@
-1,13
+1,28
@@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+
+
{% block css %}
{% block css %}
-tr.week_row td { height: 0.1em; background-color: black; padding: 0; margin: 0; }
-tr.month_row td { border: 0.1em solid black; text-align: center; }
+tr.week_row td {
+ height: 0.1em;
+ background-color: black;
+ padding: 0;
+ margin: 0;
+}
+tr.month_row td {
+ border: 0.1em solid black;
+ text-align: center;
+}
+td.day_name {
+ padding-right: 0.5em;
+}
{% endblock %}
{% block content %}
{% endblock %}
{% block content %}
+<h3>calendar</h3>
+
<form action="calendar" method="GET">
from <input name="start" value="{{start}}" />
to <input name="end" value="{{end}}" />
<form action="calendar" method="GET">
from <input name="start" value="{{start}}" />
to <input name="end" value="{{end}}" />
@@
-29,11
+44,19
@@
to <input name="end" value="{{end}}" />
{% endif %}
<tr>
{% endif %}
<tr>
-<td>{{day.weekday|truncate(2,True,'',0)}}</td>
+<td
class="day_name"
>{{day.weekday|truncate(2,True,'',0)}}</td>
<td><a href="day?date={{day.date}}">{{day.date}}</a></td>
<td>{{day.comment|e}}</td>
</tr>
<td><a href="day?date={{day.date}}">{{day.date}}</a></td>
<td>{{day.comment|e}}</td>
</tr>
+{% for todo in day.calendarized_todos %}
+<tr>
+<td>[{% if todo.is_done %}X{% else %} {% endif %}]</td>
+<td><a href="todo?id={{todo.id_}}">{{todo.title_then|e}}</td>
+<td>{{todo.comment|e}}</td>
+</tr>
+{% endfor %}
+
{% endfor %}
</table>
{% endblock %}
{% endfor %}
</table>
{% endblock %}