Skip to content

Commit

Permalink
format_html, mark_safe, translations
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 22, 2025
1 parent 6013584 commit 39ad552
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions edc_locator/model_mixins/subject_contact_fields_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ class SubjectContactFieldsMixin(models.Model):
max_length=25,
choices=YES_NO,
verbose_name=format_html(
"Has the participant given permission <b>{}</b> "
"Has the participant given permission <b>{text}</b> "
"by study staff for follow-up purposes during the study?",
"to contacted by telephone or cell",
text="to contacted by telephone or cell",
),
)

Expand All @@ -21,8 +21,8 @@ class SubjectContactFieldsMixin(models.Model):
choices=YES_NO,
verbose_name=format_html(
"Has the participant given permission for study "
"staff <b>{}</b> for follow-up purposes?",
"to make home visits",
"staff <b>{text}</b> for follow-up purposes?",
text="to make home visits",
),
)

Expand All @@ -32,9 +32,9 @@ class SubjectContactFieldsMixin(models.Model):
null=True,
blank=False,
verbose_name=format_html(
"Has the participant given permission <b>{}</b> "
"Has the participant given permission <b>{text}</b> "
"by study staff for follow-up purposes during the study?",
"to be contacted by SMS",
text="to be contacted by SMS",
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class SubjectIndirectContactFieldsMixin(models.Model):
max_length=25,
choices=YES_NO,
verbose_name=format_html(
"{} <b>{}</b> {}?",
"Has the participant given permission for study staff",
"to contact anyone else",
"for follow-up purposes during the study",
"{text1} <b>{text2}</b> {text3}?",
text1="Has the participant given permission for study staff",
text2="to contact anyone else",
text3="for follow-up purposes during the study",
),
help_text="For example a partner, spouse, family member, neighbour ...",
)
Expand Down

0 comments on commit 39ad552

Please sign in to comment.