I added two volunteer links for users that have selected to record volunteer hours, I implemented this by checking if the user has selected the check in the database and then I display the links in the navbar. I then added a screen shot of this to the /serviceHoursInstructions. The last thing I added was a checkbox in the admin dashboard if the an admin user wants to change their volunteer status. I implemented this with a post request when the user clicks the checkbox. I also included translations for the new links.
I have attached screenshots below of the before and after for the instructions page and admin dashboard.
Before/After screenshots (if applicable)
Testing instructions
I used Valentina studio to check the community_service boolean in the user_role table to display the new navbar links and the checkbox on the admin dashboard.
Things to check before submitting the PR
[x] I've written a descriptive PR title.
[x] I've added/updated comments for large or confusing blocks of code.
[x] I've included before/after screenshots above.
[x] I've asked for and included translations for any user facing text that was added or modified.
[ ] I've updated any logging. Clicks, keyboard presses, and other user interactions should be logged. If you're not sure how (or if you need to update the logging), ask Mikey. Then make sure the documentation on this wiki page is up to date for the logs you added/updated.
[ ] I've tested on mobile (only needed for validation page).
…volunteers
Resolves #3465
I added two volunteer links for users that have selected to record volunteer hours, I implemented this by checking if the user has selected the check in the database and then I display the links in the navbar. I then added a screen shot of this to the /serviceHoursInstructions. The last thing I added was a checkbox in the admin dashboard if the an admin user wants to change their volunteer status. I implemented this with a post request when the user clicks the checkbox. I also included translations for the new links.
I have attached screenshots below of the before and after for the instructions page and admin dashboard.
Before/After screenshots (if applicable)
Testing instructions
Things to check before submitting the PR