From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 18 May 2024 03:41:17 +0000 (+0200)
Subject: Add titles and other metadata to pages.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/bar%20baz.html?a=commitdiff_plain;h=47108bf733ec32c54710e30b50a71084a5c396cd;p=taskplom

Add titles and other metadata to pages.
---

diff --git a/templates/calendar.html b/templates/calendar.html
index f6208bb..220e9bb 100644
--- a/templates/calendar.html
+++ b/templates/calendar.html
@@ -21,6 +21,8 @@ td.day_name {
 
 
 {% block content %}
+<h3>calendar</h3>
+
 <form action="calendar" method="GET">
 from <input name="start" value="{{start}}" />
 to <input name="end" value="{{end}}" />
diff --git a/templates/conditions.html b/templates/conditions.html
index e2c4ec1..88d1cc7 100644
--- a/templates/conditions.html
+++ b/templates/conditions.html
@@ -1,12 +1,23 @@
 {% extends '_base.html' %}
 
 {% block content %}
-<a href="condition">add</a>
-<ul>
+<h3>conditions</h3>
+
+<table>
+<tr>
+<th>active</th>
+<th>title</th>
+</tr>
 {% for condition in conditions %}
-<li><a href="condition?id={{condition.id_}}">{{condition.title.newest}}</a>
+<tr>
+<td>[{% if condition.is_active %}X{% else %} {% endif %}]</td>
+<td><a href="condition?id={{condition.id_}}">{{condition.title.newest}}</a></td>
+</tr>
 {% endfor %}
-</ul>
-{% endblock %}
+</table>
 
+<p>
+<a href="condition">add</a>
+</p>
 
+{% endblock %}
diff --git a/templates/processes.html b/templates/processes.html
index 6c3c64b..5cd00b5 100644
--- a/templates/processes.html
+++ b/templates/processes.html
@@ -1,11 +1,22 @@
 {% extends '_base.html' %}
 
 {% block content %}
-<a href="process">add</a>
-<ul>
+<h3>processes</h3>
+
+<table>
+<tr>
+<th>steps</th>
+<th>title</th>
+</tr>
 {% for process in processes %}
-<li><a href="process?id={{process.id_}}">{{process.title.newest}}</a>
+<tr>
+<td>{{ process.explicit_steps|count }}</td>
+<td><a href="process?id={{process.id_}}">{{process.title.newest}}</a></td>
+</tr>
 {% endfor %}
-</ul>
-{% endblock %}
+</table>
 
+<p>
+<a href="process">add</a>
+</p>
+{% endblock %}