##// END OF EJS Templates
Slight changes to the workflow setup screen....
Jean-Philippe Lang -
r1914:3544d6398ab8
parent child
Show More
@@ -8,12 +8,12
8 8
9 9 <% form_tag({}, :method => 'get') do %>
10 10 <p><label for="role_id"><%=l(:label_role)%>:</label>
11 <select id="role_id" name="role_id">
11 <select name="role_id">
12 12 <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %>
13 13 </select>
14 14
15 15 <label for="tracker_id"><%=l(:label_tracker)%>:</label>
16 <select id="tracker_id" name="tracker_id">
16 <select name="tracker_id">
17 17 <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %>
18 18 </select>
19 19 <%= submit_tag l(:button_edit), :name => nil %>
@@ -22,25 +22,26
22 22
23 23
24 24
25 <% unless @tracker.nil? or @role.nil? %>
25 <% unless @tracker.nil? or @role.nil? or @statuses.empty? %>
26 26 <% form_tag({}, :id => 'workflow_form' ) do %>
27 27 <%= hidden_field_tag 'tracker_id', @tracker.id %>
28 28 <%= hidden_field_tag 'role_id', @role.id %>
29 <div class="box">
30 <table>
29 <table class="list">
30 <thead>
31 31 <tr>
32 <td align="center"><strong><%=l(:label_current_status)%></strong></td>
33 <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
32 <th align="left"><%=l(:label_current_status)%></th>
33 <th align="center" colspan="<%= @statuses.length %>"><%=l(:label_new_statuses_allowed)%></th>
34 34 </tr>
35 35 <tr>
36 36 <td></td>
37 37 <% for new_status in @statuses %>
38 <td width="80" align="center"><%= new_status.name %></td>
38 <td width="<%= 75 / @statuses.size %>%" align="center"><%= new_status.name %></td>
39 39 <% end %>
40 40 </tr>
41
41 </thead>
42 <tbody>
42 43 <% for old_status in @statuses %>
43 <tr>
44 <tr class="<%= cycle("odd", "even") %>">
44 45 <td><%= old_status.name %></td>
45 46 <% new_status_ids_allowed = old_status.find_new_statuses_allowed_to(@role, @tracker).collect(&:id) -%>
46 47 <% for new_status in @statuses -%>
@@ -48,14 +49,15
48 49 <input type="checkbox"
49 50 name="issue_status[<%= old_status.id %>][]"
50 51 value="<%= new_status.id %>"
51 <%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %>>
52 <%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %> />
52 53 </td>
53 54 <% end -%>
54 55 </tr>
55 56 <% end %>
56 </table>
57 <p><%= check_all_links 'workflow_form' %></p>
58 </div>
57 </tbody>
58 </table>
59 <p><%= check_all_links 'workflow_form' %></p>
60
59 61 <%= submit_tag l(:button_save) %>
60 62 <% end %>
61 63
General Comments 0
You need to be logged in to leave comments. Login now