diff options
author | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2010-10-08 03:09:51 +0000 |
---|---|---|
committer | Jean-Baptiste Barth <jeanbaptiste.barth@gmail.com> | 2010-10-08 03:09:51 +0000 |
commit | 156eca4d223efce4abd67c9ef7b129a3d07d83e6 (patch) | |
tree | dc61c3fa752872267c3b964c1716374720bb10ba /app/views | |
parent | 73f12765a99b6d78c5d23a58fe887c79a4012e99 (diff) | |
download | redmine-156eca4d223efce4abd67c9ef7b129a3d07d83e6.tar.gz redmine-156eca4d223efce4abd67c9ef7b129a3d07d83e6.zip |
Added ability to edit issues from different project through contextual menu (#5332)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4242 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/context_menus/issues.html.erb | 5 | ||||
-rw-r--r-- | app/views/issues/bulk_edit.rhtml | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb index 3f45f4ea2..3109ac4dd 100644 --- a/app/views/context_menus/issues.html.erb +++ b/app/views/context_menus/issues.html.erb @@ -33,7 +33,6 @@ </li> <% end %> - <% if @projects.size == 1 %> <li class="folder"> <a href="#" class="submenu"><%= l(:field_priority) %></a> <ul> @@ -43,8 +42,8 @@ <% end -%> </ul> </li> - <% end %> + <% #TODO: allow editing versions when multiple projects %> <% unless @project.nil? || @project.shared_versions.open.empty? -%> <li class="folder"> <a href="#" class="submenu"><%= l(:field_fixed_version) %></a> @@ -85,7 +84,7 @@ </li> <% end -%> - <% if Issue.use_field_for_done_ratio? && @projects.size == 1 %> + <% if Issue.use_field_for_done_ratio? %> <li class="folder"> <a href="#" class="submenu"><%= l(:field_done_ratio) %></a> <ul> diff --git a/app/views/issues/bulk_edit.rhtml b/app/views/issues/bulk_edit.rhtml index 5fdfd58a6..7091e358b 100644 --- a/app/views/issues/bulk_edit.rhtml +++ b/app/views/issues/bulk_edit.rhtml @@ -11,7 +11,7 @@ <div class="splitcontentleft"> <p> <label><%= l(:field_tracker) %></label> - <%= select_tag('issue[tracker_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.trackers, :id, :name)) %> + <%= select_tag('issue[tracker_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, :id, :name)) %> </p> <% if @available_statuses.any? %> <p> @@ -27,20 +27,25 @@ <label><%= l(:field_assigned_to) %></label> <%= select_tag('issue[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)) %> + options_from_collection_for_select(@assignables, :id, :name)) %> </p> +<% if @project %> <p> <label><%= l(:field_category) %></label> <%= select_tag('issue[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)) %> </p> +<% end %> +<% #TODO: allow editing versions when multiple projects %> +<% if @project %> <p> <label><%= l(:field_fixed_version) %></label> <%= select_tag('issue[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)) %> </p> +<% end %> <% @custom_fields.each do |custom_field| %> <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field) %></p> |