Commit 943757a7 by Oksana Slusarenro

Show location in the settings xblock.

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