Fix merge conflicts
This commit is contained in:
@@ -23,7 +23,7 @@ from django.utils.translation import ugettext as _
|
||||
require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit", "js/collections/component_template",
|
||||
"jquery.ui", "xmodule", "coffee/src/main", "xblock/cms.runtime.v1"],
|
||||
function(doc, $, ModuleModel, UnitEditView, ComponentTemplates) {
|
||||
window.unit_location_analytics = '${unit_locator}';
|
||||
window.unit_location_analytics = '${unit_usage_key}';
|
||||
|
||||
var templates = new ComponentTemplates(${component_templates | n}, {parse: true});
|
||||
|
||||
@@ -31,7 +31,7 @@ require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit"
|
||||
el: $('.main-wrapper'),
|
||||
view: 'unit',
|
||||
model: new ModuleModel({
|
||||
id: '${unit_locator}',
|
||||
id: '${unit_usage_key}',
|
||||
state: '${unit_state}'
|
||||
}),
|
||||
templates: templates
|
||||
@@ -46,7 +46,7 @@ require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit"
|
||||
</%block>
|
||||
|
||||
<%block name="content">
|
||||
<div class="main-wrapper edit-state-${unit_state}" data-locator="${unit_locator}" data-course-key="${unit_locator.course_key}">
|
||||
<div class="main-wrapper edit-state-${unit_state}" data-locator="${unit_usage_key}" data-course-key="${unit_usage_key.course_key}">
|
||||
<div class="inner-wrapper">
|
||||
<div class="alert editing-draft-alert">
|
||||
<p class="alert-message"><strong>${_("You are editing a draft.")}</strong>
|
||||
@@ -60,8 +60,8 @@ require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit"
|
||||
<article class="unit-body window">
|
||||
<p class="unit-name-input"><label for="unit-display-name-input">${_("Display Name:")}</label><input type="text" value="${unit.display_name_with_default | h}" id="unit-display-name-input" class="unit-display-name-input" /></p>
|
||||
<ol class="components">
|
||||
% for xblock in xblocks:
|
||||
<li class="component" data-locator="${xblock.location}" data-course-key="${xblock.location.course_key}"/>
|
||||
% for usage_key in child_usage_keys:
|
||||
<li class="component" data-locator="${usage_key}" data-course-key="${usage_key.course_key}"/>
|
||||
% endfor
|
||||
</ol>
|
||||
<div class="add-xblock-component new-component-item adding"></div>
|
||||
|
||||
Reference in New Issue
Block a user