This repository has been archived by the owner on May 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
layout_shop.html
383 lines (344 loc) · 15.2 KB
/
layout_shop.html
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{=response.title or request.application}}</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css')}}"/>
<!-- web2py bootstrap -->
<!-- <link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap3.css')}}"/> -->
<!-- Font Awesome -->
<link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/bower_components/font-awesome/css/font-awesome.min.css')}}"/>
<!-- Ionicons -->
<link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/bower_components/Ionicons/css/ionicons.min.css')}}">
<!-- Bootstrap time Picker -->
<!-- <link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/plugins/timepicker/bootstrap-timepicker.min.css')}}"> -->
<!-- Bootstrap date Picker -->
<link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css')}}">
<!-- Theme style -->
<link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/dist/css/AdminLTE.min.css')}}"/>
<!-- AdminLTE Skins. We have chosen the skin-blue for this starter
page. However, you can choose any other skin. Make sure you
apply the skin class to the body tag so the changes take effect.
-->
<link rel="stylesheet" href="{{=URL('static','plugin_AdminLTE/dist/css/skins/skin-black-light.min.css')}}"/>
<!-- OpenStudio -->
<link rel="stylesheet" href="{{=URL('static','plugin_os-css/openstudio_shop.css')}}"/>
<!-- All JavaScript at the bottom, except for Modernizr which enables
HTML5 elements & feature detects -->
<!-- <script src="{{=URL('static','js/modernizr-2.8.3.min.js')}}"></script> -->
<!--[if lt IE 9]>
<script src="{{=URL('static','js/respond-1.4.2.min.js')}}"></script>
<![endif]-->
<!-- Favicons -->
<!-- <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon"> -->
<link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}">
<!-- web2py_ajax -->
{{include 'web2py_ajax.html'}} <!-- this includes jquery.js, calendar.js/.css and web2py.js -->
<!-- OpenStudio time format as HH:MM -->
<script>jQuery.timeEntry.setDefaults({showSeconds: false});</script>
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="{{=URL('static','images/apple-touch-icon.png')}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{=URL('static','images/favicon-32x32.png')}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{=URL('static','images/favicon-16x16.png')}}">
<link rel="manifest" href="{{=URL('static','images/manifest.json')}}">
<link rel="mask-icon" href="{{=URL('static','images/safari-pinned-tab.svg')}}" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
{{block head}}{{end}}
{{
# using sidebars need to know what sidebar you want to use
mc0 = 'col-md-12'
mc1 = 'col-md-10'
mc2 = 'col-md-6'
left_sidebar_enabled = globals().get('left_sidebar_enabled', False)
right_sidebar_enabled = globals().get('right_sidebar_enabled', False)
middle_column = {0: mc0, 1: mc1, 2: mc2}[
(left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]
}}
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS | skin-blue |
| | skin-black |
| | skin-purple |
| | skin-yellow |
| | skin-red |
| | skin-green |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed |
| | layout-boxed |
| | layout-top-nav |
| | sidebar-collapse |
| | sidebar-mini |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-black-light sidebar-mini">
<div class="wrapper">
<!-- Main Header -->
<header class="main-header">
<!-- Logo -->
<a href="{{=response.logo_url}}" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b></b></span>
<!-- logo for regular state and mobile devices -->
{{=response.logo or ''}}
</a>
<!-- Header Navbar -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle hidden-sm hidden-md hidden-lg" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!--
<li>
{{=response.menu_shopping_cart}}
</li>
-->
<!-- User Account Menu -->
{{ if auth.user: }}
<li class="dropdown user user-menu">
<!-- Menu Toggle Button -->
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<!-- The user image in the navbar-->
<!-- <img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image"> -->
<!-- hidden-xs hides the username on small devices so only the image appears. -->
<span>
{{ =auth.user.first_name }}
</span>
</a>
<ul class="dropdown-menu">
<!-- The user image in the menu -->
<li class="user-header">
<img src="{{=URL('static', 'images/person.png')}}" class="img-circle" alt="User Image">
<p>
{{ =auth.user.display_name }}
<small></small>
</p>
</li>
<!-- Menu Body -->
<li class="user-body">
<div class="row">
<div class="col-xs-12 text-center">
<a href="{{=URL('default', 'user', args='change_password', vars={'_next':'/profile/index'})}}"><i class="fa fa-unlock-alt"></i> {{=T('Change password')}}</a>
</div>
</div>
<!-- /.row -->
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="{{=URL('profile', 'index')}}" class="btn btn-default btn-flat">{{=T('Account')}}</a>
</div>
<div class="pull-right">
<a href="{{=URL('default', 'user', args='logout')}}" class="btn btn-default btn-flat">{{=T('Sign out')}}</a>
</div>
</li>
</ul>
{{ else: }}
<li>{{ =A(T('Sign in'), _href=URL('user', 'login')) }}</li>
{{pass}}
</li>
<!-- Control Sidebar Toggle Button
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
-->
<!-- Log out button
{{ if auth.user: }}
<li>
<a href="{{=URL('default', 'user', args='logout')}}" title="{{=T('Log out')}}"><i class="fa fa-power-off"></i></a>
</li>
{{ pass }} -->
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- search form (Optional) -->
<!--
{{ if response.search_available: }}
<form action="#" method="post" class="sidebar-form">
<div class="input-group">
<input type="text" name="q" id="sidebar-search" class="form-control" placeholder="{{=T('Search') + '...'}}" value="{{=response.q}}" autocomplete="off">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
{{ pass }}
-->
<!-- /.search form -->
<!-- Sidebar Menu -->
{{ if auth.user: }}
<ul class="sidebar-menu">
<li class="header">{{=T("Account")}}</li>
</ul>
{{=LTE_MENU(response.menu_profile, _class='sidebar-menu', li_class='treeview',ul_class='treeview-menu')}}
{{ pass }}
<ul class="sidebar-menu">
<li class="header">{{=T("Shop")}}</li>
</ul>
<!-- Optionally, you can add icons to the links -->
{{=LTE_MENU(response.menu_shop, _class='sidebar-menu', li_class='treeview',ul_class='treeview-menu')}}
<ul class="sidebar-menu">
<li class="header">{{=T("About")}}</li>
</ul>
{{=LTE_MENU(response.menu_shop_about, _class='sidebar-menu', li_class='treeview',ul_class='treeview-menu')}}
{{ if response.menu_links: }}
<ul class="sidebar-menu">
<li class="header">{{=T("Links")}}</li>
</ul>
{{=LTE_MENU(response.menu_links, _class='sidebar-menu', li_class='treeview',ul_class='treeview-menu')}}
{{ pass }}
<ul class="sidebar-menu">
<li id="to_top" class="header clickable">{{=T("Where did the menu go?")}}</li>
</ul>
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class='pull-right'>
{{block header}}
{{end}}
</div>
<h1>
{{=response.title}}
<small>{{=response.subtitle or ''}}</small>
</h1>
<!--
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
<li class="active">Here</li>
</ol> -->
</section>
<!-- Main content -->
<section class="content">
{{ if response.flash: }}
<div class="alert alert-info alert-dismissible">
{{=response.flash or ''}}
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
</div>
{{ pass }}
<!-- Your Page Content Here -->
{{block center}}
{{include}}
{{end}}
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- Main Footer -->
<footer class="main-footer">
<!-- To the right -->
<div class="pull-right hidden-xs">
</div>
<!-- Default to the left -->
<strong>Peacefully powered by <a href="http://www.openstudioproject.com/" target="_blank">OpenStudio</a></strong>. All rights reserved © {{=request.now.year}}.
</footer>
</div>
<!-- ./wrapper -->
<!-- REQUIRED JS SCRIPTS -->
<!-- TinyMCE -->
<script src="{{=URL('static','plugin_tinymce/tinymce.min.js')}}"></script>
<script src="{{=URL('static','plugin_os-js/tinymce_init.js')}}"></script>
<!-- jQuery 3 -->
<script src="{{=URL('static','plugin_AdminLTE/bower_components/jquery/dist/jquery.min.js')}}"></script>
<!-- Bootstrap 3.3.7 -->
<script src="{{=URL('static','plugin_AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js')}}"></script>
<!-- <script src="{{=URL('static','js/web2py-bootstrap3.js')}}"></script> -->
<!-- InputMask -->
<script src="{{=URL('static','plugin_AdminLTE/bower_components/inputmask/dist/inputmask/inputmask.js')}}"></script>
<script src="{{=URL('static','plugin_AdminLTE/bower_components/inputmask/dist/inputmask/inputmask.extensions.js')}}"></script>
<script src="{{=URL('static','plugin_AdminLTE/bower_components/inputmask/dist/inputmask/inputmask.date.extensions.js')}}"></script>
<script src="{{=URL('static','plugin_AdminLTE/bower_components/inputmask/dist/inputmask/jquery.inputmask.js')}}"></script>
<!-- Bootstrap time Picker -->
<!-- <script src="{{=URL('static','plugin_AdminLTE/plugins/timepicker/bootstrap-timepicker.min.js')}}"></script> -->
<!-- Bootstrap date Picker -->
<script src="{{=URL('static','plugin_AdminLTE/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js')}}"></script>
<!-- AdminLTE App -->
<script src="{{=URL('static','plugin_AdminLTE/dist/js/adminlte.min.js')}}"></script>
<!-- web2py javascript -->
<!-- <script src="{{=URL('static','js/web2py-bootstrap3.js')}}"></script> -->
<!-- Optionally, you can add Slimscroll and FastClick plugins.
Both of these plugins are recommended to enhance the
user experience. Slimscroll is required when using the
fixed layout. -->
<script src="{{=URL('static','plugin_AdminLTE/bower_components/jquery-slimscroll/jquery.slimscroll.min.js')}}"></script>
<!-- Add js file to add classes to form inputs in LOADed components -->
<script src="{{=URL('static', 'plugin_os-js/os_forms.js')}}"></script>
<!-- Add js file for general OpenStudio js -->
<script src="{{=URL('static', 'plugin_os-js/os.js')}}"></script>
<!-- Google Analytics -->
{{ if response.google_analytics_id: }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{{=response.google_analytics_id}}', 'auto');
ga('send', 'pageview');
</script>
{{ pass }}
<script>
$(document).ready(function() {
activate_datemask();
activate_timemask();
});
function activate_datemask() {
//Datemask
$('.date-inputmask').inputmask('{{=DATE_MASK}}', { 'placeholder': '{{=DATE_MASK}}' });
}
function activate_timemask() {
//Timemask HH:MM (h:s)
$('.time-inputmask').inputmask('hh:mm', { 'placeholder': 'hh:mm' });
}
// activate datepicker
var $doc = $(document);
$doc.on('click', 'input.datepicker', function () {
console.log('clicked');
var active = $(this).data('w2p_datepicker');
if (active === undefined) {
$(this).datepicker({
autoclose: true,
format: '{{=DATE_MASK}}',
clearBtn: true,
todayBtn: "linked"
});
$(this).data('w2p_datepicker', 1);
}
$(this).datepicker('show');
});
</script>
</body>
</html>