Permalink
Fetching contributors…
Cannot retrieve contributors at this time
94 lines (76 sloc) 3.17 KB
<metal:block define-macro="master">
<!DOCTYPE html>
<html tal:define="app_url request.application_url;
static request.static_url('deform:static/')"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="deformdemo">
<head>
<meta charset="utf-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title i18n:translate="">
Deform 2 Demo Site
</title>
<link rel="stylesheet"
href="${request.resource_url(request.root, 'pygments.css', route_name='deformdemo')}"
type="text/css"/>
<link rel="stylesheet"
href="${request.static_url('deform:static/css/form.css')}"
type="text/css"/>
<style type="text/css">
.linenodiv pre {
word-break: normal;
}
</style>
<!-- CSS -->
<link rel="stylesheet"
href="${request.static_url('deform:static/css/bootstrap.min.css')}"
type="text/css" media="screen" charset="utf-8"/>
<link rel="stylesheet"
href="${request.static_url('deform:static/css/form.css')}"
type="text/css"/>
<tal:block repeat="reqt css_links|[]">
<link rel="stylesheet" href="${request.static_url(reqt)}" type="text/css" />
</tal:block>
<!-- JavaScript -->
<script src="${request.static_url('deform:static/scripts/jquery-2.0.3.min.js')}"
type="text/javascript"></script>
<script src="${request.static_url('deform:static/scripts/bootstrap.min.js')}"
type="text/javascript"></script>
<tal:block repeat="reqt js_links|[]">
<script type="text/javascript" src="${request.static_url(reqt)}"></script>
</tal:block>
<script>
// This forces us to use JS date time picker polyfill so that our functional tests can run properly regardless of a browser
window.forceDateTimePolyfill = true;
</script>
<tal:slot metal:define-slot="head_end"></tal:slot>
</head>
<body id="public">
<div class="navbar navbar-default" role="navigation">
<div class="container">
<a class="navbar-brand" href="/"><span class="glyphicon glyphicon-info-sign"></span>
<span i18n:translate=""> Deform 2 Demo</span>
</a>
</div>
</div>
<div class="container">
<div class="row" style="margin-top: 10px">
<div class="col-3 col-lg-3 col-sm-3">
<div class="list-group">
<a href="${name}/"
tal:attributes="class python: name + '/' in request.url and 'list-group-item active' or 'list-group-item'"
tal:repeat="(title, name) demos">
${title}
</a>
</div>
</div>
<div class="col-9 col-lg-9 col-sm-9">
<span metal:define-slot="main"/>
</div>
</div>
</div>
<tal:slot metal:define-slot="body_end"></tal:slot>
</body>
</html>
</metal:block>