Adds validator to schedules model so that model cannot be updated after it is rendered/cancelled. I discovered that the date of the schedule could be modified after it was rendered/canclled because the request was being submitted to Client#update rather than Schedule#update, and was bypassing the before_filter on the SchedulesController.
Adds collection of unrendered schedules to Client#edit so that only unrendered schedules are listed to be edited.
sends client name to new health history form; sets up password and hidden fiels for client authentication. Controller needs to be modified to accept.
Trainer can successfully create health form for a client
before_fliter so that only client in the params and his trainer can create the health history. Client must autneticate using his password to complete the form
Changes api authentication to lookup client by member_number. If not found, falls back to username; if finds by username, adds member number. Client username, email, and Name are updated on each login to reflect changes in OLS.
removes automatic redirect to new health form for first time signin of client
Adds :member_number to attr_accessible for Client
In api_helper lookup_user - returns false if client not found by username.
Changes false return to nil so that || statement will work. I hope.
Tweaking styling for IE compatibility
Change serve static assets to true in staging (to match production) - should fix fonts
Merge branch 'staging' of https://github.com/MPSCM/fitness_schedules into staging