annotate app/views/workflows/copy.html.erb @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <%= title [l(:label_workflow), workflows_edit_path], l(:button_copy) %>
Chris@0 2
Chris@1115 3 <%= form_tag({}, :id => 'workflow_copy_form') do %>
Chris@909 4 <fieldset class="tabular box">
Chris@909 5 <legend><%= l(:label_copy_source) %></legend>
Chris@0 6 <p>
Chris@909 7 <label><%= l(:label_tracker) %></label>
Chris@909 8 <%= select_tag('source_tracker_id',
Chris@1115 9 content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') +
Chris@1115 10 content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') +
Chris@909 11 options_from_collection_for_select(@trackers, 'id', 'name', @source_tracker && @source_tracker.id)) %>
Chris@0 12 </p>
Chris@0 13 <p>
Chris@909 14 <label><%= l(:label_role) %></label>
Chris@909 15 <%= select_tag('source_role_id',
Chris@1115 16 content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '') +
Chris@1115 17 content_tag('option', "--- #{ l(:label_copy_same_as_target) } ---", :value => 'any') +
Chris@909 18 options_from_collection_for_select(@roles, 'id', 'name', @source_role && @source_role.id)) %>
Chris@0 19 </p>
Chris@909 20 </fieldset>
Chris@909 21
Chris@909 22 <fieldset class="tabular box">
Chris@909 23 <legend><%= l(:label_copy_target) %></legend>
Chris@909 24 <p>
Chris@909 25 <label><%= l(:label_tracker) %></label>
Chris@909 26 <%= select_tag 'target_tracker_ids',
Chris@1115 27 content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) +
Chris@909 28 options_from_collection_for_select(@trackers, 'id', 'name', @target_trackers && @target_trackers.map(&:id)), :multiple => true %>
Chris@909 29 </p>
Chris@909 30 <p>
Chris@909 31 <label><%= l(:label_role) %></label>
Chris@909 32 <%= select_tag 'target_role_ids',
Chris@1115 33 content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---", :value => '', :disabled => true) +
Chris@909 34 options_from_collection_for_select(@roles, 'id', 'name', @target_roles && @target_roles.map(&:id)), :multiple => true %>
Chris@909 35 </p>
Chris@909 36 </fieldset>
Chris@0 37 <%= submit_tag l(:button_copy) %>
Chris@0 38 <% end %>