Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a7b7fd52
Commit
a7b7fd52
authored
Sep 21, 2012
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support editing of metadata on Sequences
parent
1cd81a2a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
cms/templates/widgets/metadata-edit.html
+2
-0
cms/templates/widgets/sequence-edit.html
+1
-0
common/lib/xmodule/xmodule/seq_module.py
+4
-2
No files found.
cms/templates/widgets/metadata-edit.html
View file @
a7b7fd52
% if metadata:
<section
class=
"metadata_edit"
>
<section
class=
"metadata_edit"
>
<h3>
Metadata
</h3>
<h3>
Metadata
</h3>
<ul>
<ul>
...
@@ -6,3 +7,4 @@
...
@@ -6,3 +7,4 @@
% endfor
% endfor
</ul>
</ul>
</section>
</section>
% endif
cms/templates/widgets/sequence-edit.html
View file @
a7b7fd52
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
</ul>
</ul>
</section>
</section>
<
%
include
file=
"metadata-edit.html"
/>
<div
class=
"content"
>
<div
class=
"content"
>
<section
class=
"modules"
>
<section
class=
"modules"
>
<ol>
<ol>
...
...
common/lib/xmodule/xmodule/seq_module.py
View file @
a7b7fd52
...
@@ -9,6 +9,7 @@ from xmodule.x_module import XModule
...
@@ -9,6 +9,7 @@ from xmodule.x_module import XModule
from
xmodule.progress
import
Progress
from
xmodule.progress
import
Progress
from
xmodule.exceptions
import
NotFoundError
from
xmodule.exceptions
import
NotFoundError
from
pkg_resources
import
resource_string
from
pkg_resources
import
resource_string
from
.editing_module
import
EditingDescriptor
log
=
logging
.
getLogger
(
"mitx.common.lib.seq_module"
)
log
=
logging
.
getLogger
(
"mitx.common.lib.seq_module"
)
...
@@ -94,7 +95,8 @@ class SequenceModule(XModule):
...
@@ -94,7 +95,8 @@ class SequenceModule(XModule):
'element_id'
:
self
.
location
.
html_id
(),
'element_id'
:
self
.
location
.
html_id
(),
'item_id'
:
self
.
id
,
'item_id'
:
self
.
id
,
'position'
:
self
.
position
,
'position'
:
self
.
position
,
'tag'
:
self
.
location
.
category
}
'tag'
:
self
.
location
.
category
}
self
.
content
=
self
.
system
.
render_template
(
'seq_module.html'
,
params
)
self
.
content
=
self
.
system
.
render_template
(
'seq_module.html'
,
params
)
self
.
rendered
=
True
self
.
rendered
=
True
...
@@ -109,7 +111,7 @@ class SequenceModule(XModule):
...
@@ -109,7 +111,7 @@ class SequenceModule(XModule):
return
new_class
return
new_class
class
SequenceDescriptor
(
MakoModule
Descriptor
,
XmlDescriptor
):
class
SequenceDescriptor
(
Editing
Descriptor
,
XmlDescriptor
):
mako_template
=
'widgets/sequence-edit.html'
mako_template
=
'widgets/sequence-edit.html'
module_class
=
SequenceModule
module_class
=
SequenceModule
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment