home · contact · privacy
Minor fixes.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 22 Apr 2024 02:38:49 +0000 (04:38 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 22 Apr 2024 02:38:49 +0000 (04:38 +0200)
plomtask/http.py
templates/day.html
templates/process.html

index d8ca8dfdffd93de4ffd7cc3858826cfd35cf60f4..1009c1b6f7622bcfa92d1703c801db7ba8cd95f8 100644 (file)
@@ -195,8 +195,7 @@ class TaskHandler(BaseHTTPRequestHandler):
         day = Day.by_id(self.conn, date, create=True)
         day.comment = self.form_data.get_str('comment')
         day.save(self.conn)
-        process_id = self.form_data.get_int_or_none('new_todo')
-        if process_id is not None:
+        for process_id in self.form_data.get_all_int('new_todo'):
             process = Process.by_id(self.conn, process_id)
             todo = Todo(None, process, False, day.date)
             todo.save(self.conn)
index 8887f9a6609c05c119773d2d7ba68b131622856d..b38d566d67185990316878e2c4d7b0eb0795336b 100644 (file)
@@ -1,15 +1,5 @@
 {% extends 'base.html' %}
 
-{% macro todo_with_children(todo, indent) %}
-<li>{% for i in range(indent) %}+{% endfor %} [{% if todo.is_done %}x{% else %} {% endif %}] <a href="todo?id={{todo.id_}}">{{todo.process.title.newest|e}}</a>
-{% for child in todo.children %}
-{{ todo_with_children(child, indent+1) }}
-{% endfor %}
-{% for condition in todo.conditions %}
-<li>{% for i in range(indent) %}&nbsp;{% endfor %}&nbsp; &lt;[{% if condition.is_active %}x{% else %} {% endif %}] <a href="condition?id={{condition.id_}}">{{condition.title.newest|e}}</a>
-{% endfor %}
-{% endmacro %}
-
 {% macro node_with_children(node, indent) %}
 <li>{% for i in range(indent) %}+{% endfor %}
 {% if node.is_todo %}
index f8f7baf1eefff07564c49d124c4d7b771acb587d..85424fa6750523487098d280b2568e48ad2f4c29 100644 (file)
@@ -70,7 +70,7 @@ add condition: <input name="condition" list="condition_candidates" autocomplete=
 {% endfor %}
 </table>
 add enables: <input name="enables" list="condition_candidates" autocomplete="off" />
-<h4>conditions</h4>
+<h4>disables</h4>
 <table>
 {% for condition in process.disables %}
 <tr>