Commit 943757a7 by Oksana Slusarenro

Show location in the settings xblock.

parent bcf260ce
......@@ -20,7 +20,7 @@ function(BaseView, _, MetadataModel, AbstractEditor, FileUpload, UploadDialog,
courseKey = self.$el.closest('[data-course-key]').data('course-key');
this.template = this.loadTemplate('metadata-editor');
this.$el.html(this.template({numEntries: this.collection.length}));
this.$el.html(this.template({numEntries: this.collection.length, locator: locator}));
this.collection.each(
function (model) {
......
......@@ -599,7 +599,7 @@
}
}
.wrapper-comp-setting {
.wrapper-comp-setting, .wrapper-comp-setting-text {
min-width: 300px;
top: 0;
vertical-align: top;
......@@ -703,6 +703,11 @@
vertical-align: top;
}
.setting-text {
display: inline;
white-space: nowrap;
}
// TYPE: enumerated lists of metadata sets
......
......@@ -3,4 +3,10 @@
<li class="field comp-setting-entry metadata_entry">
</li>
<% }) %>
<li class="field comp-setting-entry metadata_entry">
<div class="wrapper-comp-setting-text">
<label class="label setting-label"><%- gettext("Location ID") %></label>
<span class="setting-text"><%- locator %></span>
</div>
</li>
</ul>
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