Allows support staff or global staff to view a list of a learner's enrollments, and change enrollment modes. We generate a ManualEnrollmentAudit record for these enrollment changes in order to track updates. Additionally, enrollment changes are handled through the enrollment API, which handles bookkeeping such as granting refunds where appropriate. ECOM-2825
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
"""
|
|
Index view for the support app.
|
|
"""
|
|
from django.core.urlresolvers import reverse_lazy
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from edxmako.shortcuts import render_to_response
|
|
from support.decorators import require_support_permission
|
|
|
|
|
|
SUPPORT_INDEX_URLS = [
|
|
{
|
|
"url": reverse_lazy("support:certificates"),
|
|
"name": _("Certificates"),
|
|
"description": _("View and regenerate certificates."),
|
|
},
|
|
|
|
# DEPRECATION WARNING: We can remove this end-point
|
|
# once shoppingcart has been replaced by the E-Commerce service.
|
|
{
|
|
"url": reverse_lazy("support:refund"),
|
|
"name": _("Manual Refund"),
|
|
"description": _("Track refunds issued directly through CyberSource."),
|
|
},
|
|
{
|
|
"url": reverse_lazy("support:enrollment"),
|
|
"name": _("Enrollment"),
|
|
"description": _("View and update learner enrollments."),
|
|
},
|
|
]
|
|
|
|
|
|
@require_support_permission
|
|
def index(request): # pylint: disable=unused-argument
|
|
"""Render the support index view. """
|
|
context = {
|
|
"urls": SUPPORT_INDEX_URLS
|
|
}
|
|
return render_to_response("support/index.html", context)
|