-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface graduation management #1355
base: development
Are you sure you want to change the base?
Conversation
…gement javascript
…off by 1 year (If a student graduted in 2022, then they will only show up if u click 2023)
…BCStudentSoftwareDevTeam/celts into interface-graduation-management
specific year for bonner cohorts in graduationManagement JavaScript
…BCStudentSoftwareDevTeam/celts into interface-graduation-management
…raduation management page.
…ement.py and removed unneccessary comments and print statements
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost to the finish line! I just had a few immediate changes I thought would be necessary, and there were one or typos I saw. I think that the flash messages still need to be handled, but otherwise, I'm excited to see this merged!
|
||
|
||
@admin_bp.route('/<username>/hasGraduated/', methods=['POST']) | ||
def hasGraduated(username): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "has" at the beginning of the function was a bit confusing, because it is an attributing verb. I usually associate it with a check, like "isDead" or "hasDied". Maybe change this use a better helping verb like "setGraduationStatus" or something similar.
return "Error Updating Graduation Status", 500 | ||
|
||
@admin_bp.route('/<username>/hasNotGraduated/', methods=['POST']) | ||
def hasNotGraduated(username): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
return "Error Updating Graduation Status", 500 | ||
|
||
@admin_bp.route("/gradStudentsxls/<filterType>", methods=['GET']) | ||
def gradsxls(filterType): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make this camelCase to match the rest of the functions.
</div> | ||
<div class="btn-group" id = "bongroup"> | ||
<button type="button" class="btn btn-primary dropdown-toggle bonner-filter" id = "cohortFilter" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" > | ||
Bonner Cohorts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$('.alert').alert('close'); | ||
}; | ||
console.log("Graduation status updated successfully!"); | ||
msgFlash("Graduation status updated successfully!", "success"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,5 +1,7 @@ | |||
$(document).ready(function() { | |||
|
|||
$('.alert').alert('close');// close excess flash messages from graduation managment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was mentioning excess flash messages, and this might be the solution. I did not see it effect the flash notification I was getting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this empty file here?
Issue Description
Fixes #1315
The purpose of this issue is to create a page that allows celts admins to mark students as graduated in the data base.
The page should include a way for the user to filter students by searching for individual users, by Bonner Cohort (and what academic year they are associated with), as well as students who are participating in the CCE minor (whether they have completed it or made any progress towards it. ).
Changes
-Added 3 main filters and a search bar to filter out students in the table.
-For Bonner Cohorts a button was added to find all Bonner Students for a specific term.
-Export button has been added to export all students who've been marked as graduated and are visible in the table with the current filters applied.