diff --git a/lms/djangoapps/debug/views.py b/lms/djangoapps/debug/views.py index 6794c30348..280674efbc 100644 --- a/lms/djangoapps/debug/views.py +++ b/lms/djangoapps/debug/views.py @@ -3,7 +3,7 @@ import pprint import traceback -from django.http import Http404, HttpResponse +from django.http import Http404, HttpResponse, HttpResponseNotFound from django.contrib.auth.decorators import login_required from django.utils.html import escape @@ -12,6 +12,8 @@ from edxmako.shortcuts import render_to_response from codejail.safe_exec import safe_exec +from mako.exceptions import TopLevelLookupException + @login_required @ensure_csrf_cookie @@ -43,3 +45,18 @@ def show_parameters(request): for name, value in sorted(request.POST.items()): html.append(escape("POST {}: {!r}".format(name, value))) return HttpResponse("\n".join("
{}
".format(h) for h in html)) + + +def show_reference_template(request, template): + """ + Shows the specified template as an HTML page. This is used only in debug mode to allow the UX team + to produce and work with static reference templates. + e.g. /template/ux/reference/container.html shows the template under ux/reference/container.html + + Note: dynamic parameters can also be passed to the page. + e.g. /template/ux/reference/container.html?name=Foo + """ + try: + return render_to_response(template, request.GET.dict()) + except TopLevelLookupException: + return HttpResponseNotFound("Couldn't find template {template}".format(template=template)) diff --git a/lms/templates/ux/reference/instructor_dashboard/membership.html b/lms/templates/ux/reference/instructor_dashboard/membership.html new file mode 100644 index 0000000000..3a1370aeae --- /dev/null +++ b/lms/templates/ux/reference/instructor_dashboard/membership.html @@ -0,0 +1,369 @@ +<%! from django.utils.translation import ugettext as _ %> +<%! from django.core.urlresolvers import reverse %> + +<%inherit file="/main.html" /> +<%namespace name='static' file='/static_content.html'/> + +<%block name="pagetitle">Instructor Dashboard%block> +<%block name="nav_skip">#instructor-dashboard-content%block> + +<%block name="headextra"> +<%static:css group='style-course-vendor'/> +<%static:css group='style-vendor-tinymce-content'/> +<%static:css group='style-vendor-tinymce-skin'/> +<%static:css group='style-course'/> + + + + + + + + + + + + + + + + + +<%static:js group='module-descriptor-js'/> +<%static:js group='instructor_dash'/> +%block> + ++ + +
+ +
+ If this option is checked, users who have not yet registered for {platform_name} will be automatically enrolled.").format(platform_name=settings.PLATFORM_NAME)}
+ If this option is left unchecked, users who have not yet registered for {platform_name} will not be enrolled, but will be allowed to enroll once they make an account.").format(platform_name=settings.PLATFORM_NAME)}
+
+ Checking this box has no effect if 'Unenroll' is selected.
+
+ If this option is checked, users will receive an email notification. +
++ + + +
+ +
+ If this option is checked, users who have not enrolled in your course will be automatically enrolled.
+
+ Checking this box has no effect if 'Remove beta testers' is selected.
+
If this option is checked, users will receive an email notification.
++ Staff cannot modify staff or beta tester lists. To modify these lists, " + "contact your instructor and ask them to add you as an instructor for staff " + "and beta lists, or a discussion admin for discussion management. +
+ + + + + + + + + + + + +You may view individual student information for each cohort via your entire course profile data download on the data download view
+