home · contact · privacy
Add foreign key restraints, expand and fix tests, add deletion and forking.
[misc] / new_todo / html / template.html
1 {% extends 'base.html' %}
2
3 {% block content %}
4 <h3>edit template</h3>
5 {% if tmpl.forked_from %}
6 forked from: <a href="/template?id={{tmpl.id_}}">{{tmpl.forked_from.title.newest|e}}</a> at {{tmpl.forked_at}}<br />
7 {% endif %}
8 <form action="/template{% if tmpl.id_ %}?id={{tmpl.id_}}{% endif %}" method="POST">
9 current title: <input name="title" value="{{tmpl.title.newest|e}}" /><br />
10 {% for datetime, title in tmpl.title.history.items() %}
11 {{datetime}}: {{title|e}}<br />
12 {% endfor %}
13 current default effort: <input name="default_effort" type="number" step="0.1" value="{{tmpl.default_effort.newest}}" /><br />
14 {% for datetime, default_effort in tmpl.default_effort.history.items() %}
15 {{datetime}}: {{default_effort}}<br />
16 {% endfor %}
17 current description: <textarea name="description">{{tmpl.description.newest|e}}</textarea><br />
18 {% for datetime, description in tmpl.description.history.items() %}
19 {{datetime}}: {{description}}<br />
20 {% endfor %}
21 <input type="submit" name="update" value="update" />
22 <input type="submit" name="fork" value="fork" />
23 <input type="submit" name="delete" value="delete" />
24 </form>
25 {% endblock %}
26
27