Commit a7b7fd52 by Chris Dodge

Support editing of metadata on Sequences

parent 1cd81a2a
% 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")
......@@ -94,7 +95,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
......@@ -109,7 +111,7 @@ class SequenceModule(XModule):
return new_class
class SequenceDescriptor(MakoModuleDescriptor, XmlDescriptor):
class SequenceDescriptor(EditingDescriptor, XmlDescriptor):
mako_template = 'widgets/sequence-edit.html'
module_class = SequenceModule
......
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