home · contact · privacy
Improve accounting scripts, start todo.py rewrite.
[misc] / new_todo / html / template.html
diff --git a/new_todo/html/template.html b/new_todo/html/template.html
new file mode 100644 (file)
index 0000000..35f69de
--- /dev/null
@@ -0,0 +1,22 @@
+{% extends 'base.html' %}
+
+{% block content %}
+<h3>edit template</h3>
+<form action="/template{% if tmpl.id_ %}?id={{tmpl.id_}}{% endif %}" method="POST">
+current title: <input name="title" value="{{tmpl.title.newest|e}}" /><br />
+{% for datetime, title in tmpl.title.history.items() %}
+{{datetime}}: {{title|e}}<br />
+{% endfor %}
+current default effort: <input name="default_effort" type="number" step="0.1" value="{{tmpl.default_effort.newest}}" /><br />
+{% for datetime, default_effort in tmpl.default_effort.history.items() %}
+{{datetime}}: {{default_effort}}<br />
+{% endfor %}
+current description: <textarea name="description">{{tmpl.description.newest|e}}</textarea><br />
+{% for datetime, description in tmpl.description.history.items() %}
+{{datetime}}: {{description}}<br />
+{% endfor %}
+<input type="submit" value="OK" />
+</form>
+{% endblock %}
+
+