Skip to content
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

Skin Surveys #329

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions microsetta_interface/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ class Source:
SURFERS_ID = 20
COVID19_ID = 21
OTHER_ID = 22
SKIN_ID = 23
SKIN_HEALTH_DIAGNOSIS_ID = 24
VIOSCREEN_ID = 10001
MYFOODREPO_ID = 10002
POLYPHENOL_FFQ_ID = 10003
Expand Down Expand Up @@ -349,6 +351,16 @@ class Source:
'est_minutes': '2',
'icon': 'survey_other.svg'
},
SKIN_ID: {
'description': '',
'est_minutes': '10',
'icon': 'survey_skin.svg'
},
SKIN_HEALTH_DIAGNOSIS_ID: {
'description': '',
'est_minutes': '20',
'icon': 'survey_skin_health_diagnosis.svg'
},
VIOSCREEN_ID: {
'description': 'Our standard food frequency questionnaire',
'est_minutes': '30',
Expand Down Expand Up @@ -409,6 +421,8 @@ class Source:
ALLERGIES_ID,
DIET_ID,
DETAILED_DIET_ID,
SKIN_ID,
SKIN_HEALTH_DIAGNOSIS_ID,
OTHER_ID
]

Expand Down
2 changes: 2 additions & 0 deletions microsetta_interface/model_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def declare_enum_values():
gettext("Other")
gettext("Polyphenols")
gettext("Spain FFQ")
gettext("Skin")
gettext("Skin Health Diagnosis")

# Survey descriptions
# Intentionally skipping MyFoodRepo since it's only for US residents
Expand Down
5 changes: 5 additions & 0 deletions microsetta_interface/static/css/minimal_interface.css
Original file line number Diff line number Diff line change
Expand Up @@ -1607,4 +1607,9 @@ input.barcode-checkbox[type=checkbox]:checked+label {
.navbar-expand-custom .navbar-toggler {
display: none;
}
}

#skin-color-chart {
max-width: 550px;
width: 80%;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions microsetta_interface/static/img/survey_skin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions microsetta_interface/static/img/survey_skin_health_diagnosis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading