Issue: #658
Add a checkbox to the ban modal dialog to choose whether to completely remove the program from the service transcript or keep it in the service transcript (in case if the checkbox is not clicked). The checkbox on the modal should affect the service transcript directly and remove or keep the programs, whose modals were checked/unchecked.
Did:
Added a checkbox for banned modals (It is shown only on the Unban version and hidden on the Ban version)
Added a new boolean column removeFromTranscript in programBan table
Added a new route to update programBan table when checkbox state changes
The fixes are reflected on the database and the service transcript page
Test:
checkout the branch serviceTEntry658
reset the database and run flask
Go to student search and search for a student, like "khatts"
In the Choose Action dropdown, select view service transcript, note which programs appear on the transcript
Go back to the student profile, and under "Programs" in accordion, click on the "Edit" button that will open a modal Ban/Unban
Ban a student from another program like "Hunger Initiatives" (keep in mind that the program will show up in the service transcript only if the student earned hours for that program)
Select the "Remove From Transcript" checkbox on the modal that is on the stage of Unban, and then close the modal
Go back to view the service transcript, and check if that program appears (it should not appear)
Try to remove the checkbox and see if the program appears again on the service transcript
Review Code in these files: userProfile.js, userProfile.html, main/routes.py, transcript.py
So I found an issue of when you ban a user, remove that program from their transcript, and then unban the user, it is still removed from the transcript.
Issue: #658 Add a checkbox to the ban modal dialog to choose whether to completely remove the program from the service transcript or keep it in the service transcript (in case if the checkbox is not clicked). The checkbox on the modal should affect the service transcript directly and remove or keep the programs, whose modals were checked/unchecked.
Did:
removeFromTranscript
in programBan tableTest:
serviceTEntry658