Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Admin attendance view update #32

Open
attang opened this issue Mar 21, 2016 · 0 comments
Open

Admin attendance view update #32

attang opened this issue Mar 21, 2016 · 0 comments
Assignees

Comments

@attang
Copy link
Contributor

attang commented Mar 21, 2016

Currently if you login as an admin and click "Manage Sections", it will display a single number that lumps together all the attendance for that particular student. Instead of a single number, separate numbers denoting approved / excused / pending / denied is much more informative and helps out when considering when we need to drop the student.

Relevant files

  • views/admins/manage_sections.html.erb -> generates partial _section.html.erb
  • controllers/admins/admins_controller.rb # can change the manage_sections function

Line 15 of the partial outputs the number with some logic on how to calculate it. Change it so it outputs all the attendance numbers of that student, separated by slashes and color-coded for readability. (You can choose the colors yourself). You probably don't need to change the controller, but I've pointed out the relevant function in case you need to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants