From: Christian Heller Date: Sat, 18 May 2024 00:46:56 +0000 (+0200) Subject: Improve template layouts. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?a=commitdiff_plain;h=12be63c6ef58282cb6b7d5b7bc2eabe8946a1bfc;p=plomtask Improve template layouts. --- diff --git a/templates/base.html b/templates/base.html index 87b1864..0070630 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,6 +4,8 @@ diff --git a/templates/calendar.html b/templates/calendar.html index 715131a..eae103d 100644 --- a/templates/calendar.html +++ b/templates/calendar.html @@ -1,8 +1,19 @@ {% extends 'base.html' %} {% 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 %} @@ -29,7 +40,7 @@ to {% endif %} -{{day.weekday|truncate(2,True,'',0)}} +{{day.weekday|truncate(2,True,'',0)}} {{day.date}} {{day.comment|e}} diff --git a/templates/condition.html b/templates/condition.html index 92f04eb..00aeedb 100644 --- a/templates/condition.html +++ b/templates/condition.html @@ -1,16 +1,31 @@ {% extends 'base.html' %} + + {% block content %}

condition

-title: -description: -is active: + + + + + + + + + + + + + + + + +
title
is active
description
- {% endblock %} diff --git a/templates/process.html b/templates/process.html index 2a57715..10442cf 100644 --- a/templates/process.html +++ b/templates/process.html @@ -21,7 +21,7 @@ {% if step_node.is_explicit %} -add step: +add: {% endif %} @@ -38,18 +38,22 @@ add step: + + + + +
title
default effort
description
conditions @@ -65,9 +69,10 @@ add step: +add:
enables @@ -83,9 +88,10 @@ add condition: {% endfor %}
-add enables: +add: + disables @@ -101,9 +107,10 @@ add enables: +add: + steps @@ -112,9 +119,19 @@ add disables: +add: + + + + +step of + +{% for owner in owners %} +{{owner.title.newest|e}}
+{% endfor %} + {% for condition_candidate in condition_candidates %} @@ -126,15 +143,10 @@ add step: {{candidate.title.newest|e}} {% endfor %} +
-

step of

- {% endblock %} diff --git a/templates/todo.html b/templates/todo.html index 9395ada..44cdfa7 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -5,14 +5,31 @@ {% block content %}

Todo: {{todo.process.title.newest|e}}

-

-id: {{todo.id_}}
-day: {{todo.date}}
-process: {{todo.process.title.newest|e}}
-done:
-comment: -

-

conditions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
day{{todo.date}}
process{{todo.process.title.newest|e}}
done
comment
conditions {% for condition in todo.conditions %} @@ -25,13 +42,13 @@ comment: {% endfor %}
-add condition: - -{% for condition_candidate in condition_candidates %} - -{% endfor %} - -

enables

+add: +
enables {% for condition in todo.enables %} @@ -44,8 +61,13 @@ add condition: {% endfor %}
-add enables: -

disables

+add: +
disables {% for condition in todo.disables%} @@ -58,31 +80,49 @@ add enables: -

parents

-
    +add: + +
+ + + + + + + + + + +
parents {% for parent in todo.parents %} -
  • {{parent.process.title.newest|e}} +{{parent.process.title.newest|e}}
    {% endfor %} - -

    children

    -
      +
  • children + {% for child in todo.children %} -
  • -{{child.process.title.newest|e}} +
  • + + + {% endfor %} - +
    {{child.process.title.newest|e}}
    adopt: - -{% for candidate in todo_candidates %} - -{% endfor %} - +
    + - +{% for condition_candidate in condition_candidates %} + +{% endfor %} + + +{% for candidate in todo_candidates %} + +{% endfor %} + {% endblock %}