Commit 91020e82 by Lyla Fischer

basic templates for video, html, discussion, and sequential

parent 8f8f2976
......@@ -30,3 +30,4 @@ class DiscussionModule(XModule):
class DiscussionDescriptor(RawDescriptor):
module_class = DiscussionModule
template_dir_name = "discussion"
......@@ -33,6 +33,7 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor):
mako_template = "widgets/html-edit.html"
module_class = HtmlModule
filename_extension = "xml"
template_dir_name = "html"
# VS[compat] TODO (cpennington): Delete this method once all fall 2012 course
# are being edited in the cms
......
......@@ -118,7 +118,7 @@ class SequenceDescriptor(MakoModuleDescriptor, XmlDescriptor):
stores_state = True # For remembering where in the sequence the student is
template_dir_name = 'sequential'
template_dir_name = 'sequence'
@classmethod
def definition_from_xml(cls, xml_object, system):
......
---
metadata:
display_name: Discussion Tag
data: |
<discussion for="Topic-Level Student-Visible Label" id="6002x_group_discussion_by_this" discussion_category="Week 1" />
children: []
---
metadata:
display_name: Announcement
data: |
<ol>
<li>
<h2> September 21 </h2>
<section class='update-description'>
<section class='primary'>
<p> Words of encouragement! This is a short note that most students will read. </p>
<p class='author'>&mdash; Anant Agarwal (6.002x Principle Instructor)</p>
</section>
<p><h3>Primary versus Secondary Updates:</h3> Unfortunately, the internet throws a lot of text at students, and they
do not read everything that they are given. However, many students <em>do</em> read all that they are
given, and so detailed explainations in this section will benefit the most concientious.
Any essential information should be extremely quickly summarized in the primary section for skimmers.</p>
<p><h3>Star Forum Poster</h3>
Students appriciate knowing that the course staff is reading what they post, and one of several ways
that you can do this is by acknowledging the start posters in your announcements.
</p>
</section>
</li>
</ol>
children: []
<h1>Heading of document</h1>
<h2>First subheading</h2>
<p>This is a paragraph. It will take care of line breaks for you.</p><p>HTML only parses the location
of tags for inserting line breaks into your doc, not
line
breaks
you
add
yourself.
</p>
<h2>Links</h2>
<p>You can refer to other parts of the internet with a <a href="http://www.wikipedia.org/"> link</a>, to other parts of your course by prepending your link with <a href="/course/Week_0">/course/</a></p>
<p>Now a list:</p>
<ul>
<li>An item</li>
<li>Another item</li>
<li>And yet another</li>
</ul>
<p>This list has an ordering </p>
<ol>
<li>An item</li>
<li>Another item</li>
<li>Yet another item</li>
</ol>
<p> Note, we have a lot of standard edX styles, so please try to avoid any custom styling, and make sure that you make a note of any custom styling that you do yourself so that we can incorporate it into
tools that other people can use. </p>
\ No newline at end of file
......@@ -3,4 +3,4 @@ metadata:
display_name: Sequence with Video
data: ''
children:
- 'i4x://edx/templates/video/Empty'
- 'i4x://edx/templates/video/default'
---
metadata:
display_name: edX Intro
data: |
<video youtube="0.75:JMD_ifUUfsU,1.0:OEoXaMPEzfM,1.25:AKqURZnYqpk,1.50:DYpADpL7jAY"/>
children: []
......@@ -84,3 +84,4 @@ class VideoDescriptor(RawDescriptor):
module_class = VideoModule
stores_state = True
template_dir_name = "video"
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