@@ -1,68 +1,68 | |||||
1 | <h2><%=l(:label_workflow)%></h2> |
|
1 | <h2><%=l(:label_workflow)%></h2> | |
2 |
|
2 | |||
3 | <p><%=l(:text_workflow_edit)%>:</p> |
|
3 | <p><%=l(:text_workflow_edit)%>:</p> | |
4 |
|
4 | |||
5 |
<% form_tag |
|
5 | <% form_tag({:action => 'workflow'}, :method => 'get') do %> | |
6 | <div style="float:left;margin-right:10px;"> |
|
6 | <div style="float:left;margin-right:10px;"> | |
7 | <p><label for="role_id"><%=l(:label_role)%></label><br/> |
|
7 | <p><label for="role_id"><%=l(:label_role)%></label><br/> | |
8 | <select id="role_id" name="role_id"> |
|
8 | <select id="role_id" name="role_id"> | |
9 | <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %> |
|
9 | <%= options_from_collection_for_select @roles, "id", "name", (@role.id unless @role.nil?) %> | |
10 | </select></p> |
|
10 | </select></p> | |
11 | </div> |
|
11 | </div> | |
12 |
|
12 | |||
13 | <div> |
|
13 | <div> | |
14 | <p><label for="tracker_id"><%=l(:label_tracker)%></label><br/> |
|
14 | <p><label for="tracker_id"><%=l(:label_tracker)%></label><br/> | |
15 | <select id="tracker_id" name="tracker_id"> |
|
15 | <select id="tracker_id" name="tracker_id"> | |
16 | <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %> |
|
16 | <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %> | |
17 | </select> |
|
17 | </select> | |
18 |
|
18 | |||
19 | <%= submit_tag l(:button_edit) %> |
|
19 | <%= submit_tag l(:button_edit) %> | |
20 | </p> |
|
20 | </p> | |
21 | </div> |
|
21 | </div> | |
22 | <% end %> |
|
22 | <% end %> | |
23 |
|
23 | |||
24 |
|
24 | |||
25 |
|
25 | |||
26 | <% unless @tracker.nil? or @role.nil? %> |
|
26 | <% unless @tracker.nil? or @role.nil? %> | |
27 | <div class="box"> |
|
27 | <div class="box"> | |
28 | <% form_tag({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) do %> |
|
28 | <% form_tag({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) do %> | |
29 | <table> |
|
29 | <table> | |
30 | <tr> |
|
30 | <tr> | |
31 | <td align="center"><strong><%=l(:label_current_status)%></strong></td> |
|
31 | <td align="center"><strong><%=l(:label_current_status)%></strong></td> | |
32 | <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td> |
|
32 | <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td> | |
33 | </tr> |
|
33 | </tr> | |
34 | <tr> |
|
34 | <tr> | |
35 | <td></td> |
|
35 | <td></td> | |
36 | <% for new_status in @statuses %> |
|
36 | <% for new_status in @statuses %> | |
37 | <td width="80" align="center"><%= new_status.name %></td> |
|
37 | <td width="80" align="center"><%= new_status.name %></td> | |
38 | <% end %> |
|
38 | <% end %> | |
39 | </tr> |
|
39 | </tr> | |
40 |
|
40 | |||
41 | <% for old_status in @statuses %> |
|
41 | <% for old_status in @statuses %> | |
42 | <tr> |
|
42 | <tr> | |
43 | <td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td> |
|
43 | <td><div class="square" style="background:#<%= old_status.html_color %>;"></div> <%= old_status.name %></td> | |
44 | <% for new_status in @statuses %> |
|
44 | <% for new_status in @statuses %> | |
45 | <td align="center"> |
|
45 | <td align="center"> | |
46 |
|
46 | |||
47 | <input type="checkbox" |
|
47 | <input type="checkbox" | |
48 | name="issue_status[<%= old_status.id %>][]" |
|
48 | name="issue_status[<%= old_status.id %>][]" | |
49 | value="<%= new_status.id %>" |
|
49 | value="<%= new_status.id %>" | |
50 | <%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%> |
|
50 | <%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%> | |
51 | > |
|
51 | > | |
52 | </td> |
|
52 | </td> | |
53 | <% end %> |
|
53 | <% end %> | |
54 |
|
54 | |||
55 | </tr> |
|
55 | </tr> | |
56 | <% end %> |
|
56 | <% end %> | |
57 | </table> |
|
57 | </table> | |
58 | <br /> |
|
58 | <br /> | |
59 | <p> |
|
59 | <p> | |
60 | <a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> | |
|
60 | <a href="javascript:checkAll('workflow_form', true)"><%=l(:button_check_all)%></a> | | |
61 | <a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a> |
|
61 | <a href="javascript:checkAll('workflow_form', false)"><%=l(:button_uncheck_all)%></a> | |
62 | </p> |
|
62 | </p> | |
63 | <br /> |
|
63 | <br /> | |
64 | <%= submit_tag l(:button_save) %> |
|
64 | <%= submit_tag l(:button_save) %> | |
65 | <% end %> |
|
65 | <% end %> | |
66 |
|
66 | |||
67 | <% end %> |
|
67 | <% end %> | |
68 | </div> No newline at end of file |
|
68 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now