Support editing of metadata on Sequences
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
% if metadata:
|
||||
<section class="metadata_edit">
|
||||
<h3>Metadata</h3>
|
||||
<ul>
|
||||
@@ -6,3 +7,4 @@
|
||||
% endfor
|
||||
</ul>
|
||||
</section>
|
||||
% endif
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<%include file="metadata-edit.html" />
|
||||
<div class="content">
|
||||
<section class="modules">
|
||||
<ol>
|
||||
|
||||
@@ -9,6 +9,7 @@ from xmodule.x_module import XModule
|
||||
from xmodule.progress import Progress
|
||||
from xmodule.exceptions import NotFoundError
|
||||
from pkg_resources import resource_string
|
||||
from .editing_module import EditingDescriptor
|
||||
|
||||
log = logging.getLogger("mitx.common.lib.seq_module")
|
||||
|
||||
@@ -95,7 +96,8 @@ class SequenceModule(XModule):
|
||||
'element_id': self.location.html_id(),
|
||||
'item_id': self.id,
|
||||
'position': self.position,
|
||||
'tag': self.location.category}
|
||||
'tag': self.location.category
|
||||
}
|
||||
|
||||
self.content = self.system.render_template('seq_module.html', params)
|
||||
self.rendered = True
|
||||
@@ -110,7 +112,7 @@ class SequenceModule(XModule):
|
||||
return new_class
|
||||
|
||||
|
||||
class SequenceDescriptor(MakoModuleDescriptor, XmlDescriptor):
|
||||
class SequenceDescriptor(EditingDescriptor, XmlDescriptor):
|
||||
mako_template = 'widgets/sequence-edit.html'
|
||||
module_class = SequenceModule
|
||||
|
||||
|
||||
Reference in New Issue
Block a user