{% 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() %}
{% 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 %}