Show location in the settings xblock.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user