uchicago-capp-30320 / new-arrivals-chi

GNU Affero General Public License v3.0
9 stars 0 forks source link

Add Linking Organization to Filterable Health Table #221

Closed sumslong closed 5 months ago

sumslong commented 5 months ago

Describe your changes

This PR implements hyperlinking on the health filterable table. When users are searching for specific supplies and find an organization that could fit their needs, they are able to click on the organization and access the /org/<int:org_id> page displaying their name, address, phone number, languages spoken, and supplies & services accessible.

The following files were modified as a result of this PR.

Accepting this PR closes #199.

Non-obvious technical information

I commented out (instead of erasing) the previous implementation of def org() that was in main.py just to be sure nothing should be retained, as the previous implementation of def org() was meant to function both as the unauthenticated user's view of any organization and an authenticated user to view what their own organization's page looks like.

However, if the url is directly navigated to (for instance, https://127.0.0.1:5000/org/5 without pressing anything in the health table), it is still viewable: we can use this for a seamless implementation.

Translations are still necessary to add to the json for the organization.html page and generally for the health_search.html page

Checklist before requesting a review