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 request handler delete or retrieving items on POST.
[plomtask]
/
templates
/
condition.html
diff --git
a/templates/condition.html
b/templates/condition.html
index 8deb71cbf4dac93d837fb3cd51c8fd3b6b4cce6d..7142363b3f2e24b45ed2d250d2e4144bf8406ef0 100644
(file)
--- a/
templates/condition.html
+++ b/
templates/condition.html
@@
-3,34
+3,29
@@
-{% block css %}
-input[name="title"] {
- width: 100em;
-}
-{% endblock %}
-
-
-
{% block content %}
{% block content %}
-<h3>{% if is_new %}NEW {% endif %}condition</h3>
+<h3>
+{% if is_new %}
+add NEW condition
+{% else %}
+edit condition of ID {{condition.id_}}
+{% endif %}
+</h3>
<form action="condition?id={{condition.id_ or ''}}" method="POST">
<form action="condition?id={{condition.id_ or ''}}" method="POST">
-<table>
+<table class="edit_table">
<tr>
<th>title</th>
<tr>
<th>title</th>
-<td><input name="title" value="{{condition.title.newest|e}}" />{% if condition.id_ %} [<a href="condition_titles?id={{condition.id_}}">history</a>]{% endif %}</td>
+<td><input name="title"
type="text"
value="{{condition.title.newest|e}}" />{% if condition.id_ %} [<a href="condition_titles?id={{condition.id_}}">history</a>]{% endif %}</td>
<tr/>
<tr/>
-
<tr>
<th>is active</th>
<td><input name="is_active" type="checkbox" {% if condition.is_active %}checked{% endif %} /></td>
<tr/>
<tr>
<th>is active</th>
<td><input name="is_active" type="checkbox" {% if condition.is_active %}checked{% endif %} /></td>
<tr/>
-
<tr>
<th>description</th>
<td><textarea name="description">{{condition.description.newest|e}}</textarea>{% if condition.id_ %} [<a href="condition_descriptions?id={{condition.id_}}">history</a>]{% endif %}</td>
<tr/>
<tr>
<th>description</th>
<td><textarea name="description">{{condition.description.newest|e}}</textarea>{% if condition.id_ %} [<a href="condition_descriptions?id={{condition.id_}}">history</a>]{% endif %}</td>
<tr/>
-
<tr>
<th>enables</th>
<td>
<tr>
<th>enables</th>
<td>
@@
-39,7
+34,6
@@
input[name="title"] {
{% endfor %}
</td>
</tr>
{% endfor %}
</td>
</tr>
-
<tr>
<th>disables</th>
<td>
<tr>
<th>disables</th>
<td>
@@
-48,7
+42,6
@@
input[name="title"] {
{% endfor %}
</td>
</tr>
{% endfor %}
</td>
</tr>
-
<tr>
<th>enabled by</th>
<td>
<tr>
<th>enabled by</th>
<td>
@@
-57,7
+50,6
@@
input[name="title"] {
{% endfor %}
</td>
</tr>
{% endfor %}
</td>
</tr>
-
<tr>
<th>disabled by</th>
<td>
<tr>
<th>disabled by</th>
<td>
@@
-66,8
+58,8
@@
input[name="title"] {
{% endfor %}
</td>
</tr>
{% endfor %}
</td>
</tr>
-
</table>
</table>
+
{{ macros.edit_buttons() }}
{% endblock %}
{{ macros.edit_buttons() }}
{% endblock %}