checklists.html 2.53 KB
Newer Older
1
<%inherit file="base.html" />
2 3 4 5
<%!
  from django.core.urlresolvers import reverse
  from django.utils.translation import ugettext as _
%>
6
<%block name="title">Course Checklists</%block>
7
<%block name="bodyclass">is-signedin course view-checklists</%block>
8

cahrens committed
9
<%namespace name='static' file='static_content.html'/>
10 11 12 13 14 15 16 17 18

<%block name="header_extras">
% for template_name in ["checklist"]:
  <script type="text/template" id="${template_name}-tpl">
    <%static:include path="js/${template_name}.underscore" />
  </script>
% endfor
</%block>

cahrens committed
19 20
<%block name="jsextra">
<script type="text/javascript">
21 22
require(["domReady!", "jquery", "js/collections/checklist", "js/views/checklist"],
        function(doc, $, ChecklistCollection, ChecklistView) {
23 24
    var checklistCollection = new ChecklistCollection();
    checklistCollection.url = "${handler_url}";
25 26 27 28

    var editor = new ChecklistView({
        el: $('.course-checklists'),
        collection: checklistCollection
cahrens committed
29
    });
30 31
    checklistCollection.fetch({reset: true});
});
cahrens committed
32 33 34 35
</script>
</%block>


36 37
<%block name="content">
<div class="wrapper-mast wrapper">
38
  <header class="mast has-actions has-subtitle">
Brian Talbot committed
39
    <h1 class="page-header">
David Baumgold committed
40 41
      <small class="subtitle">${_("Tools")}</small>
      <span class="sr">&gt; </span>${_("Course Checklists")}
Brian Talbot committed
42
    </h1>
43
  </header>
44 45 46
</div>

<div class="wrapper-content wrapper">
47 48 49
  <section class="content">
    <article class="content-primary" role="main">
      <form id="course-checklists" class="course-checklists" method="post" action="">
David Baumgold committed
50
        <h2 class="title title-3 sr">${_("Current Checklists")}</h2>
51 52
      </form>
    </article>
cahrens committed
53

54 55
    <aside class="content-supplementary" role="complimentary">
      <div class="bit">
56
        <h3 class="title title-3">${_("What are course checklists?")}</h3>
Mark L. Chang committed
57
        <p>
58
          ${_("Course checklists are tools to help you understand and keep track of all the steps necessary to get your course ready for students.")}
Mark L. Chang committed
59 60
        </p>
        <p>
61
          ${_("Any changes you make to these checklists are saved automatically and are immediately visible to other course team members.")}
Mark L. Chang committed
62
        </p>
63
      </div>
cahrens committed
64

65
      <div class="bit">
Mark L. Chang committed
66
        <h3 class="title title-3">Studio checklists</h3>
cahrens committed
67
        <nav class="nav-page checklists-current">
68 69 70
          <ol>
            % for checklist in checklists:
            <li class="nav-item">
71
              <a rel="view" href="${'#course-checklist' + str(loop.index)}">${checklist['short_description']}</a>
72 73 74
            </li>
            % endfor
          </ol>
cahrens committed
75
        </nav>
76 77 78
      </div>
    </aside>
  </section>
79 80
</div>
</%block>