home · contact · privacy
Add foreign key restraints, expand and fix tests, add deletion and forking.
[misc] / new_todo / html / template.html
index 35f69de35496fb139504d0230b0252974d803b89..e60d0c581487426336c5a0a0a57a47366d789f2f 100644 (file)
@@ -2,6 +2,9 @@
 
 {% block content %}
 <h3>edit template</h3>
+{% if tmpl.forked_from %}
+forked from: <a href="/template?id={{tmpl.id_}}">{{tmpl.forked_from.title.newest|e}}</a> at {{tmpl.forked_at}}<br />
+{% endif %}
 <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() %}
@@ -15,7 +18,9 @@ current description: <textarea name="description">{{tmpl.description.newest|e}}<
 {% for datetime, description in tmpl.description.history.items() %}
 {{datetime}}: {{description}}<br />
 {% endfor %}
-<input type="submit" value="OK" />
+<input type="submit" name="update" value="update" />
+<input type="submit" name="fork" value="fork" />
+<input type="submit" name="delete" value="delete" />
 </form>
 {% endblock %}