1 | <%inherit file="/base.mako"/> |
---|
2 | |
---|
3 | <%def name="title()">Configure workflow menu</%def> |
---|
4 | |
---|
5 | %if message: |
---|
6 | <% |
---|
7 | try: |
---|
8 | messagetype |
---|
9 | except: |
---|
10 | messagetype = "done" |
---|
11 | %> |
---|
12 | <p /> |
---|
13 | <div class="${messagetype}message"> |
---|
14 | ${message} |
---|
15 | </div> |
---|
16 | %endif |
---|
17 | |
---|
18 | <form action="${h.url_for()}" method="POST"> |
---|
19 | |
---|
20 | <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%"> |
---|
21 | <tr class="header"> |
---|
22 | <th>Name</th> |
---|
23 | <th>Owner</th> |
---|
24 | <th># of Steps</th> |
---|
25 | ## <th>Last Updated</th> |
---|
26 | <th>Show in menu</th> |
---|
27 | </tr> |
---|
28 | |
---|
29 | %if workflows: |
---|
30 | |
---|
31 | %for i, workflow in enumerate( workflows ): |
---|
32 | <tr> |
---|
33 | <td> |
---|
34 | ${workflow.name} |
---|
35 | </td> |
---|
36 | <td>You</td> |
---|
37 | <td>${len(workflow.latest_workflow.steps)}</td> |
---|
38 | <td> |
---|
39 | <input type="checkbox" name="workflow_ids" value="${workflow.id}" |
---|
40 | %if workflow.id in ids_in_menu: |
---|
41 | checked |
---|
42 | %endif |
---|
43 | /> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | %endfor |
---|
47 | |
---|
48 | %endif |
---|
49 | |
---|
50 | %if shared_by_others: |
---|
51 | |
---|
52 | %for i, association in enumerate( shared_by_others ): |
---|
53 | <% workflow = association.stored_workflow %> |
---|
54 | <tr> |
---|
55 | <td> |
---|
56 | ${workflow.name} |
---|
57 | </td> |
---|
58 | <td>${workflow.user.email}</td> |
---|
59 | <td>${len(workflow.latest_workflow.steps)}</td> |
---|
60 | <td> |
---|
61 | <input type="checkbox" name="workflow_ids" value="${workflow.id}" |
---|
62 | %if workflow.id in ids_in_menu: |
---|
63 | checked |
---|
64 | %endif |
---|
65 | /> |
---|
66 | </td> |
---|
67 | </tr> |
---|
68 | %endfor |
---|
69 | |
---|
70 | %endif |
---|
71 | |
---|
72 | </table> |
---|
73 | |
---|
74 | <p /> |
---|
75 | <input type="Submit" /> |
---|
76 | |
---|
77 | </form> |
---|