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