To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / workflows / copy.html.erb @ 1531:ae8145b28b2b
History | View | Annotate | Download (1.86 KB)
| 1 |
<%= title [l(:label_workflow), workflows_edit_path], l(:button_copy) %>
|
|---|---|
| 2 |
|
| 3 |
<%= form_tag({}, :id => 'workflow_copy_form') do %>
|
| 4 |
<fieldset class="tabular box"> |
| 5 |
<legend><%= l(:label_copy_source) %></legend> |
| 6 |
<p>
|
| 7 |
<label><%= l(:label_tracker) %></label> |
| 8 |
<%= select_tag('source_tracker_id',
|
| 9 |
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') +
|
| 10 |
content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') +
|
| 11 |
options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %>
|
| 12 |
</p>
|
| 13 |
<p>
|
| 14 |
<label><%= l(:label_role) %></label> |
| 15 |
<%= select_tag('source_role_id',
|
| 16 |
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') +
|
| 17 |
content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') +
|
| 18 |
options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %>
|
| 19 |
</p>
|
| 20 |
</fieldset>
|
| 21 |
|
| 22 |
<fieldset class="tabular box"> |
| 23 |
<legend><%= l(:label_copy_target) %></legend> |
| 24 |
<p>
|
| 25 |
<label><%= l(:label_tracker) %></label> |
| 26 |
<%= select_tag 'target_tracker_ids',
|
| 27 |
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) +
|
| 28 |
options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %>
|
| 29 |
</p>
|
| 30 |
<p>
|
| 31 |
<label><%= l(:label_role) %></label> |
| 32 |
<%= select_tag 'target_role_ids',
|
| 33 |
content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) +
|
| 34 |
options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %>
|
| 35 |
</p>
|
| 36 |
</fieldset>
|
| 37 |
<%= submit_tag l(:button_copy) %>
|
| 38 |
<% end %>
|