##// END OF EJS Templates
Rails3: view: html_safe for issues/bulk_edit.html.erb...
Toshi MARUYAMA -
r8327:0fe8a4248d4d
parent child
Show More
@@ -1,91 +1,96
1 1 <h2><%= l(:label_bulk_edit_selected_issues) %></h2>
2 2
3 <ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul>
3 <ul><%= @issues.collect {|i|
4 content_tag('li',
5 link_to(h("#{i.tracker} ##{i.id}"),
6 { :action => 'show', :id => i }
7 ) + h(": #{i.subject}"))
8 }.join("\n").html_safe %></ul>
4 9
5 10 <% form_tag(:action => 'bulk_update') do %>
6 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
11 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
7 12 <div class="box tabular">
8 13 <fieldset class="attributes">
9 14 <legend><%= l(:label_change_properties) %></legend>
10 15
11 16 <div class="splitcontentleft">
12 17 <p>
13 18 <label for="issue_tracker_id"><%= l(:field_tracker) %></label>
14 19 <%= select_tag('issue[tracker_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, :id, :name)) %>
15 20 </p>
16 21 <% if @available_statuses.any? %>
17 22 <p>
18 23 <label for='issue_status_id'><%= l(:field_status) %></label>
19 24 <%= select_tag('issue[status_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
20 25 </p>
21 26 <% end %>
22 27 <p>
23 28 <label for='issue_priority_id'><%= l(:field_priority) %></label>
24 29 <%= select_tag('issue[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.active, :id, :name)) %>
25 30 </p>
26 31 <p>
27 32 <label for='issue_assigned_to_id'><%= l(:field_assigned_to) %></label>
28 33 <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') +
29 34 content_tag('option', l(:label_nobody), :value => 'none') +
30 35 principals_options_for_select(@assignables)) %>
31 36 </p>
32 37 <% if @project %>
33 38 <p>
34 39 <label for='issue_category_id'><%= l(:field_category) %></label>
35 40 <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') +
36 41 content_tag('option', l(:label_none), :value => 'none') +
37 42 options_from_collection_for_select(@project.issue_categories, :id, :name)) %>
38 43 </p>
39 44 <% end %>
40 45 <% #TODO: allow editing versions when multiple projects %>
41 46 <% if @project %>
42 47 <p>
43 48 <label for='issue_fixed_version_id'><%= l(:field_fixed_version) %></label>
44 49 <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') +
45 50 content_tag('option', l(:label_none), :value => 'none') +
46 51 version_options_for_select(@project.shared_versions.open.sort)) %>
47 52 </p>
48 53 <% end %>
49 54
50 55 <% @custom_fields.each do |custom_field| %>
51 56 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p>
52 57 <% end %>
53 58
54 59 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
55 60 </div>
56 61
57 62 <div class="splitcontentright">
58 63 <% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>
59 64 <p>
60 65 <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label>
61 66 <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %>
62 67 </p>
63 68 <div id="parent_issue_candidates" class="autocomplete"></div>
64 69 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:project_id => @project) }')" %>
65 70 <% end %>
66 71 <p>
67 72 <label for='issue_start_date'><%= l(:field_start_date) %></label>
68 73 <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %>
69 74 </p>
70 75 <p>
71 76 <label for='issue_due_date'><%= l(:field_due_date) %></label>
72 77 <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %>
73 78 </p>
74 79 <% if Issue.use_field_for_done_ratio? %>
75 80 <p>
76 81 <label for='issue_done_ratio'><%= l(:field_done_ratio) %></label>
77 82 <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>
78 83 </p>
79 84 <% end %>
80 85 </div>
81 86
82 87 </fieldset>
83 88
84 89 <fieldset><legend><%= l(:field_notes) %></legend>
85 90 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
86 91 <%= wikitoolbar_for 'notes' %>
87 92 </fieldset>
88 93 </div>
89 94
90 95 <p><%= submit_tag l(:button_submit) %></p>
91 96 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now