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 bfbe657 commit c4f4fef
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class ClinicalReviewCholModelMixin(models.Model):

chol_dx = models.CharField(
verbose_name=format_html(
"As of today, was the patient <u>{}</u> diagnosed with high cholesterol?", "newly"
"As of today, was the patient <u>{text}</u> diagnosed with high cholesterol?",
text="newly",
),
max_length=15,
choices=YES_NO_NA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class ClinicalReviewDmModelMixin(models.Model):
choices=YES_NO_NA,
default=NOT_APPLICABLE,
help_text=format_html(
"{}",
mark_safe(
"{html}",
html=mark_safe(
"Note: Select `not applicable` if diagnosis previously reported. <BR>"
"`Since last seen` includes today.<BR>"
"If `yes', complete the initial review CRF<BR>"
Expand All @@ -42,7 +42,8 @@ class ClinicalReviewDmModelMixin(models.Model):

dm_dx = models.CharField(
verbose_name=format_html(
"As of today, was the patient <u>{}</u> diagnosed with diabetes?", "newly"
"As of today, was the patient <u>{text}</u> diagnosed with diabetes?",
text="newly",
),
max_length=15,
choices=YES_NO_NA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class ClinicalReviewHivModelMixin(models.Model):
choices=YES_NO_NA,
default=NOT_APPLICABLE,
help_text=format_html(
"{}",
mark_safe(
"{html}",
html=mark_safe(
"Note: Select `not applicable` if diagnosis previously reported. <BR>"
"`Since last seen` includes today.<BR>"
"If `yes', complete the initial review CRF<BR>"
Expand All @@ -42,7 +42,8 @@ class ClinicalReviewHivModelMixin(models.Model):

hiv_dx = models.CharField(
verbose_name=format_html(
"As of today, was the patient <u>{}</u> diagnosed with HIV infection?", "newly"
"As of today, was the patient <u>{text}</u> diagnosed with HIV infection?",
text="newly",
),
max_length=15,
choices=YES_NO_NA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class ClinicalReviewHtnModelMixin(models.Model):
choices=YES_NO_NA,
default=NOT_APPLICABLE,
help_text=format_html(
"{}",
mark_safe(
"{html}",
html=mark_safe(
"Note: Select `not applicable` if diagnosis previously reported. <BR>"
"`Since last seen` includes today.<BR>"
"If `yes', complete the initial review CRF<BR>"
Expand All @@ -42,8 +42,8 @@ class ClinicalReviewHtnModelMixin(models.Model):

htn_dx = models.CharField(
verbose_name=format_html(
"{}",
mark_safe(
"{html}",
html=mark_safe(
"As of today, was the patient <u>newly</u> diagnosed with hypertension?"
), # nosec B308, B703
),
Expand Down

0 comments on commit c4f4fef

Please sign in to comment.