Commit 8b8339b1 by Andy Armstrong Committed by GitHub

Merge pull request #11999 from raccoongang/kssl/show_location_id_xblock

Show location in the settings xblock.
parents 6d2468d0 e3f55afc
...@@ -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) {
......
...@@ -608,7 +608,7 @@ ...@@ -608,7 +608,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;
...@@ -712,6 +712,11 @@ ...@@ -712,6 +712,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("Component 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