To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / issue_moves / .svn / text-base / new.rhtml.svn-base @ 442:753f1380d6bc
History | View | Annotate | Download (2.88 KB)
| 1 | 14:1d32c0a0efbf | Chris | <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 | 119:8661b858af72 | Chris | <fieldset class="attributes"> |
| 14 | <legend><%= l(:label_change_properties) %></legend> |
||
| 15 | |||
| 16 | <div class="splitcontentleft"> |
||
| 17 | 14:1d32c0a0efbf | Chris | <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 | 37:94944d00e43c | chris | <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 | 119:8661b858af72 | Chris | <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 | 14:1d32c0a0efbf | Chris | <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 | 119:8661b858af72 | Chris | </div> |
| 57 | |||
| 58 | </fieldset> |
||
| 59 | 14:1d32c0a0efbf | Chris | |
| 60 | 37:94944d00e43c | chris | <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 | 14:1d32c0a0efbf | Chris | <%= 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 | 441:cbce1fd3b1b7 | Chris | <% content_for :header_tags do %> |
| 78 | <%= robot_exclusion_tag %> |
||
| 79 | <% end %> |