Skip to content

Commit c9323f4

Browse files
authored
Merge pull request dimagi#794 from dimagi/ze/documentation-for-credentials
Documentation Link for Managing Credentials
2 parents 285b491 + 1051d60 commit c9323f4

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

commcare_connect/opportunity/forms.py

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,29 @@ def __init__(self, *args, **kwargs):
179179
layout_fields.append(
180180
Row(
181181
HTML(
182-
f"""
183-
<div class='col-span-2'>
184-
<h6 class='title-sm'>{_("Manage Credentials")}</h6>
185-
<span class='hint'>
186-
{_("Configure credential requirements for learning and delivery.")}
187-
</span>
188-
</div>
189-
"""
182+
format_html(
183+
"""
184+
<div class='col-span-2'>
185+
<h6 class='title-sm'>{}</h6>
186+
<span class='hint'>
187+
{}
188+
</span>
189+
</div>
190+
""",
191+
_("Manage Credentials"),
192+
format_html(
193+
_(
194+
"Configure credential requirements for learning and delivery. For more "
195+
"information, please refer to the {link_start}following documentation{link_end}."
196+
),
197+
link_start=format_html(
198+
'<a href="{}" target="_blank" class="text-blue-600 hover:underline">',
199+
"https://dimagi.atlassian.net/wiki/spaces/connectpublic/"
200+
"pages/3383132164/Managing+Credentials",
201+
),
202+
link_end=format_html("</a>"),
203+
),
204+
)
190205
),
191206
Column(
192207
Field("learn_level"),

0 commit comments

Comments
 (0)