Replaced IndexController by Home- and FoodcoopController. Some reorganizing in groups/memberships-logic (moved memberships out of admin-namespace).
This commit is contained in:
parent
fadc951208
commit
6ce6c2c75a
70 changed files with 553 additions and 934 deletions
|
|
@ -7,7 +7,8 @@
|
|||
<p>Anzahl gefundener Transaktionen: <b><%= @total %></b></p>
|
||||
|
||||
<p>
|
||||
<%= pagination_links_remote @financial_transactions, :params => {:sort => params[:sort], :query => params['query']}%>
|
||||
<%= pagination_links_remote @financial_transactions, :update => 'transactions',
|
||||
:params => {:sort => params[:sort], :query => params['query']}%>
|
||||
</p>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
%table{:style => "width:100%"}
|
||||
%tr
|
||||
%td
|
||||
= pagination_links_remote @groups, :params => {:sort => params[:sort]}
|
||||
= pagination_links_remote @groups, :update => :ordergroups, :params => {:sort => params[:sort]}
|
||||
%td{:style => "text-align:right"}
|
||||
- if @total > 20
|
||||
= items_per_page
|
||||
= items_per_page :update => :ordergroups
|
||||
%table.list
|
||||
%thead
|
||||
%tr
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@
|
|||
:before => "Element.show('loader')", |
|
||||
:success => "Element.hide('loader')", |
|
||||
:url => {:action => 'index'}, |
|
||||
:with => 'query' |
|
||||
#table
|
||||
:with => 'query', |
|
||||
:update => 'ordergroups' |
|
||||
#ordergroups
|
||||
= render :partial => "ordergroups"
|
||||
%br/
|
||||
- if @current_user.role_admin?
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
:before => "Element.show('loader')",
|
||||
:success => "Element.hide('loader')",
|
||||
:url => {:action => 'list'},
|
||||
:with => 'query' %>
|
||||
<div id="table">
|
||||
<%= render :partial => "list" %>
|
||||
:with => 'query',
|
||||
:update => 'transactions' %>
|
||||
<div id="transactions">
|
||||
<%= render :partial => "list" %>
|
||||
</div>
|
||||
<p><%= link_to 'Neue Transaktion', :action => 'new', :id => @group %></p>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue