home · contact · privacy
Fix Processes listing sorting bug.
[plomtask] / templates / condition.html
1 {% extends '_base.html' %}
2 {% import '_macros.html' as macros %}
3
4
5
6 {% block css %}
7 input[name="title"] {
8   width: 100em;
9 }
10 {% endblock %}
11
12
13
14 {% block content %}
15 <h3>{% if is_new %}NEW {% endif %}condition</h3>
16 <form action="condition?id={{condition.id_ or ''}}" method="POST">
17 <table>
18
19 <tr>
20 <th>title</th>
21 <td><input name="title" value="{{condition.title.newest|e}}" />{% if condition.id_ %} [<a href="condition_titles?id={{condition.id_}}">history</a>]{% endif %}</td>
22 <tr/>
23
24 <tr>
25 <th>is active</th>
26 <td><input name="is_active" type="checkbox" {% if condition.is_active %}checked{% endif %} /></td>
27 <tr/>
28
29 <tr>
30 <th>description</th>
31 <td><textarea name="description">{{condition.description.newest|e}}</textarea>{% if condition.id_ %} [<a href="condition_descriptions?id={{condition.id_}}">history</a>]{% endif %}</td>
32 <tr/>
33
34 <tr>
35 <th>enables</th>
36 <td>
37 {% for process in enabled_processes %}
38 <a href="process?id={{process.id_}}">{{process.title.newest|e}}</a><br />
39 {% endfor %}
40 </td>
41 </tr>
42
43 <tr>
44 <th>disables</th>
45 <td>
46 {% for process in disabled_processes %}
47 <a href="process?id={{process.id_}}">{{process.title.newest|e}}</a><br />
48 {% endfor %}
49 </td>
50 </tr>
51
52 <tr>
53 <th>enabled by</th>
54 <td>
55 {% for process in enabling_processes %}
56 <a href="process?id={{process.id_}}">{{process.title.newest|e}}</a><br />
57 {% endfor %}
58 </td>
59 </tr>
60
61 <tr>
62 <th>disabled by</th>
63 <td>
64 {% for process in disabling_processes %}
65 <a href="process?id={{process.id_}}">{{process.title.newest|e}}</a><br />
66 {% endfor %}
67 </td>
68 </tr>
69
70 </table>
71 {{ macros.edit_buttons() }}
72 {% endblock %}
73