move.rhtml
22 lines
| 1.1 KiB
| text/html+ruby
|
RhtmlLexer
|
r1116 | <h2><%= l(:button_move) %></h2> | ||
|
r30 | |||
|
r1116 | <ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul> | ||
|
r30 | |||
|
r1116 | <% form_tag({}, :id => 'move_form') do %> | ||
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> | ||||
|
r30 | |||
|
r1116 | <div class="box tabular"> | ||
|
r676 | <p><label for="new_project_id"><%=l(:field_project)%> :</label> | ||
|
r907 | <%= select_tag "new_project_id", | ||
|
r1116 | options_from_collection_for_select(@allowed_projects, 'id', 'name', @target_project.id), | ||
|
r1120 | :onchange => remote_function(:url => { :action => 'move' }, | ||
|
r907 | :method => :get, | ||
:update => 'content', | ||||
:with => "Form.serialize('move_form')") %></p> | ||||
|
r30 | |||
|
r676 | <p><label for="new_tracker_id"><%=l(:field_tracker)%> :</label> | ||
|
r890 | <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p> | ||
|
r30 | </div> | ||
|
r1116 | |||
|
r30 | <%= submit_tag l(:button_move) %> | ||
|
r181 | <% end %> | ||