move.rhtml
57 lines
| 2.2 KiB
| text/html+ruby
|
RhtmlLexer
|
r3013 | <h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2> | ||
|
r30 | |||
|
r2948 | <ul> | ||
<% @issues.each do |issue| -%> | ||||
<li><%= link_to_issue issue %></li> | ||||
<% end -%> | ||||
</ul> | ||||
|
r30 | |||
|
r1116 | <% form_tag({}, :id => 'move_form') do %> | ||
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> | ||||
|
r30 | |||
|
r1116 | <div class="box tabular"> | ||
|
r2312 | <p><label for="new_project_id"><%=l(:field_project)%>:</label> | ||
|
r907 | <%= select_tag "new_project_id", | ||
|
r2313 | project_tree_options_for_select(@allowed_projects, :selected => @target_project), | ||
|
r1120 | :onchange => remote_function(:url => { :action => 'move' }, | ||
|
r907 | :method => :get, | ||
:update => 'content', | ||||
:with => "Form.serialize('move_form')") %></p> | ||||
|
r30 | |||
|
r2312 | <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label> | ||
|
r890 | <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p> | ||
|
r2311 | |||
|
r3008 | <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> | ||||
|
r3342 | |||
|
r3362 | <%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> | ||
|
r30 | </div> | ||
|
r1116 | |||
|
r3013 | <% 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 %> | ||||
|
r181 | <% end %> | ||