before_filter :authorize, :only => :index
# Only managers can do the following actions
- before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenence]
+ before_filter :manager, :only => [:add_user, :delete_user, :list_users, :maintenance]
- def maintenence
- render :action => 'maintenence'
+ def maintenance
+ render :action => 'maintenance'
end
def limits
def self.last_bonus_date(customer,bonus_type,since_date)
bonuses = BonusPurchase.find_all_by_customer_id(customer, :conditions => ["date >= ?", since_date], :order => 'date DESC')
- puts "*** BONUSES.length: #{bonuses.length} ***"
for bonus in bonuses
- puts "#{bonus.rentable.class.to_s} == #{bonus_type.to_s} => #{bonus.rentable.class.to_s == bonus_type.to_s}"
if bonus.rentable.class.to_s == bonus_type.to_s
return bonus.date
end
</div>
<div id="columns">
<div id="side">
- <p><%= link_to "Make A Purchase", :controller => 'purchase', :action => 'begin' %></p>
+ <p><%= link_to "Customer Transaction", :controller => 'purchase', :action => 'begin' %></p>
<p><%= link_to "Return Items", :controller => 'coitem', :action => 'return' %></p>
<br/>
- <p><%= link_to "Video Maintenence", :controller => 'video', :action => 'index' %></p>
- <p><%= link_to "Game Maintenence", :controller => 'game', :action => 'index' %></p>
- <p><%= link_to "Merchandise Maintenence", :controller => 'merchandise', :action => 'index' %></p>
+ <p><%= link_to "Customer Maintenance", :controller => 'customer', :action => 'index' %></p>
+ <p><%= link_to "Game Maintenance", :controller => 'game', :action => 'index' %></p>
+ <p><%= link_to "Merchandise Maintenance", :controller => 'merchandise', :action => 'index' %></p>
+ <p><%= link_to "Video Maintenance", :controller => 'video', :action => 'index' %></p>
+ <br/>
<p><%= link_to "Checked Out Items", :controller => 'coitem', :action => 'index' %></p>
- <p><%= link_to "Customer Maintenence", :controller => 'customer', :action => 'index' %></p>
<p><%= link_to "Financial Information", :controller => 'purchase', :action => 'index' %></p>
- <p><%= link_to "System Maintenence", :controller => 'login', :action => 'maintenence' %></p>
<p><%= link_to "Rental and Bonus Policies", :controller => 'login', :action => 'limits' %></p>
<br/>
+ <p><%= link_to "User Maintenance", :controller => 'login', :action => 'maintenance' %></p>
+ <br/>
<p><%= link_to "Logout", :controller => 'login', :action => 'logout' %></p>
</div>
<div id="main">