Revision 912:5e80956cc792 app/views/issue_moves
| app/views/issue_moves/new.html.erb | ||
|---|---|---|
| 1 |
<h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2> |
|
| 2 |
|
|
| 3 |
<ul> |
|
| 4 |
<% @issues.each do |issue| -%> |
|
| 5 |
<li><%= link_to_issue issue %></li> |
|
| 6 |
<% end -%> |
|
| 7 |
</ul> |
|
| 8 |
|
|
| 9 |
<% form_tag({:action => 'create'}, :id => 'move_form') do %>
|
|
| 10 |
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
|
| 11 |
|
|
| 12 |
<div class="box tabular"> |
|
| 13 |
<fieldset class="attributes"> |
|
| 14 |
<legend><%= l(:label_change_properties) %></legend> |
|
| 15 |
|
|
| 16 |
<div class="splitcontentleft"> |
|
| 17 |
<p><label for="new_project_id"><%=l(:field_project)%>:</label> |
|
| 18 |
<%= select_tag "new_project_id", |
|
| 19 |
project_tree_options_for_select(@allowed_projects, :selected => @target_project), |
|
| 20 |
:onchange => remote_function(:url => { :action => 'new' },
|
|
| 21 |
:method => :get, |
|
| 22 |
:update => 'content', |
|
| 23 |
:with => "Form.serialize('move_form')") %></p>
|
|
| 24 |
|
|
| 25 |
<p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label> |
|
| 26 |
<%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
|
|
| 27 |
|
|
| 28 |
<p> |
|
| 29 |
<label for='status_id'><%= l(:field_status) %></label> |
|
| 30 |
<%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
|
| 31 |
</p> |
|
| 32 |
|
|
| 33 |
<p> |
|
| 34 |
<label for='priority_id'><%= l(:field_priority) %></label> |
|
| 35 |
<%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.active, :id, :name)) %>
|
|
| 36 |
</p> |
|
| 37 |
|
|
| 38 |
<p> |
|
| 39 |
<label for='assigned_to_id'><%= l(:field_assigned_to) %></label> |
|
| 40 |
<%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
|
|
| 41 |
content_tag('option', l(:label_nobody), :value => 'none') +
|
|
| 42 |
principals_options_for_select(@target_project.assignable_users)) %> |
|
| 43 |
</p> |
|
| 44 |
</div> |
|
| 45 |
|
|
| 46 |
<div class="splitcontentright"> |
|
| 47 |
<p> |
|
| 48 |
<label for='start_date'><%= l(:field_start_date) %></label> |
|
| 49 |
<%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
|
|
| 50 |
</p> |
|
| 51 |
|
|
| 52 |
<p> |
|
| 53 |
<label for='due_date'><%= l(:field_due_date) %></label> |
|
| 54 |
<%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
|
|
| 55 |
</p> |
|
| 56 |
</div> |
|
| 57 |
|
|
| 58 |
</fieldset> |
|
| 59 |
|
|
| 60 |
<fieldset><legend><%= l(:field_notes) %></legend> |
|
| 61 |
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> |
|
| 62 |
<%= wikitoolbar_for 'notes' %> |
|
| 63 |
</fieldset> |
|
| 64 |
|
|
| 65 |
<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> |
|
| 66 |
</div> |
|
| 67 |
|
|
| 68 |
<% if @copy %> |
|
| 69 |
<%= hidden_field_tag("copy_options[copy]", "1") %>
|
|
| 70 |
<%= submit_tag l(:button_copy) %> |
|
| 71 |
<%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> |
|
| 72 |
<% else %> |
|
| 73 |
<%= submit_tag l(:button_move) %> |
|
| 74 |
<%= submit_tag l(:button_move_and_follow), :name => 'follow' %> |
|
| 75 |
<% end %> |
|
| 76 |
<% end %> |
|
| 77 |
<% content_for :header_tags do %> |
|
| 78 |
<%= robot_exclusion_tag %> |
|
| 79 |
<% end %> |
|
| app/views/issue_moves/new.rhtml | ||
|---|---|---|
| 1 |
<h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2> |
|
| 2 |
|
|
| 3 |
<ul> |
|
| 4 |
<% @issues.each do |issue| -%> |
|
| 5 |
<li><%= link_to_issue issue %></li> |
|
| 6 |
<% end -%> |
|
| 7 |
</ul> |
|
| 8 |
|
|
| 9 |
<% form_tag({:action => 'create'}, :id => 'move_form') do %>
|
|
| 10 |
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
|
| 11 |
|
|
| 12 |
<div class="box tabular"> |
|
| 13 |
<fieldset class="attributes"> |
|
| 14 |
<legend><%= l(:label_change_properties) %></legend> |
|
| 15 |
|
|
| 16 |
<div class="splitcontentleft"> |
|
| 17 |
<p><label for="new_project_id"><%=l(:field_project)%>:</label> |
|
| 18 |
<%= select_tag "new_project_id", |
|
| 19 |
project_tree_options_for_select(@allowed_projects, :selected => @target_project), |
|
| 20 |
:onchange => remote_function(:url => { :action => 'new' },
|
|
| 21 |
:method => :get, |
|
| 22 |
:update => 'content', |
|
| 23 |
:with => "Form.serialize('move_form')") %></p>
|
|
| 24 |
|
|
| 25 |
<p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label> |
|
| 26 |
<%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
|
|
| 27 |
|
|
| 28 |
<p> |
|
| 29 |
<label><%= l(:field_status) %></label> |
|
| 30 |
<%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
|
| 31 |
</p> |
|
| 32 |
|
|
| 33 |
<p> |
|
| 34 |
<label><%= l(:field_priority) %></label> |
|
| 35 |
<%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>
|
|
| 36 |
</p> |
|
| 37 |
|
|
| 38 |
<p> |
|
| 39 |
<label><%= l(:field_assigned_to) %></label> |
|
| 40 |
<%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
|
|
| 41 |
content_tag('option', l(:label_nobody), :value => 'none') +
|
|
| 42 |
options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %> |
|
| 43 |
</p> |
|
| 44 |
</div> |
|
| 45 |
|
|
| 46 |
<div class="splitcontentright"> |
|
| 47 |
<p> |
|
| 48 |
<label><%= l(:field_start_date) %></label> |
|
| 49 |
<%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
|
|
| 50 |
</p> |
|
| 51 |
|
|
| 52 |
<p> |
|
| 53 |
<label><%= l(:field_due_date) %></label> |
|
| 54 |
<%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
|
|
| 55 |
</p> |
|
| 56 |
</div> |
|
| 57 |
|
|
| 58 |
</fieldset> |
|
| 59 |
|
|
| 60 |
<fieldset><legend><%= l(:field_notes) %></legend> |
|
| 61 |
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> |
|
| 62 |
<%= wikitoolbar_for 'notes' %> |
|
| 63 |
</fieldset> |
|
| 64 |
|
|
| 65 |
<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %> |
|
| 66 |
</div> |
|
| 67 |
|
|
| 68 |
<% if @copy %> |
|
| 69 |
<%= hidden_field_tag("copy_options[copy]", "1") %>
|
|
| 70 |
<%= submit_tag l(:button_copy) %> |
|
| 71 |
<%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> |
|
| 72 |
<% else %> |
|
| 73 |
<%= submit_tag l(:button_move) %> |
|
| 74 |
<%= submit_tag l(:button_move_and_follow), :name => 'follow' %> |
|
| 75 |
<% end %> |
|
| 76 |
<% end %> |
|
| 77 |
<% content_for :header_tags do %> |
|
| 78 |
<%= robot_exclusion_tag %> |
|
| 79 |
<% end %> |
|
Also available in: Unified diff