edit-tabs.html 2.96 KB
Newer Older
Chris Dodge committed
1
<%inherit file="base.html" />
2 3 4 5 6
<%namespace name='static' file='static_content.html'/>
<%!
  from django.utils.translation import ugettext as _
  from django.core.urlresolvers import reverse
%>
7
<%block name="title">Static Pages</%block>
8
<%block name="bodyclass">is-signedin course view-static-pages</%block>
Chris Dodge committed
9 10 11

<%block name="jsextra">
  <script type='text/javascript'>
cahrens committed
12 13 14 15 16 17
require(["js/models/explicit_url", "coffee/src/views/tabs"], function(TabsModel, TabsEditView) {
    var model = new TabsModel({
        id: "${course_locator}",
        explicit_url: "${course_locator.url_reverse('tabs')}"
    });

18
    new TabsEditView({
Chris Dodge committed
19
      el: $('.main-wrapper'),
cahrens committed
20
      model: model,
21
      mast: $('.wrapper-mast')
Chris Dodge committed
22
    });
23
});
Chris Dodge committed
24 25 26 27
  </script>
</%block>

<%block name="content">
28
<div class="wrapper-mast wrapper">
29
  <header class="mast has-actions has-subtitle">
Brian Talbot committed
30
    <h1 class="page-header">
David Baumgold committed
31 32
      <small class="subtitle">${_("Content")}</small>
      <span class="sr">&gt; </span>${_("Static Pages")}
Brian Talbot committed
33
    </h1>
34 35

    <nav class="nav-actions">
David Baumgold committed
36
      <h3 class="sr">${_("Page Actions")}</h3>
37 38
      <ul>
        <li class="nav-item">
David Baumgold committed
39
        <a href="#" class="button new-button new-tab"><i class="icon-plus"></i> ${_("New Page")}</a>
40 41 42 43 44 45
        </li>
      </ul>
    </nav>
  </header>
</div>

46 47
<div class="wrapper-content wrapper">
  <section class="content">
48
    <div class="introduction has-links">
49
      <p class="copy">${_("Use Static Pages to share a syllabus, a calendar, handouts, or other supplements to your courseware.")}</p>
50
      <p class="copy">${_("NOTE: all content on Static Pages will be visible to anyone who knows the URL, regardless of whether they are registered in the course or not.")}</p>
51 52 53
      <nav class="nav-introduction-supplementary">
        <ul>
          <li class="nav-item">
54
          <a rel="modal" href="#preview-lms-staticpages"><i class="icon-question-sign"></i>${_("What do static pages look like in my course?")}</a>
55 56 57
          </li>
        </ul>
      </nav>
58 59 60 61
    </div>
  </section>
</div>

Chris Dodge committed
62 63
<div class="main-wrapper">
  <div class="inner-wrapper">
64
    <article class="unit-body">
Brian Talbot committed
65

66 67
      <div class="tab-list">
        <ol class='components'>
68 69
          % for locator in components:
          <li class="component" data-locator="${locator}"/>
70
          % endfor
Brian Talbot committed
71

72
          <li class="new-component-item">
Brian Talbot committed
73

74
          </li>
Brian Talbot committed
75
        </ol>
76 77
      </div>
    </article>
Chris Dodge committed
78 79
  </div>
</div>
80 81

<div class="content-modal" id="preview-lms-staticpages">
82
  <h3 class="title">${_("Static Pages in Your Course")}</h3>
83
  <figure>
84 85
    <img src="${static.url("img/preview-lms-staticpages.png")}" alt="${_('Preview of Static Pages in your course')}" />
    <figcaption class="description">${_("The names of your Static Pages appear in your course's main navigation bar, along with Courseware, Course Info, Discussion, Wiki, and Progress.")}</figcaption>
86 87 88
  </figure>

  <a href="#" rel="view" class="action action-modal-close">
89
    <i class="icon-remove-sign"></i>
David Baumgold committed
90
    <span class="label">${_("close modal")}</span>
91 92
  </a>
</div>
Brian Talbot committed
93
</%block>