From 7f8d959171c571eaf1a49951a2da02ccffa6f808 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 1 May 2008 13:50:39 +0000 Subject: Show the project hierarchy in the drop down list for new membership on user administration screen. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1401 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/users/_memberships.rhtml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/views') diff --git a/app/views/users/_memberships.rhtml b/app/views/users/_memberships.rhtml index 2499ba387..44d74ef7b 100644 --- a/app/views/users/_memberships.rhtml +++ b/app/views/users/_memberships.rhtml @@ -13,17 +13,17 @@

<% end %> <% end %> + +<% if @projects.any? %>


<% form_tag({ :action => 'edit_membership', :id => @user }) do %> - - +<%= select_tag 'membership[project_id]', projects_options_for_select(@projects) %> +<%= l(:label_role) %>: +<%= select_tag 'membership[role_id]', options_from_collection_for_select(@roles, "id", "name") %> <%= submit_tag l(:button_add) %> <% end %>

+<% end %> \ No newline at end of file -- cgit v1.2.3