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.rhtml @ 442:753f1380d6bc
History | View | Annotate | Download (1.62 KB)
| 1 |
<%= render :partial => 'action_menu' %>
|
|---|---|
| 2 |
|
| 3 |
<h2><%=l(:label_workflow)%></h2> |
| 4 |
|
| 5 |
<% form_tag({}, :id => 'workflow_copy_form') do %>
|
| 6 |
<div class="tabular box"> |
| 7 |
<p>
|
| 8 |
<label><%= l(:label_copy_source) %></label> |
| 9 |
<%= l(:label_tracker) %><br /> |
| 10 |
<%= select_tag('source_tracker_id',
|
| 11 |
"<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" +
|
| 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)) %><br /> |
| 14 |
<%= l(:label_role) %><br /> |
| 15 |
<%= select_tag('source_role_id',
|
| 16 |
"<option value=\"\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" +
|
| 17 |
"<option value=\"any\">--- #{ l(:label_copy_same_as_target) } ---</option>" +
|
| 18 |
options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %>
|
| 19 |
</p>
|
| 20 |
<p>
|
| 21 |
<label><%= l(:label_copy_target) %></label> |
| 22 |
<%= l(:label_tracker) %><br /> |
| 23 |
<%= select_tag 'target_tracker_ids',
|
| 24 |
"<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 %><br /> |
| 26 |
<%= l(:label_role) %><br /> |
| 27 |
<%= select_tag 'target_role_ids',
|
| 28 |
"<option value=\"\" disabled=\"disabled\">--- #{l(:actionview_instancetag_blank_option)} ---</option>" +
|
| 29 |
options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %>
|
| 30 |
</p>
|
| 31 |
</div>
|
| 32 |
<%= submit_tag l(:button_copy) %>
|
| 33 |
<% end %>
|