copy.html.erb
38 lines
| 1.9 KiB
| text/plain
|
TextLexer
|
r11820 | <%= title [l(:label_workflow), workflows_edit_path], l(:button_copy) %> | ||
|
r3040 | |||
|
r9346 | <%= form_tag({}, :id => 'workflow_copy_form') do %> | ||
|
r6030 | <fieldset class="tabular box"> | ||
<legend><%= l(:label_copy_source) %></legend> | ||||
|
r3040 | <p> | ||
|
r6555 | <label><%= l(:label_tracker) %></label> | ||
|
r6559 | <%= select_tag('source_tracker_id', | ||
|
r9500 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + | ||
content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') + | ||||
|
r6555 | options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %> | ||
|
r6030 | </p> | ||
<p> | ||||
|
r6555 | <label><%= l(:label_role) %></label> | ||
<%= select_tag('source_role_id', | ||||
|
r9500 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') + | ||
content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') + | ||||
|
r6555 | options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %> | ||
|
r3040 | </p> | ||
|
r6030 | </fieldset> | ||
<fieldset class="tabular box"> | ||||
<legend><%= l(:label_copy_target) %></legend> | ||||
|
r3040 | <p> | ||
|
r6555 | <label><%= l(:label_tracker) %></label> | ||
<%= select_tag 'target_tracker_ids', | ||||
|
r9500 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) + | ||
|
r6555 | options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %> | ||
|
r6030 | </p> | ||
<p> | ||||
|
r6555 | <label><%= l(:label_role) %></label> | ||
<%= select_tag 'target_role_ids', | ||||
|
r9500 | content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) + | ||
|
r6555 | options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %> | ||
|
r3040 | </p> | ||
|
r6030 | </fieldset> | ||
|
r3040 | <%= submit_tag l(:button_copy) %> | ||
<% end %> | ||||