All the model stuff from 22 May 2012 as I didn't have timeSee discussion belowFigure out roster - Users? Or separate Roster "scaffolding"?Diagram the relationships- Assignment = button v. drag and drop v. select open spots
- 8 hour conundrum
- Cut off areas of app with
before_filter :authenticate_user!
&&authorize! :index, @user, :message => 'Not authorized as an administrator.'
- Install sevenwire/forgery and use it to create fake users/assignments/etc.
- Belongs to shift && shift has one roster?
- Shift is also ROSTER?
- Assign "Users" to units and list users based on assignment?
- Simply a matter of assignment per shift Ie. Loop through battalions and stations and units. If vac, sick, light duty, or family medical are encountered alert missing personnel slot.
- Provide a list of open spots to Admin / Staffing
- Mechanism to assign member / user to unit
- User needs Fire Profile with Rank, IBM number
Cut off areas of app withbefore_filter :authenticate_user!
&&authorize! :index, @user, :message => 'Not authorized as an administrator.'
Upload 37 signals book and CSS book to Tablet for Mexico- ~~Moar
Figure out roster - Users? Or separate Roster "scaffolding"?Diagram the relationshipsAssignment = button v. drag and drop v. select open spots8 hour conundrumCut off areas of app withbefore_filter :authenticate_user!
&&authorize! :index, @user, :message => 'Not authorized as an administrator.'
Spruce up Calendar CSSAfter login -> return to calendarAdd _navigation links for Calendar, Battalion, Stations and (roster, User, or whatever)Merge back into master and create topic branch before any major change
Run app as is with new rails_admin Whitelist enabled see what happensThis workedColorize shiftsFigure out roster - Users? Or separate Roster?continue iterating on shifts/show.html.erbAdd if station.battalion_id == battalion.id then print the station infoneeds more work, but it generally workedAs it stands now, every battalion gets assigned the station even if it doesn't have that stationMaybe filp thisDoesn't work<% @battalions.each do |battalion| %> <% @stations.each do |station| %>
so station comes first??