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