summaryrefslogtreecommitdiffstats
path: root/app/views/issue_moves
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-11 14:42:10 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-11 14:42:10 +0000
commitff43bb1a74a7450dbcee2d8b0b152d2173a810e1 (patch)
treed0af815e4139ee61d415704b72461d131862e619 /app/views/issue_moves
parente43f9fc21edc0a7b3451f64204c3399eab359529 (diff)
downloadredmine-ff43bb1a74a7450dbcee2d8b0b152d2173a810e1.tar.gz
redmine-ff43bb1a74a7450dbcee2d8b0b152d2173a810e1.zip
Refactor: Extract a new IssueMovesController from IssuesController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3936 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issue_moves')
-rw-r--r--app/views/issue_moves/new.rhtml57
1 files changed, 57 insertions, 0 deletions
diff --git a/app/views/issue_moves/new.rhtml b/app/views/issue_moves/new.rhtml
new file mode 100644
index 000000000..2dc971df2
--- /dev/null
+++ b/app/views/issue_moves/new.rhtml
@@ -0,0 +1,57 @@
+<h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2>
+
+<ul>
+<% @issues.each do |issue| -%>
+ <li><%= link_to_issue issue %></li>
+<% end -%>
+</ul>
+
+<% form_tag({:action => 'create'}, :id => 'move_form') do %>
+<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
+
+<div class="box tabular">
+<p><label for="new_project_id"><%=l(:field_project)%>:</label>
+<%= select_tag "new_project_id",
+ project_tree_options_for_select(@allowed_projects, :selected => @target_project),
+ :onchange => remote_function(:url => { :action => 'new' },
+ :method => :get,
+ :update => 'content',
+ :with => "Form.serialize('move_form')") %></p>
+
+<p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
+<%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
+
+<p>
+ <label><%= l(:field_assigned_to) %></label>
+ <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
+ content_tag('option', l(:label_nobody), :value => 'none') +
+ options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %>
+</p>
+
+<p>
+ <label><%= l(:field_status) %></label>
+ <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
+</p>
+
+<p>
+ <label><%= l(:field_start_date) %></label>
+ <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
+</p>
+
+<p>
+ <label><%= l(:field_due_date) %></label>
+ <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
+</p>
+
+<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %>
+</div>
+
+<% if @copy %>
+ <%= hidden_field_tag("copy_options[copy]", "1") %>
+ <%= submit_tag l(:button_copy) %>
+ <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %>
+<% else %>
+ <%= submit_tag l(:button_move) %>
+ <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
+<% end %>
+<% end %>