From f05b77806532747a8cafdebc250ca13f9128610a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 3 Jan 2010 11:37:04 +0000 Subject: [PATCH] Bulk edit view cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3279 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/bulk_edit.rhtml | 86 +++++++++++++++++++------------- 1 file changed, 51 insertions(+), 35 deletions(-) diff --git a/app/views/issues/bulk_edit.rhtml b/app/views/issues/bulk_edit.rhtml index db2ba0fa8..b120f23c4 100644 --- a/app/views/issues/bulk_edit.rhtml +++ b/app/views/issues/bulk_edit.rhtml @@ -4,52 +4,68 @@ <% form_tag() do %> <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> -
+
<%= l(:label_change_properties) %> -

- -<% if @available_statuses.any? %> - -<% end %> -

-

- - -

-

- - -

+

- - -<% if Issue.use_field_for_done_ratio? %> - + + <%= select_tag('tracker_id', "" + options_from_collection_for_select(@project.trackers, :id, :name)) %> +

+<% if @available_statuses.any? %> +

+ + <%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %> +

<% end %> +

+ + <%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %> +

+

+ + <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_nobody), :value => 'none') + + options_from_collection_for_select(@project.assignable_users, :id, :name)) %> +

+

+ + <%= select_tag('category_id', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_none), :value => 'none') + + options_from_collection_for_select(@project.issue_categories, :id, :name)) %> +

+

+ + <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_none), :value => 'none') + + version_options_for_select(@project.shared_versions.open)) %>

<% @custom_fields.each do |custom_field| %> -

+

<%= custom_field_tag_for_bulk_edit(custom_field) %>

<% end %> <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> +
+ +
+

+ + <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> +

+

+ + <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> +

+<% if Issue.use_field_for_done_ratio? %> +

+ + <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> +

+<% end %> +
+
<%= l(:field_notes) %>