Fix 'maintenence' to 'maintenance' + layout reorganization
authorIra W. Snyder <devel@irasnyder.com>
Tue, 27 Nov 2007 08:04:01 +0000 (00:04 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Tue, 27 Nov 2007 08:04:01 +0000 (00:04 -0800)
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
12 files changed:
app/controllers/login_controller.rb
app/models/bonus_purchase.rb
app/views/coitem/index.rhtml
app/views/customer/index.rhtml
app/views/game/index.rhtml
app/views/layouts/admin.rhtml
app/views/login/maintenance.rhtml [moved from app/views/login/maintenence.rhtml with 85% similarity]
app/views/merchandise/index.rhtml
app/views/purchase/begin.rhtml
app/views/purchase/menu.rhtml
app/views/video/index.rhtml
db/development.sqlite3

index 53cd00b..7d9b914 100644 (file)
@@ -5,10 +5,10 @@ class LoginController < ApplicationController
   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
index a0d8a5c..044b2e2 100644 (file)
@@ -7,9 +7,7 @@ class BonusPurchase < Purchase
 
   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
index 3465f5a..fc5e365 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Checked Out Items Maintenence</h1>
+<h1>Checked Out Items Maintenance</h1>
 
 <h3>Actions</h3>
 <ul>
index 521b806..4048580 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Customer Maintenence</h1>
+<h1>Customer Maintenance</h1>
 
 <h3>Actions</h3>
 <ul>
index e6a4cf8..f765057 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Game Maintenence</h1>
+<h1>Game Maintenance</h1>
 
 <h3>Actions</h3>
 <ul>
index 5ad36b2..3647949 100644 (file)
   </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">
similarity index 85%
rename from app/views/login/maintenence.rhtml
rename to app/views/login/maintenance.rhtml
index 043bb71..c927ec9 100644 (file)
@@ -1,4 +1,4 @@
-<h1>System Maintenence</h1>
+<h1>System Maintenance</h1>
 
 <h3>Actions</h3>
 <ul>
index ec31215..f21a2d8 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Merchandise Maintenence</h1>
+<h1>Merchandise Maintenance</h1>
 
 <h3>Actions</h3>
 <ul>
index b108db7..bf8a608 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Start a Purchase</h1>
+<h1>Start a Transaction</h1>
 
 <p>Please read the customer's ID number off of their card and enter
 it in the box below.</p>
index a57bc22..9fb2fa1 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Purchase Menu</h1>
+<h1>Customer Transaction</h1>
 
 <h3>Customer Information</h3>
 <ul>
index e8a1289..e817cef 100644 (file)
@@ -1,4 +1,4 @@
-<h1>Video Maintenence</h1>
+<h1>Video Maintenance</h1>
 
 <h3>Actions</h3>
 <ul>
index ead04f8..6a09f08 100644 (file)
Binary files a/db/development.sqlite3 and b/db/development.sqlite3 differ