@@ -1,33 +1,40 | |||
|
1 | 1 | <%= render :partial => 'action_menu' %> |
|
2 | 2 | |
|
3 | 3 | <h2><%=l(:label_workflow)%></h2> |
|
4 | 4 | |
|
5 | 5 | <% form_tag({}, :id => 'workflow_copy_form') do %> |
|
6 |
< |
|
|
6 | <fieldset class="tabular box"> | |
|
7 | <legend><%= l(:label_copy_source) %></legend> | |
|
7 | 8 | <p> |
|
8 |
<label><%= l(:label_ |
|
|
9 | <%= l(:label_tracker) %><br /> | |
|
9 | <label><%= l(:label_tracker) %></label> | |
|
10 | 10 | <%= select_tag('source_tracker_id', |
|
11 | 11 | "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" + |
|
12 | 12 | "<option value=\"any\">--- #{ l(:label_copy_same_as_target) } ---</option>" + |
|
13 |
options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %> |
|
|
14 | <%= l(:label_role) %><br /> | |
|
13 | options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %> | |
|
14 | </p> | |
|
15 | <p> | |
|
16 | <label><%= l(:label_role) %></label> | |
|
15 | 17 | <%= select_tag('source_role_id', |
|
16 | 18 | "<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" + |
|
17 | 19 | "<option value=\"any\">--- #{ l(:label_copy_same_as_target) } ---</option>" + |
|
18 | 20 | options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %> |
|
19 | 21 | </p> |
|
22 | </fieldset> | |
|
23 | ||
|
24 | <fieldset class="tabular box"> | |
|
25 | <legend><%= l(:label_copy_target) %></legend> | |
|
20 | 26 | <p> |
|
21 |
<label><%= l(:label_ |
|
|
22 | <%= l(:label_tracker) %><br /> | |
|
27 | <label><%= l(:label_tracker) %></label> | |
|
23 | 28 | <%= select_tag 'target_tracker_ids', |
|
24 | 29 | "<option value=\"\" disabled=\"disabled\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" + |
|
25 |
options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %> |
|
|
26 | <%= l(:label_role) %><br /> | |
|
30 | options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %> | |
|
31 | </p> | |
|
32 | <p> | |
|
33 | <label><%= l(:label_role) %></label> | |
|
27 | 34 | <%= select_tag 'target_role_ids', |
|
28 | 35 | "<option value=\"\" disabled=\"disabled\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" + |
|
29 | 36 | options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %> |
|
30 | 37 | </p> |
|
31 | </div> | |
|
38 | </fieldset> | |
|
32 | 39 | <%= submit_tag l(:button_copy) %> |
|
33 | 40 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now