@@ -7,22 +7,19 | |||
|
7 | 7 | <p><%=l(:text_workflow_edit)%>:</p> |
|
8 | 8 | |
|
9 | 9 | <% form_tag({}, :method => 'get') do %> |
|
10 | <p><label for="role_id"><%=l(:label_role)%>:</label> | |
|
11 | <select name="role_id"> | |
|
12 |
|
|
|
13 | </select> | |
|
10 | <p> | |
|
11 | <label><%=l(:label_role)%>:</label> | |
|
12 | <%= select_tag 'role_id', options_from_collection_for_select(@roles, "id", "name", @role && @role.id) %> | |
|
13 | ||
|
14 | <label><%=l(:label_tracker)%>:</label> | |
|
15 | <%= select_tag 'tracker_id', options_from_collection_for_select(@trackers, "id", "name", @tracker && @tracker.id) %> | |
|
14 | 16 | |
|
15 | <label for="tracker_id"><%=l(:label_tracker)%>:</label> | |
|
16 | <select name="tracker_id"> | |
|
17 | <%= options_from_collection_for_select @trackers, "id", "name", (@tracker.id unless @tracker.nil?) %> | |
|
18 | </select> | |
|
19 | 17 | <%= submit_tag l(:button_edit), :name => nil %> |
|
20 | 18 | </p> |
|
21 | 19 | <% end %> |
|
22 | 20 | |
|
23 | 21 | |
|
24 | ||
|
25 | <% unless @tracker.nil? or @role.nil? or @statuses.empty? %> | |
|
22 | <% if @tracker && @role && @statuses.any? %> | |
|
26 | 23 | <% form_tag({}, :id => 'workflow_form' ) do %> |
|
27 | 24 | <%= hidden_field_tag 'tracker_id', @tracker.id %> |
|
28 | 25 | <%= hidden_field_tag 'role_id', @role.id %> |
@@ -46,10 +43,7 | |||
|
46 | 43 | <% new_status_ids_allowed = old_status.find_new_statuses_allowed_to([@role], @tracker).collect(&:id) -%> |
|
47 | 44 | <% for new_status in @statuses -%> |
|
48 | 45 |
|
|
49 | <input type="checkbox" | |
|
50 | name="issue_status[<%= old_status.id %>][]" | |
|
51 | value="<%= new_status.id %>" | |
|
52 | <%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %> /> | |
|
46 | <%= check_box_tag "issue_status[#{ old_status.id }][]", new_status.id, new_status_ids_allowed.include?(new_status.id) %> | |
|
53 | 47 |
|
|
54 | 48 | <% end -%> |
|
55 | 49 |
|
@@ -60,7 +54,6 | |||
|
60 | 54 | |
|
61 | 55 | <%= submit_tag l(:button_save) %> |
|
62 | 56 | <% end %> |
|
63 | ||
|
64 | 57 | <% end %> |
|
65 | 58 | |
|
66 | 59 | <% html_title(l(:label_workflow)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now