ProjectSidewalk / SidewalkWebpage

Project Sidewalk web page
http://projectsidewalk.org
MIT License
83 stars 24 forks source link

3465 adding volunteer info #3548

Closed JeremyFreiburger closed 3 months ago

JeremyFreiburger commented 4 months ago

…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)
Screen Shot 2024-05-15 at 11 22 43 AM Screen Shot 2024-05-15 at 11 22 18 AM Screen Shot 2024-05-15 at 11 22 09 AM Screen Shot 2024-05-15 at 11 21 57 AM Screen Shot 2024-05-15 at 11 31 49 AM
Testing instructions
  1. 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