home
·
contact
·
privacy
projects
/
plomtask
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor templates.
[plomtask]
/
templates
/
condition.html
diff --git
a/templates/condition.html
b/templates/condition.html
index a0a9f45c54c3372bad772c1a67f33ba699e1630d..8e73e5ee5ec712f566271dc2ab8eb8347042048a 100644
(file)
--- a/
templates/condition.html
+++ b/
templates/condition.html
@@
-1,15
+1,29
@@
-{% extends 'base.html' %}
+{% extends '_base.html' %}
+{% import '_macros.html' as macros %}
+
+
{% block content %}
<h3>condition</h3>
<form action="condition?id={{condition.id_ or ''}}" method="POST">
{% block content %}
<h3>condition</h3>
<form action="condition?id={{condition.id_ or ''}}" method="POST">
-title: <input name="title" value="{{condition.title.newest|e}}" />
-description: <input name="description" value="{{condition.description.newest|e}}" />
+<table>
+
+<tr>
+<th>title</th>
+<td><input name="title" value="{{condition.title.newest|e}}" /></td>
+<tr/>
+
+<tr>
+<th>is active</th>
+<td><input name="is_active" type="checkbox" {% if condition.is_active %}checked{% endif %} /></td>
+<tr/>
-<
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
>
+<
tr
>
+<
th>description</th
>
+<
td><input name="description" value="{{condition.description.newest|e}}" /></td
>
+<
tr/
>
+</table>
+{{ macros.edit_buttons() }}
{% endblock %}
{% endblock %}