%page expression_filter="h"/> <%inherit file="base.html" /> <%def name="online_help_token()"><% return "advanced" %>%def> <%namespace name='static' file='static_content.html'/> <%! import six from six.moves.urllib.parse import quote from django.utils.translation import ugettext as _ from cms.djangoapps.contentstore import utils from openedx.core.djangolib.js_utils import ( dump_js_escaped_json, js_escaped_string ) from openedx.core.djangolib.markup import HTML, Text %> <%block name="title">${_("Advanced Settings")}%block> <%block name="bodyclass">is-signedin course advanced view-settings%block> <%block name="header_extras"> % for template_name in ["advanced_entry", "basic-modal", "modal-button", "validation-error-modal"]: % endfor %block> <%block name="requirejs"> require(["js/factories/settings_advanced"], function(SettingsAdvancedFactory) { SettingsAdvancedFactory( ${advanced_dict | n, dump_js_escaped_json}, "${advanced_settings_url | n, js_escaped_string}", ${publisher_enabled | n, dump_js_escaped_json} ); }); %block> <%block name="page_alert"> %if proctoring_errors:
% if course_authoring_microfrontend_url: <% url_encoded_course_id = quote(six.text_type(context_course.id).encode('utf-8'), safe='') %> ${Text(_("You will be unable to make changes until the errors are resolved. To update these settings go to the {link_start}Proctored Exam Settings page{link_end}.")).format( link_start=HTML('').format( course_authoring_microfrontend_url=course_authoring_microfrontend_url, url_encoded_course_id=url_encoded_course_id, ), link_end=HTML("") )} % else: ${_("You will be unable to make changes until the following settings are updated on the page below.")} % endif