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