2009-12-12 13:06:07 +03:00
|
|
|
<%= render :partial => 'action_menu' %>
|
|
|
|
|
|
|
|
<h2><%=l(:label_workflow)%></h2>
|
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({}, :id => 'workflow_copy_form') do %>
|
2011-07-02 15:45:22 +04:00
|
|
|
<fieldset class="tabular box">
|
|
|
|
<legend><%= l(:label_copy_source) %></legend>
|
2009-12-12 13:06:07 +03:00
|
|
|
<p>
|
2011-08-28 03:16:44 +04:00
|
|
|
<label><%= l(:label_tracker) %></label>
|
2011-08-28 03:41:25 +04:00
|
|
|
<%= select_tag('source_tracker_id',
|
2012-05-13 13:00:26 +04:00
|
|
|
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') +
|
|
|
|
content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') +
|
2011-08-28 03:16:44 +04:00
|
|
|
options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %>
|
2011-07-02 15:45:22 +04:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-08-28 03:16:44 +04:00
|
|
|
<label><%= l(:label_role) %></label>
|
|
|
|
<%= select_tag('source_role_id',
|
2012-05-13 13:00:26 +04:00
|
|
|
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') +
|
|
|
|
content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') +
|
2011-08-28 03:16:44 +04:00
|
|
|
options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %>
|
2009-12-12 13:06:07 +03:00
|
|
|
</p>
|
2011-07-02 15:45:22 +04:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="tabular box">
|
|
|
|
<legend><%= l(:label_copy_target) %></legend>
|
2009-12-12 13:06:07 +03:00
|
|
|
<p>
|
2011-08-28 03:16:44 +04:00
|
|
|
<label><%= l(:label_tracker) %></label>
|
|
|
|
<%= select_tag 'target_tracker_ids',
|
2012-05-13 13:00:26 +04:00
|
|
|
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) +
|
2011-08-28 03:16:44 +04:00
|
|
|
options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %>
|
2011-07-02 15:45:22 +04:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-08-28 03:16:44 +04:00
|
|
|
<label><%= l(:label_role) %></label>
|
|
|
|
<%= select_tag 'target_role_ids',
|
2012-05-13 13:00:26 +04:00
|
|
|
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) +
|
2011-08-28 03:16:44 +04:00
|
|
|
options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %>
|
2009-12-12 13:06:07 +03:00
|
|
|
</p>
|
2011-07-02 15:45:22 +04:00
|
|
|
</fieldset>
|
2009-12-12 13:06:07 +03:00
|
|
|
<%= submit_tag l(:button_copy) %>
|
|
|
|
<% end %>
|