textbooks.html 2.79 KB
Newer Older
1
<%inherit file="base.html" />
2
<%def name="online_help_token()"><% return "textbooks" %></%def>
3
<%namespace name='static' file='static_content.html'/>
4 5 6 7
<%!
import json
from django.utils.translation import ugettext as _
%>
8

David Baumgold committed
9
<%block name="title">${_("Textbooks")}</%block>
10
<%block name="bodyclass">is-signedin course view-textbooks</%block>
11

12
<%block name="header_extras">
13
% for template_name in ["edit-textbook", "show-textbook", "edit-chapter", "no-textbooks", "basic-modal", "modal-button", "upload-dialog"]:
14 15
  <script type="text/template" id="${template_name}-tpl">
    <%static:include path="js/${template_name}.underscore" />
16
  </script>
17
% endfor
18 19 20 21
</%block>

<%block name="jsextra">
<script type="text/javascript">
22 23
window.CMS = window.CMS || {};
CMS.URL = CMS.URL || {};
24
CMS.URL.UPLOAD_ASSET = "${upload_asset_url}"
25
CMS.URL.TEXTBOOKS = "${textbook_url}"
26
CMS.URL.LMS_BASE = "${settings.LMS_BASE}"
27 28
</script>
</%block>
29 30 31 32 33
<%block name="requirejs">
    require(["js/factories/textbooks"], function(TextbooksFactory) {
        TextbooksFactory(${json.dumps(textbooks)});
    });
</%block>
34

35 36 37 38
<%block name="content">
  <div class="wrapper-mast wrapper">
    <header class="mast has-actions has-subtitle">
      <h1 class="page-header">
39
        <small class="subtitle">${_("Content")}</small>
David Baumgold committed
40
        <span class="sr">&gt; </span>${_("Textbooks")}
41
      </h1>
42

43
      <nav class="nav-actions" aria-label="${_('Page Actions')}">
David Baumgold committed
44
        <h3 class="sr">${_("Page Actions")}</h3>
45 46
        <ul>
          <li class="nav-item">
47
            <a href="#" class="button new-button"><i class="icon fa fa-plus"></i> ${_("New Textbook")}</a>
48 49 50
          </li>
        </ul>
      </nav>
51 52 53
    </header>
  </div>

54
  <div class="wrapper-content wrapper">
55
    <section class="content">
56 57 58
      <article class="content-primary" role="main">

      </article>
59
      <aside class="content-supplementary" role="complementary">
60
        <div class="bit">
61 62
          <h3 class="title-3">${_("Why should I break my textbook into chapters?")}</h3>
          <p>${_("Breaking your textbook into multiple chapters reduces loading times for students, especially those with slow Internet connections. Breaking up textbooks into chapters can also help students more easily find topic-based information.")}</p>
63
        </div>
64
        <div class="bit">
65
          <h3 class="title-3">${_("What if my book isn't divided into chapters?")}</h3>
66
          <p>${_("If your textbook doesn't have individual chapters, you can upload the entire text as a single chapter and enter a name of your choice in the Chapter Name field.")}</p>
67 68 69
        </div>

        <div class="bit external-help">
70
          <a href="${get_online_help_info(online_help_token())['doc_url']}" target="_blank" class="button external-help-button">${_("Learn more about textbooks")}</a>
71
        </div>
72
      </aside>
73
    </section>
74 75
  </div>
</%block>