annotate .svn/pristine/65/65316780ec0226bc0728e37d3ae973c0fe6017a2.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

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