Jason Denney
a9fb3487a1
Remove unique constraint on bike_serial
bike serial index was already removed.
11 years ago
Jason Denney
7736ac5c34
Added credit tracking and stats
Added credit_conversions table so conversions can change over time
Added default credit conversion fixture
Added User#transaction_logs
Added User#total_credits (earned minus spent)
Added User#total_credits_spent (through transaction_logs)
Added User#total_earned_credits (complicated query which finds the conversion rate for a log depending on its created_at date)
12 years ago
Jason Denney
ff60fdd67f
Removing nickname from user
12 years ago
Jason Denney
cd41735cee
Bug in User#completed_build_bikes query. inner
12 years ago
Jason Denney
2c548ff63c
User#completed_build_bikes method, and stats page list
12 years ago
Jason Denney
f6f932f63a
Fixing some cancan permission issues… i think
12 years ago
Jason Denney
db1732f7bf
Bug in user_stats queries
12 years ago
Jason Denney
2e08f655ea
Registration form now remembers field values for nested form errors
12 years ago
Jason Denney
145a731ed2
Remove puts
12 years ago
Jason Denney
d7755f00ed
Initial stab at check-in feature
12 years ago
John N. Milner
8f988b2cf1
Use `self.table_name = ` instead of set_table_name to avoid deprecation warning
12 years ago
Jason Denney
a614b28558
Make it possible to limit roles by date
12 years ago
Jason Denney
6f6902dd82
Update Ability to get user roles, not role
12 years ago
Jason Denney
a083ed715b
Renamed UserRoles to UserRole Joins, Needed ID column in user_role_joins table
12 years ago
Jason Denney
91bb2ea43e
Changing UserRole to UserRoleJoin
Beware, this breaks the view for some reason
12 years ago
John N. Milner
a3fcdec10c
WIP adding user roles view; adding end datetime to user roles
12 years ago
John N. Milner
59e45fa4d3
Initial work on permissions with cancan
12 years ago
John N. Milner
6a29eda8d9
WIP: cancan permissions; it breaks stuff!
12 years ago
John N. Milner
55fbd06305
Closes #1
12 years ago
Jason Denney
ad26dab160
Finished adding default Bike task list
12 years ago
Jason Denney
545c33b953
Added TaskList and Task migrations and models
12 years ago
Jason Denney
873bccb030
Completed adding transactions
12 years ago
Jason Denney
55d0b8f2f7
Some Transactions view adjustments
-moved js to customers and users components, in order to use accordion.
-Made the transaction form a little prettier
12 years ago
Jason Denney
2d51bd1d9a
Creating Transactions works
-Need to scope transactions for users
-Only Admins should be able to create transactions
12 years ago
Jason Denney
1b7daa45ca
Nested isn't working, another approach, add trans validations
User a transactions border, select the customer from a view of users and customers
12 years ago
Jason Denney
31935f6f7e
Nested attributes on Transactions isn't working so well
12 years ago
Jason Denney
d95f51eeca
Created customers
12 years ago
Jason Denney
11e738b428
Adding transactions
-Need to create a customers table to store contact information of customers who are not a user.
-Need to scope "User Transactions" for users, staff, and admin. Need to have a "All Shop Transactions" tab.
-Need to add conditional UX to form.
12 years ago
Jason Denney
6918520b01
Make create user let users enter address info, only require phone num
12 years ago
Jason Denney
c00c8fa3df
Fixed user profiles and added NOTE action to bike_logs
12 years ago
Jason Denney
3ac630f9f3
Round hours on stats page
12 years ago
Jason Denney
189137ba9d
Almost usable, still a lot of work left
-Moved bikes to User model instead of profile
-User can copy user log to a bike log with new actsasloggable
-Added user stats
-some css was messing up checkboxes, need to figure out which stylesheet was doing that
12 years ago
Jason Denney
922af526c1
Order bike brands and models alphabetically
12 years ago
Jason Denney
db9982dcd2
Added user roles and authentication, sign in/out
12 years ago
Jason Denney
4ebcbca081
Still a work in progress
12 years ago
Jason Denney
d7f5eb26bf
Experimenting with Netzke/ ExtJS
12 years ago
Jason Denney
d5b312fa54
Add users resources and paginate users index
12 years ago
Jason Denney
c98c53de76
Got logs working for users and bikes
Not my best work, but it works, need to add transactions, need to add edit/show actions
12 years ago
Jason Denney
b4f2abf05f
Rename models to singular
12 years ago
Jason Denney
4e6abf4a52
Needed some to_s
12 years ago
Jason Denney
d3c466761e
Add bike routes, controller, and views. Update model.
12 years ago
Jason Denney
2876a20148
Edit to brand and model models
12 years ago
Jason Denney
29af72787b
Add Bike Style model and defaults
12 years ago
Jason Denney
128cf32bfa
set per_page for bike brand
12 years ago
Jason Denney
ff640580be
Add BikeBrand and BikeModel models
12 years ago
Jason Denney
718b04e7c0
Remove set_fixture_class, that's not how it's used
12 years ago
Jason Denney
351f303532
Adding some actsasloggable models (to be included by gem eventually)
12 years ago
Jason Denney
575651a325
Adding some Bike models
12 years ago
Jason Denney
f7d36328a5
First start at Bike Model
12 years ago
Jason Denney
aa3ed3d43b
git init
12 years ago