##// END OF EJS Templates
Adds a hook on issue move form (#4850)....
Jean-Philippe Lang -
r3342:77459f9ae488
parent child
Show More
@@ -1,55 +1,57
1 1 <h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2>
2 2
3 3 <ul>
4 4 <% @issues.each do |issue| -%>
5 5 <li><%= link_to_issue issue %></li>
6 6 <% end -%>
7 7 </ul>
8 8
9 9 <% form_tag({}, :id => 'move_form') do %>
10 10 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
11 11
12 12 <div class="box tabular">
13 13 <p><label for="new_project_id"><%=l(:field_project)%>:</label>
14 14 <%= select_tag "new_project_id",
15 15 project_tree_options_for_select(@allowed_projects, :selected => @target_project),
16 16 :onchange => remote_function(:url => { :action => 'move' },
17 17 :method => :get,
18 18 :update => 'content',
19 19 :with => "Form.serialize('move_form')") %></p>
20 20
21 21 <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
22 22 <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
23 23
24 24 <p>
25 25 <label><%= l(:field_assigned_to) %></label>
26 26 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
27 27 content_tag('option', l(:label_nobody), :value => 'none') +
28 28 options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %>
29 29 </p>
30 30
31 31 <p>
32 32 <label><%= l(:field_status) %></label>
33 33 <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
34 34 </p>
35 35
36 36 <p>
37 37 <label><%= l(:field_start_date) %></label>
38 38 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
39 39 </p>
40 40
41 41 <p>
42 42 <label><%= l(:field_due_date) %></label>
43 43 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
44 44 </p>
45
46 <%= call_hook(:view_issues_move_bottom, :issue => @issue, :target_project => @target_project, :copy => !!@copy) %>
45 47 </div>
46 48
47 49 <% if @copy %>
48 50 <%= hidden_field_tag("copy_options[copy]", "1") %>
49 51 <%= submit_tag l(:button_copy) %>
50 52 <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %>
51 53 <% else %>
52 54 <%= submit_tag l(:button_move) %>
53 55 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
54 56 <% end %>
55 57 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now