Skip to content

Commit

Permalink
add helper texts for ordered content sets
Browse files Browse the repository at this point in the history
  • Loading branch information
Hlamallama committed Feb 6, 2025
1 parent dbde0a0 commit 00dea28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,10 @@ def latest_draft_profile_fields(self):
blocks.StructBlock(
[
("contentpage", blocks.PageChooserBlock()),
("time", blocks.IntegerBlock(min_value=0, required=False)),
("time", blocks.IntegerBlock(
min_value=0,
required=False,
help_text="When should this message be sent? Set the number of hours, days, months or year.")),
(
"unit",
blocks.ChoiceBlock(
Expand All @@ -1200,6 +1203,7 @@ def latest_draft_profile_fields(self):
("days", "Days"),
("months", "Months"),
],
help_text="Choose the unit of time to use.",
required=False,
),
),
Expand All @@ -1210,12 +1214,14 @@ def latest_draft_profile_fields(self):
("after", "After"),
("before", "Before"),
],
help_text="Is it ‘before’ or ‘after’ the reference point for your timings, which is set in the contact field below.",
required=False,
),
),
(
"contact_field",
blocks.CharBlock(
help_text="This is the reference point used to base the timing of message on. For example, edd (estimated date of birth) or dob (date of birth).",
required=False,
),
),
Expand Down

0 comments on commit 00dea28

Please sign in to comment.