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