_bulk_edit_form.rhtml
38 lines
| 2.1 KiB
| text/html+ruby
|
RhtmlLexer
|
r806 | <div id="bulk-edit-fields"> | ||
<fieldset class="box"><legend><%= l(:label_bulk_edit_selected_issues) %></legend> | ||||
<p> | ||||
|
r820 | <% if @available_statuses %> | ||
<label><%= l(:field_status) %>: | ||||
<%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label> | ||||
<% end %> | ||||
|
r806 | <label><%= l(:field_priority) %>: | ||
|
r814 | <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label> | ||
|
r806 | <label><%= l(:field_category) %>: | ||
|
r814 | <%= select_tag('category_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label> | ||
|
r820 | </p> | ||
<p> | ||||
<label><%= l(:field_assigned_to) %>: | ||||
|
r837 | <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option)) + | ||
content_tag('option', l(:label_nobody), :value => 'none') + | ||||
options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label> | ||||
|
r806 | <label><%= l(:field_fixed_version) %>: | ||
|
r814 | <%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label> | ||
|
r806 | </p> | ||
<p> | ||||
<label><%= l(:field_start_date) %>: | ||||
<%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label> | ||||
<label><%= l(:field_due_date) %>: | ||||
<%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label> | ||||
<label><%= l(:field_done_ratio) %>: | ||||
|
r814 | <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label> | ||
|
r806 | </p> | ||
<label for="notes"><%= l(:field_notes) %></label><br /> | ||||
<%= text_area_tag 'notes', '', :cols => 80, :rows => 5 %> | ||||
</fieldset> | ||||
<p><%= submit_tag l(:button_apply) %> | ||||
<%= link_to l(:button_cancel), {}, :onclick => 'Element.hide("bulk-edit-fields"); if ($("query_form")) {Element.show("query_form")}; return false;' %></p> | ||||
</div> | ||||