home · contact · privacy
Add Todo. and Process.calendarize to identify what Todos to show in calendar.
[plomtask] / templates / condition.html
index 00aeedb6762f2d304b8784f116bce795ba350418..1fc5902025c7cc21a04a656880a973ed5b6ed312 100644 (file)
@@ -1,4 +1,5 @@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
 
 
 
@@ -9,7 +10,7 @@
 
 <tr>
 <th>title</th>
-<td><input name="title" value="{{condition.title.newest|e}}" /></td>
+<td><input name="title" value="{{condition.title.newest|e}}" />{% if condition.id_ %} [<a href="condition_titles?id={{condition.id_}}">history</a>]{% endif %}</td>
 <tr/>
 
 <tr>
 
 <tr>
 <th>description</th>
-<td><input name="description" value="{{condition.description.newest|e}}" /></td>
+<td><textarea name="description">{{condition.description.newest|e}}</textarea>{% if condition.id_ %} [<a href="condition_descriptions?id={{condition.id_}}">history</a>]{% endif %}</td>
 <tr/>
 
 </table>
-<input class="btn-harmless" type="submit" name="update" value="update" />
-<div class="btn-to-right">
-<input class="btn-dangerous" type="submit" name="delete" value="delete" />
-</div>
+{{ macros.edit_buttons() }}
 {% endblock %}