Skip to content
Snippets Groups Projects
Unverified Commit b4f144ef authored by Andytr1's avatar Andytr1 Committed by GitHub
Browse files

EDUCATOR-5304 - update help text (#25264)

* EDUCATOR-5304 - update help text

* EDUCATOR-5304 - update help text - escape underscore

* EDUCATOR-5304 - update help text - escape underscore 2
parent 5f68f2f1
No related branches found
Tags release-2020-10-06-17.51
No related merge requests found
......@@ -7,7 +7,8 @@
<div class="field text value">
<label class="sr" for="<%- valueUniqueId %>"><%- display_name %></label>
<textarea class="json text" id="<%- valueUniqueId %>"><%- value %></textarea>
<span class="tip tip-stacked"><%- help %></span>
<% // xss-lint: disable=underscore-not-escaped %>
<span class="tip tip-stacked"><%= help %></span>
</div>
<% if (deprecated) { %>
<span class="status"><%- gettext("Deprecated") %></span>
......
......@@ -842,25 +842,10 @@ class CourseFields(object):
display_name=_("Teams Configuration"),
# Translators: please don't translate "id".
help=_(
'Specify the maximum team size and topics for teams inside the provided set of curly braces. '
'Make sure that you enclose all of the sets of topic values within a set of square brackets, '
'with a comma after the closing curly brace for each topic, and another comma after the '
'closing square brackets. '
'For example, to specify that teams should have a maximum of 5 participants and provide a list of '
'2 topics, enter the configuration in this format: {example_format}. '
'If no max_size is provided, it will default to {default_max}'
'In "id" values, the only supported special characters are underscore, hyphen, and period.'
# Note that we also support space (" "), which may have been an accident, but it's in
# our DB now. Let's not advertise the fact, though.
),
help_format_args=dict(
# Put the sample JSON into a format variable so that translators
# don't muck with it.
example_format=(
'{"topics": [{"name": "Topic1Name", "description": "Topic1Description", "id": "Topic1ID"}, '
'{"name": "Topic2Name", "description": "Topic2Description", "id": "Topic2ID"}], "max_team_size": 5}'
),
default_max=str(DEFAULT_COURSE_RUN_MAX_TEAM_SIZE),
'Configure team sets, limit team sizes, and set visibility settings using JSON. See '
'<a target="&#95;blank" href="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/'
'course_features/teams/teams_setup.html#enable-and-configure-teams">teams '
'configuration documentation</a> for help and examples.'
),
scope=Scope.settings,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment