-
Notifications
You must be signed in to change notification settings - Fork 41
/
main.pt
85 lines (70 loc) · 2.86 KB
/
main.pt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<metal:block define-macro="master">
<!DOCTYPE html>
<html tal:define="app_url request.application_url;
static request.static_url('deform:static/')">
<head>
<meta charset="utf-8"/>
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>
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>
</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> Deform 2 Demo</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>
</body>
</html>
</metal:block>