GeriLife / caregiving

GeriLife is a comprehensive toolkit designed to empower caregivers in elder-care communities, promoting wellness and ensuring equitable engagement in life-enriching activities. This project, rooted in real-world insights and collaborative innovation, aims to transform elder care by making quality-of-life activities visible and coordinated.
European Union Public License 1.2
7 stars 7 forks source link

Added preferences page which allows user to save their own preferences #47

Closed Icyviolet23 closed 9 months ago

Icyviolet23 commented 9 months ago

Resolves bonus in https://github.com/GeriLife/caregiving/issues/37

Major changes

  1. Added Preferences Model 2 . Added one to one relation between the Preferences Model and the Abstract User model. Each User will have their own preferences. 3 . Added Preferences ModelForm which will be used to collect user preferences
  2. Added view to handle Preferences Form POST request, create an instance of the Preferences model and save it in the DB
  3. Created HTML Template for preferences page
  4. Edited HTML template for navigation.html to add navigation to preferences page

Refer to the following DEMO: https://www.youtube.com/watch?v=pluG9xmyShA

codeclimate[bot] commented 9 months ago

Code Climate has analyzed commit 39f0cc93 and detected 51 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2
Style 49

View more on Code Climate.