jahabrewer / fable Goto Github PK
View Code? Open in Web Editor NEWFable Substitute Placement and Absence Management
License: Other
Fable Substitute Placement and Absence Management
License: Other
Subs don't have a default school, so it doesn't make sense for them to have that property. Make it impossible for subs to have a school during creation. Maybe gray the box out when substitute user type is selected?
Create a unified system for notifications a la facebook.
Login dumps users at absences index. Make it remember where they were headed so that email links will work.
Add the field as well as verification.
When adding an absence, the form in views/absences/add.ctp should default to the user's school.
Users will expect it to be separate.
If the action isn't available, don't have a button for it. Apply/Unapply on absence index, Edit User on user view, any others.
At a minimum, change from 24 hour time to 12 hour. Maybe make the date more readable, too.
As it turns out, using recursive=-1 seems like a good idea for models. We can modify the recursive property when we need more relations. This should reduce the load on the server and speed up page loads.
Make the buttons.
Because we're using admin routing, some actions (like users/add) should be unavailable to regular users. Here's the list of actions available to admins and user:s.
Users
-Absence
--add (with hidden absentee_id, no fulfiller_id)
--view (if user_id matches) (strike user_id requirement)
--edit (if user_id matches)
--delete (if user_id matches)
-User
--view (strip sensitive information)
-School
--view
Admins
-Absence
--all
-User
--all (strip password in edit)
-School
--all
Teachers, subs, and admins are going to have different UIs. Convert the privileged column to a more robust foreign keyed column for user types. Also create virtual fields in the user model for testing a user's type (is_teacher, is_substitute, is_admin).
We don't actually need to lose our records when some deletes something. Figure out how to get the softdelete behavior integrated.
Add buttons to appropriate pages for subs to release an absence.
Make everything look pretty. Need pages for:
(list deleted)
The time select boxes shouldn't have every possible minute available. Cut it down to quarter-hour increments.
Subs should apply for absences and be accepted by teachers. Absences need a HABTM with applicants/users. Replace the take button with apply, which calls an apply function in the controller. The absentee should be able to call the accept function on a particular sub, which will update the absence with a fulfiller and notify the applicants and the fulfiller.
When accessing a view page, associated models aren't shown.
Users should be able to log in and be redirected to a "dashboard" page. This could be the existing users/index or a new users/dashboard. It should show upcoming absences or fulfillments and their statuses.
Add:
Usability test 1 was a huge fail. Zoe couldn't figure out how to do anything, but I got lots of useful feedback. Here it is in raw notes form.
Absentees should receive an email when the status of any of their absences changes.
E.g. edit absence page will let you choose a teacher as a fulfiller. Fix it everywhere.
When users edit an absence with no fulfiller, the form doesn't have a none option for fulfiller.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.