home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display historical VersionedAttributes where it makes sense.
[plomtask]
/
templates
/
condition.html
diff --git
a/templates/condition.html
b/templates/condition.html
index 00aeedb6762f2d304b8784f116bce795ba350418..1fc5902025c7cc21a04a656880a973ed5b6ed312 100644
(file)
--- a/
templates/condition.html
+++ b/
templates/condition.html
@@
-1,4
+1,5
@@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
@@
-9,7
+10,7
@@
<tr>
<th>title</th>
<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/>
<tr>
@@
-19,13
+20,10
@@
<tr>
<th>description</th>
<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>
<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 %}
{% endblock %}