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
Selectively remove service transcript entry for banned programs #1176
base: development
Are you sure you want to change the base?
Conversation
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.
Pretty good! I found a couple of bugs but they don't seem too difficult to iron out. Once you fix the non-displayed program hours ending up in the transcript total and that one modal-title
selector changing all modal titles on the user's profile this looks good!
banButton.text($(this).val() + " Volunteer"); | ||
programID = $(this).data("programid"); // Assign value to programID variable | ||
banButton.data("programID", $(this).data("programid")) | ||
banButton.data("username", $("#notifyInput").data("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.
While this object does have the username of the user, it feels weird that you're using something which isn't really meant to be global to the page and that's not totally related to the ban model you're using it in. The whole thing is a refactor. It's odd we don't have a hidden input on the user's profile page with their username in it but we have 10 data-usernames. You could use the edit button which currently has the class '.ban' which you'll hopefully be changing soon since that's a little more related and still has a data-username attribute already attached to it.
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