Browse files

Remove pages roles tab from memberships page

  • Loading branch information...
1 parent bdacb97 commit 62e669534651e4898feaa134afdff5119d307a27 Angelo Grossini committed Apr 2, 2011
View
2 app/controllers/admin/page_roles_controller.rb
@@ -1,2 +0,0 @@
-class Admin::PageRolesController < Admin::MembershipsController
-end
View
19 app/views/admin/memberships/_page_roles.html.erb
@@ -1,19 +0,0 @@
-<div id="content" class="clearfix"></div>
-<table id="page-roles-table" cellpadding="5" cellspacing="5">
- <thead>
- <tr><th><Page><%= t('.page')%></th><th><%= t('.members_only')%></th></tr>
- </thead>
- <tbody>
- <% pages.each do |page|%>
- <tr class="<%= cycle("even", "odd") %>">
- <td><%= page.title %></td>
- <% roles.each do |role| %>
- <td align="center">
- <%= check_box_tag "page[role_ids][]", "page_#{page.id}_role_#{role.id}",
- page.role_ids.include?(role.id) %>
- </td>
- <% end %>
- </tr>
- <% end %>
- </tbody>
-</table>
View
12 app/views/admin/memberships/index.html.erb
@@ -5,21 +5,15 @@ end%>
<div id="page-tabs" class="clearfix ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul id="page_parts" class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
<li><a href="#user_roles"><span><%= t('.members') %></span></a></li>
- <li><a href="#page_roles"><span><%= t('.pages') %></span></a></li>
+ <li><a href="#roles"><span><%= t('.roles') %></span></a></li>
</ul>
<div id="page_part_editors">
<div id="user_roles" class="page_part ui-tabs-panel ui-widget-content ui-corner-bottom wym_box wym_skin_refinery">
<%= render :partial => 'user_roles', :locals => {:members => @members} %>
</div>
- <div id="page_roles" class="page_part ui-tabs-panel ui-widget-content ui-corner-bottom wym_box wym_skin_refinery">
- <%= render :partial => 'page_roles',
- :layout => false,
- :locals => {
- :pages => @pages,
- :roles => @roles
- }
- %>
+ <div id="roles" class="page_part ui-tabs-panel ui-widget-content ui-corner-bottom wym_box wym_skin_refinery">
+ <%= render :partial => 'roles' %>
</div>
</div>
</div>

0 comments on commit 62e6695

Please sign in to comment.