Commit a1d81ed7 by AlasdairSwan

ECOM-3047 update DOM to include the data-attributes that the programs IDA expects

parent d7bc32f5
"""Programs views for use with Studio."""
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import Http404, JsonResponse
......@@ -27,6 +28,7 @@ class ProgramAuthoringView(View):
return render_to_response('program_authoring.html', {
'show_programs_header': programs_config.is_studio_tab_enabled,
'authoring_app_config': programs_config.authoring_app_config,
'lms_base_url': '//{}/'.format(settings.LMS_BASE),
'programs_api_url': programs_config.public_api_url,
'programs_token_url': reverse('programs_id_token'),
'studio_home_url': reverse('home'),
......
......@@ -12,5 +12,5 @@
</%block>
<%block name="content">
<div class="js-program-admin program-app layout-1q3q layout-reversed" data-api-url=${programs_api_url} data-auth-url=${programs_token_url} data-home-url=${studio_home_url}></div>
<div class="js-program-admin program-app layout-1q3q layout-reversed" data-home-url=${studio_home_url} data-lms-base-url=${lms_base_url} data-programs-api-url=${programs_api_url} data-auth-url=${programs_token_url}></div>
</%block>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment