checklists.html 2.61 KB
Newer Older
1
<%inherit file="base.html" />
Mark Hoeber committed
2
<%def name="online_help_token()"><% return "checklist" %></%def>
3 4 5 6
<%!
  from django.core.urlresolvers import reverse
  from django.utils.translation import ugettext as _
%>
7
<%block name="title">${_("Course Checklists")}</%block>
8
<%block name="bodyclass">is-signedin course view-checklists</%block>
9

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

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

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


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

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

55 56
    <aside class="content-supplementary" role="complimentary">
      <div class="bit">
57
        <h3 class="title title-3">${_("What are course checklists?")}</h3>
Mark L. Chang committed
58
        <p>
59
          ${_("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
60 61
        </p>
        <p>
62
          ${_("Any changes you make to these checklists are saved automatically and are immediately visible to other course team members.")}
Mark L. Chang committed
63
        </p>
64
      </div>
cahrens committed
65

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