114 lines
3.9 KiB
HTML
114 lines
3.9 KiB
HTML
<%inherit file="base.html" />
|
|
<%!
|
|
from django.core.urlresolvers import reverse
|
|
from django.utils.translation import ugettext as _
|
|
%>
|
|
<%block name="title">${_("Container")}</%block>
|
|
<%block name="bodyclass">is-signedin course uploads view-container</%block>
|
|
|
|
<%namespace name='static' file='static_content.html'/>
|
|
<%namespace name="units" file="widgets/units.html" />
|
|
|
|
<%block name="header_extras">
|
|
% for template_name in [ ]:
|
|
<script type="text/template" id="${template_name}-tpl">
|
|
<%static:include path="js/${template_name}.underscore" />
|
|
</script>
|
|
% endfor
|
|
</%block>
|
|
|
|
<%block name="jsextra">
|
|
<script type='text/javascript'>
|
|
require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit", "jquery.ui"],
|
|
function(doc, $, ModuleModel, UnitEditView, ui) {
|
|
var model;
|
|
window.unit_location_analytics = '${unit_locator}';
|
|
|
|
// tabs
|
|
$('.tab-group').tabs();
|
|
|
|
model = new ModuleModel({
|
|
id: '${unit_locator}',
|
|
state: '${unit_state}'
|
|
});
|
|
new UnitEditView({
|
|
el: $('.wrapper'),
|
|
model: model
|
|
});
|
|
|
|
$('.new-component-template').each(function(){
|
|
$emptyEditor = $(this).find('.empty');
|
|
$(this).prepend($emptyEditor);
|
|
});
|
|
});
|
|
</script>
|
|
|
|
</%block>
|
|
|
|
<%block name="content">
|
|
|
|
|
|
<div class="wrapper-mast wrapper">
|
|
<header class="mast has-actions has-navigation">
|
|
<h1 class="page-header">
|
|
<small class="navigation navigation-parents">
|
|
<a href="#" class="navigation-link navigation-parent-previous">${_("Parent of Unit Page")}</a>
|
|
<a href="#" class="navigation-link navigation-parent">${_("Unit Page Super Long Title Name Goes Here Yeah Whats Up Parent")}</a>
|
|
</small>
|
|
<span class="sr">> </span>
|
|
<span class="container-page-name">${_("Container")}</span>
|
|
</h1>
|
|
|
|
<nav class="nav-actions">
|
|
<h3 class="sr">${_("Page Actions")}</h3>
|
|
<ul>
|
|
<li class="nav-item">
|
|
<a href="#" class="button upload-button new-button"><i class="icon-plus"></i> ${_("Upload New File")}</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
</div>
|
|
|
|
<div class="wrapper-content wrapper">
|
|
<section class="content-area">
|
|
<article class="content-primary window">
|
|
<p class="unit-name-input"><label for="unit-display-name-input">${_("Display Name:")}</label><input type="text" value="${unit.display_name_with_default | h}" id="unit-display-name-input" class="unit-display-name-input" /></p>
|
|
<ol class="components">
|
|
% for locator in components:
|
|
<li class="component" data-locator="${locator}"/>
|
|
% endfor
|
|
</ol>
|
|
</article>
|
|
|
|
<aside class="content-supplementary" role="complimentary">
|
|
<div class="bit">
|
|
<h3 class="title-3">${_("What can I do on this page?")}</h3>
|
|
<ul class="list-details">
|
|
<li class="item-detail">${_("Not much since this is read-only! TODO: need some real doc here...")}</li>
|
|
</ul>
|
|
</div>
|
|
</aside>
|
|
</section>
|
|
</div>
|
|
|
|
</%block>
|
|
|
|
<%block name="view_alerts">
|
|
<!-- alert: save confirmed with close -->
|
|
<div class="wrapper wrapper-alert wrapper-alert-confirmation" role="status">
|
|
<div class="alert confirmation">
|
|
<i class="icon-ok"></i>
|
|
|
|
<div class="copy">
|
|
<h2 class="title title-3">${_('Your file has been deleted.')}</h2>
|
|
</div>
|
|
|
|
<a href="" rel="view" class="action action-alert-close">
|
|
<i class="icon-remove-sign"></i>
|
|
<span class="label">${_('close alert')}</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</%block>
|