##// END OF EJS Templates
Make use of link_to_issue....
Jean-Philippe Lang -
r2948:63c86758876d
parent child
Show More
@@ -1,25 +1,29
1 1 <h2><%= l(:button_move) %></h2>
2 2
3 <ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul>
3 <ul>
4 <% @issues.each do |issue| -%>
5 <li><%= link_to_issue issue %></li>
6 <% end -%>
7 </ul>
4 8
5 9 <% form_tag({}, :id => 'move_form') do %>
6 10 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
7 11
8 12 <div class="box tabular">
9 13 <p><label for="new_project_id"><%=l(:field_project)%>:</label>
10 14 <%= select_tag "new_project_id",
11 15 project_tree_options_for_select(@allowed_projects, :selected => @target_project),
12 16 :onchange => remote_function(:url => { :action => 'move' },
13 17 :method => :get,
14 18 :update => 'content',
15 19 :with => "Form.serialize('move_form')") %></p>
16 20
17 21 <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
18 22 <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
19 23
20 24 <p><label for="copy_options_copy"><%= l(:button_copy)%></label>
21 25 <%= check_box_tag "copy_options[copy]", "1" %></p>
22 26 </div>
23 27
24 28 <%= submit_tag l(:button_move) %>
25 29 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now