From 47108bf733ec32c54710e30b50a71084a5c396cd Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sat, 18 May 2024 05:41:17 +0200
Subject: [PATCH] Add titles and other metadata to pages.

---
 templates/calendar.html   |  2 ++
 templates/conditions.html | 21 ++++++++++++++++-----
 templates/processes.html  | 21 ++++++++++++++++-----
 3 files changed, 34 insertions(+), 10 deletions(-)

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 %}
-- 
2.30.2