Skip to content

Commit

Permalink
Merge pull request #329 from biocore/csymons_skin_surveys
Browse files Browse the repository at this point in the history
Skin Surveys
  • Loading branch information
cassidysymons authored Feb 12, 2025
2 parents 7b82dfd + 4c61322 commit 0e67622
Show file tree
Hide file tree
Showing 12 changed files with 2,497 additions and 1,419 deletions.
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 @@ -350,6 +352,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 @@ -425,6 +437,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 @@ -1611,3 +1611,8 @@ input.barcode-checkbox[type=checkbox]:checked+label {
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

0 comments on commit 0e67622

Please sign in to comment.