Mercurial > hg > soundsoftware-site
diff .svn/pristine/4b/4bca034528beb58f74c7ed4f1bd974d891aaa55f.svn-base @ 1298:4f746d8966dd redmine_2.3_integration
Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:28:30 +0100 |
parents | 622f24f53b42 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/4b/4bca034528beb58f74c7ed4f1bd974d891aaa55f.svn-base Fri Jun 14 09:28:30 2013 +0100 @@ -0,0 +1,39 @@ +<div class="splitcontentleft"> +<% if @group.users.any? %> + <table class="list users"> + <thead><tr> + <th><%= l(:label_user) %></th> + <th style="width:15%"></th> + </tr></thead> + <tbody> + <% @group.users.sort.each do |user| %> + <tr id="user-<%= user.id %>" class="<%= cycle 'odd', 'even' %>"> + <td class="user"><%= link_to_user user %></td> + <td class="buttons"> + <%= delete_link group_user_path(@group, :user_id => user), :remote => true %> + </td> + </tr> + <% end %> + </tbody> + </table> +<% else %> + <p class="nodata"><%= l(:label_no_data) %></p> +<% end %> +</div> + +<div class="splitcontentright"> + <%= form_for(@group, :remote => true, :url => group_users_path(@group), + :html => {:method => :post}) do |f| %> + <fieldset><legend><%=l(:label_user_new)%></legend> + + <p><%= label_tag "user_search", l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p> + <%= javascript_tag "observeSearchfield('user_search', null, '#{ escape_javascript autocomplete_for_user_group_path(@group) }')" %> + + <div id="users"> + <%= render_principals_for_new_group_users(@group) %> + </div> + + <p><%= submit_tag l(:button_add) %></p> + </fieldset> + <% end %> +</div>