Files
edx-platform/lms/templates/support/enrollment.html
Robert Raposa f555ffd585 Refactor and improve js_utils helpers
- Rename escape_json_dumps to dump_js_escaped_json
- Rename escape_js_string to js_escaped_string
- Update js_escaped_string to output empty string for None
- Introduce dump_html_escaped_json
- Move dump_js_escaped_json after the pipe as new best practice
- Introduce additional uses of helpers
- Introduce new djangolib directory and move js_utils
2016-02-03 17:13:21 -05:00

30 lines
841 B
HTML

<%!
from django.utils.translation import ugettext as _
from openedx.core.djangolib.js_utils import js_escaped_string
%>
<%namespace name='static' file='../static_content.html'/>
<%inherit file="../main.html" />
<%block name="js_extra">
<%static:require_module module_name="support/js/enrollment_factory" class_name="EnrollmentFactory">
new EnrollmentFactory({
user: '${username | n, js_escaped_string}',
enrollmentsUrl: '${enrollmentsUrl | n, js_escaped_string}',
enrollmentSupportUrl: '${enrollmentSupportUrl | n, js_escaped_string}',
});
</%static:require_module>
</%block>
<%block name="pagetitle">
${_("Enrollment")}
</%block>
<%block name="content">
<section class="container outside-app">
<h1>${_("Student Support: Enrollment")}</h1>
<div class="enrollment-content"></div>
</section>
</%block>