home · contact · privacy
Minor template fixes.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 30 May 2024 08:06:59 +0000 (10:06 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 30 May 2024 08:06:59 +0000 (10:06 +0200)
plomtask/http.py
templates/process.html
templates/todo.html
templates/todos.html

index 537f21fff50f5dea2a75daf66edc368107ab0902..944f79a274f32d2dbb616a5f26eb91e5f6a2efd1 100644 (file)
@@ -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)
index 8944c955688da6cc1021559645a36f0e34603938..9df8b4542a281c86850410ba6576fb27d08c5259 100644 (file)
@@ -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>
index 41d894bb0ef6b5f47a58e04323c4902b404f7d1a..80eb5c7bd356e8b93be5a2a02119f11c1d16fb13 100644 (file)
@@ -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>
index 6cbf0bc5872917852bc95095a0383075ae3dc548..6b733e059335b4e0c751e9ad750b0fde54b00f73 100644 (file)
@@ -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 %}