annotate app/views/issue_moves/.svn/text-base/new.rhtml.svn-base @ 14:1d32c0a0efbf

* Update to SVN trunk (revisions 3892-4040)
author Chris Cannam
date Wed, 25 Aug 2010 16:30:24 +0100
parents
children 94944d00e43c
rev   line source
Chris@14 1 <h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2>
Chris@14 2
Chris@14 3 <ul>
Chris@14 4 <% @issues.each do |issue| -%>
Chris@14 5 <li><%= link_to_issue issue %></li>
Chris@14 6 <% end -%>
Chris@14 7 </ul>
Chris@14 8
Chris@14 9 <% form_tag({:action => 'create'}, :id => 'move_form') do %>
Chris@14 10 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
Chris@14 11
Chris@14 12 <div class="box tabular">
Chris@14 13 <p><label for="new_project_id"><%=l(:field_project)%>:</label>
Chris@14 14 <%= select_tag "new_project_id",
Chris@14 15 project_tree_options_for_select(@allowed_projects, :selected => @target_project),
Chris@14 16 :onchange => remote_function(:url => { :action => 'new' },
Chris@14 17 :method => :get,
Chris@14 18 :update => 'content',
Chris@14 19 :with => "Form.serialize('move_form')") %></p>
Chris@14 20
Chris@14 21 <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
Chris@14 22 <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
Chris@14 23
Chris@14 24 <p>
Chris@14 25 <label><%= l(:field_assigned_to) %></label>
Chris@14 26 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
Chris@14 27 content_tag('option', l(:label_nobody), :value => 'none') +
Chris@14 28 options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %>
Chris@14 29 </p>
Chris@14 30
Chris@14 31 <p>
Chris@14 32 <label><%= l(:field_status) %></label>
Chris@14 33 <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
Chris@14 34 </p>
Chris@14 35
Chris@14 36 <p>
Chris@14 37 <label><%= l(:field_start_date) %></label>
Chris@14 38 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
Chris@14 39 </p>
Chris@14 40
Chris@14 41 <p>
Chris@14 42 <label><%= l(:field_due_date) %></label>
Chris@14 43 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
Chris@14 44 </p>
Chris@14 45
Chris@14 46 <%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %>
Chris@14 47 </div>
Chris@14 48
Chris@14 49 <% if @copy %>
Chris@14 50 <%= hidden_field_tag("copy_options[copy]", "1") %>
Chris@14 51 <%= submit_tag l(:button_copy) %>
Chris@14 52 <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %>
Chris@14 53 <% else %>
Chris@14 54 <%= submit_tag l(:button_move) %>
Chris@14 55 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
Chris@14 56 <% end %>
Chris@14 57 <% end %>