From c64a6dcd83cd13f5cc534325feac0554cf289a81 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 3 Jun 2024 04:54:58 +0200 Subject: [PATCH] Minor template improvements. --- templates/_base.html | 3 +++ templates/day.html | 44 +++++++++++++++++++++++++++++++------------- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/templates/_base.html b/templates/_base.html index 7c10506..0d2debe 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -23,6 +23,9 @@ td, th, tr, table { padding: 0; border-collapse: collapse; } +th, td { + padding-right: 1em; +} a { color: black; } diff --git a/templates/day.html b/templates/day.html index 0165c9e..627923b 100644 --- a/templates/day.html +++ b/templates/day.html @@ -37,7 +37,7 @@ td.todo_line { height: 1.7em; } tr.inactive td.todo_line { - background-color: #efefef; + background-color: #dddddd; } td.left_border { border-left: 1px solid black; @@ -45,8 +45,11 @@ td.left_border { td.right_border { border-right: 1px solid black; } -input { - height: 100%; +input[type="text"] { + width: 98%; +} +input[name="day_comment"] { + width: 100em; } {% endblock %} @@ -82,14 +85,14 @@ O  {% for condition in conditions_present|reverse %} -{% if condition in node.todo.enables %} +{% elif condition in node.todo.disables %} !{% endif %} +{% if condition in node.todo.enables %} +{% elif condition in node.todo.disables %} !{% endif %} {% endfor %} {% if node.seen %} {{node.todo.comment|e}} {% else %} - + {% endif %} @@ -144,16 +147,19 @@ O  prev | next

-comment: -
-add todo: + +

+comment: + + +

to do

- + @@ -168,12 +174,12 @@ add todo: {% elif outer_loop.index < loop.index %} {% endfor %} - + {% for _ in conditions_present %} @@ -182,7 +188,7 @@ add todo: {% elif outer_loop.index0 + loop.index > conditions_present|length %} {% endfor %} - + +{% for condition in conditions_present %} + +{% endfor %} + + + +{% for condition in conditions_present %} + +{% endfor %} + + + {% for condition in conditions_present %} {% endfor %} -- 2.30.2
statesconditions add enabler add disabler
{% else %} -X +× {% endif %} [{% if condition.is_active %}X{% else %} {% endif %}] {{condition.title.at(day.date)|e}} {% else %} - X + Ã— {% endif %} {% endfor %} @@ -201,7 +207,19 @@ add todo: {% for condition in conditions_present %} doablesdoables
add: