Show location in the settings xblock.

This commit is contained in:
Oksana Slusarenro
2015-10-22 16:22:53 +03:00
parent bcf260ce49
commit 943757a79e
3 changed files with 13 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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

View File

@@ -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>