From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 30 May 2024 08:06:59 +0000 (+0200)
Subject: Minor template fixes.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/condition_titles?a=commitdiff_plain;h=6b9970ff864e0e63527213fea5c0bed40ba877a7;p=taskplom

Minor template fixes.
---

diff --git a/plomtask/http.py b/plomtask/http.py
index 537f21f..944f79a 100644
--- a/plomtask/http.py
+++ b/plomtask/http.py
@@ -175,9 +175,9 @@ class TaskHandler(BaseHTTPRequestHandler):
             todos.sort(key=lambda t: t.is_done)
         elif sort_by == '-doneness':
             todos.sort(key=lambda t: t.is_done, reverse=True)
-        elif sort_by == 'process':
+        elif sort_by == 'title':
             todos.sort(key=lambda t: t.title_then)
-        elif sort_by == '-process':
+        elif sort_by == '-title':
             todos.sort(key=lambda t: t.title_then, reverse=True)
         elif sort_by == 'comment':
             todos.sort(key=lambda t: t.comment)
diff --git a/templates/process.html b/templates/process.html
index 8944c95..9df8b45 100644
--- a/templates/process.html
+++ b/templates/process.html
@@ -22,7 +22,7 @@
 </td>
 <td>
 {% if step_node.is_explicit %}
-add sub-step: <input name="new_step_to_{{step_id}}" list="candidates" autocomplete="off" />
+add sub-step: <input name="new_step_to_{{step_id}}" list="step_candidates" autocomplete="off" />
 {% endif %}
 </td>
 </tr>
diff --git a/templates/todo.html b/templates/todo.html
index 41d894b..80eb5c7 100644
--- a/templates/todo.html
+++ b/templates/todo.html
@@ -69,7 +69,7 @@
 
 <tr>
 <th>children</th>
-<td>{{ macros.simple_checkbox_table("adopt", todo.children, "adopt", "todo_candidates", "adopt", true) }}</td>
+<td>{{ macros.simple_checkbox_table("adopt", todo.children, "todo", "todo_candidates", "adopt", true) }}</td>
 </tr>
 
 </table>
diff --git a/templates/todos.html b/templates/todos.html
index 6cbf0bc..6b733e0 100644
--- a/templates/todos.html
+++ b/templates/todos.html
@@ -19,14 +19,14 @@ in comment  <input name="comment_pattern" value="{{comment_pattern}}" />
 <tr>
 <th><a href="?sort_by={% if sort_by == "doneness" %}-{% endif %}doneness">done</a></th>
 <th><a href="?sort_by={% if sort_by == "date" %}-{% endif %}date">date</a></th>
-<th><a href="?sort_by={% if sort_by == "process" %}-{% endif %}process">process</a></th>
+<th><a href="?sort_by={% if sort_by == "title" %}-{% endif %}title">title</a></th>
 <th><a href="?sort_by={% if sort_by == "comment" %}-{% endif %}comment">comment</a></th>
 </tr>
 {% for todo in todos %}
 <tr>
 <td>[{% if todo.is_done %}x{% else %} {% endif %}]</td>
 <td><a href="{{todo.date}}">{{todo.date}}</a></td>
-<td><a href="process?id={{todo.process.id_}}">{{todo.title_then}}</a></td>
+<td><a href="todo?id={{todo.id_}}">{{todo.title_then}}</a></td>
 <td><a href="{{todo.comment}}">{{todo.comment}}</a></td>
 </tr>
 {% endfor %}