-
Notifications
You must be signed in to change notification settings - Fork 0
/
materializeLayout.html
344 lines (310 loc) · 10.7 KB
/
materializeLayout.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
<template name="orionMaterializeLayout_XP">
<link href="/iconfont/material-icons.css" rel="stylesheet">
<!-- <script src="https://cdn.polyfill.io/v1/polyfill.min.js"></script>-->
{{# if dictionaryReady }}
{{#if currentUser}}
<div class="white red-text center z-depth-3" style="z-index:1000">
{{>connectionBanner}}
</div>
<!--COLOR DE EL CUERPO -->
<div class="orion-materialize-admin {{colorBody}}" style="background:url({{colorBody}})">
<div class="sidebar right">
{{# if dictionaryReady }} {{> orionMaterializeSidebar_XP }} {{/ if }}
</div>
<main class="admin-content">
{{# if dictionaryReady }} {{> yield }} {{/ if }}
<br> <br>
</main>
<!-- COLOR DEL FOOTER -->
<footer class="page-footer {{colorFooter}}">
<div class="footer-copyright center">
<div class="container thin">
{{> version_Template}}
</div>
</div>
</footer>
</div>
<style type="text/css">
body,html {
overflow-x: hidden!important;
background-color: #f9f9f9;
}
.label-count {
position: absolute;
top: 2px;
right: 4px;
font-size: 10px;
line-height: 15px;
background-color: #000;
padding: 0 2px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
border-radius: 3px;
}
::-webkit-scrollbar {
width: 30px;
}
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
-webkit-border-radius: 10px;
border-radius: 10px;
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 10px;
border-radius: 10px;
background: rgba(0,0,255,0.3);
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgba(0,0,255,0.3);
}
</style>
{{else}}
{{ gotoLogin }}
{{/ if}}
{{/ if}}
</template>
<template name="orionMaterializeOutAdminLayout_XP">
<div class="container orion-out-admin">
<div class="row">
<div class="col s12 m8 l6 offset-m2 offset-l3 push-m2 push-l3">
<div class="move">
<div class="card-panel elLogin">
{{> yield }}
</div>
</div>
</div>
</div>
</div>
<style type="text/css">
html:before {
content: "";
position: fixed;
display: block;
/* background-image: url('/img/imagen_inicio.jpg'); */
width: 100%;
height: 100%;
-webkit-filter: blur(3px);
webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.elLogin {
-transition: box-shadow .25s;
padding: 20px;
margin: 0.5rem 0 1rem 0;
border-radius: 10px;
background-color: rgba(255, 255, 255, 1);
color: black;
}
.move {
position: absolute;
width: 100%;
top: 6.8rem;
left: -17.2rem;
}
.logoAutomatiso {
position: absolute;
right: 6%;
top: 5%;
}
.logoVangent {
position: absolute;
right: 3%;
top: 3%;
}
</style>
</template>
<template name="orionMaterializeContentContainer_XP">
<div class="materialize-content-container">
{{> yield }}
</div>
</template>
<template name="orionMaterializeButtonsContainer_XP">
<div class="materialize-buttons-container">
{{> yield }}
</div>
</template>
<template name="orionMaterializeHeaderContainer_XP">
{{> sAlert}}
{{# with getAdminLink 'myAccount' }}
<ul id="navbar-user-dropdown" class="dropdown-content">
<li>
<span class="grey-text text-darken-1">
{{ title }}
</span>
</li>
<li>
<a href="/admin/my-account" class="grey-text text-darken-4 flow-text">Mi Cuenta</a>
</li>
<!-- {{# each childs }} -->
{{#if IngresoConCorreo}}
<li> <a href="/admin/my-account/change-password" class="grey-text text-darken-4 flow-text">Cambiar Contraseña</a> </li>
{{/if}}
<li class="divider black"></li>
<li>
<a href="/" class="grey-text text-darken-4 logout">{{ i18n 'global.logout' }}</a>
</li>
</ul>
{{/ with }}
<!-- COLOR DEL HEADER -->
<div class="{{ options 'materialize.headerColor' colorHeader }} header-container z-depth-1">
<nav class="{{ options 'materialize.headerColor' colorHeader }}">
<div class="nav-wrapper">
<ul class="left blue light-blue-3">
<li>
<a href="#" data-activates="nav-mobile" class="mdl-tooltip mdl-tooltip--top button-collapse" title="Menú">
<i class="material-icons">menu</i>
</a>
</li>
</ul>
<ul class="left">
<li>
<img src="{{logo}}" align="center" style="height:70px; width:auto" alt="Logo de la compañía">
</li>
</ul>
<ul class="right">
{{# if userHasPermission 'collections.notificaciones.index' }}
<li>
<a href="/admin/notificaciones" data-tool="Notificaciones" class="tooltip animate right {{getClassNotificacionesNoLeidas}}" style="border-radius:10px 10px 10px 10px">
<div class="row" style="padding:0px;margin:0px;">
<div class="col"><i class="material-icons small {{GetColorIconsHeader}}">notifications_active</i></div>
{{# if hayNotificacionesNoLeidas}}
<div class="col" style="vertical-align:top">{{getNotificacionesNoLeidas}}</div>
{{/ if}}
</div>
</a>
</li>
{{/ if}}
{{# if userHasPermission 'ajustes_template' }}
<li>
<a href="/admin/principal/ajustes" data-tool="Ajustes" class="tooltip animate right" style="border-radius:10px 10px 10px 10px">
<i class="material-icons {{GetColorIconsHeader}}">build</i>
</a>
</li>
{{/ if}}
<li>
<a class="dropdown-button user-links-activator tooltip animate left" href="#" data-tool="Mi Cuenta" data-activates="navbar-user-dropdown" style="border-radius:10px 10px 10px 10px">
<div class="row" style="padding:0px;margin:0px;">
<!-- <div class="col" style="padding:0px;margin:0px;">
<img class="circle responsive-img" style="height:auto; width:80px" src="{{ImgUser}}">
</div> -->
<div class="col {{GetColorIconsHeader}}" style="padding:0px;margin:0px;">
<i class="material-icons">enhanced_encryption</i>
<!-- {{# with getAdminLink 'myAccount' }} {{title}} {{/ with}} -->
</div>
</div>
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- COLOR DE LA BARRA DE TITULO -->
<div class="white-text {{colorTitle}} z-depth-1" style="padding : 5px">
<h6 class="flow-text">
{{> yield }}
</h6>
</div>
<script>
$(".button-collapse").sideNav();
</script>
</template>
<template name="orionMaterializeTabs_XP">
<div class="materialize-tabs-container {{ options 'materialize.headerColor' 'red' }}">
<ul class="tabs orion-materialize-tabs {{ options 'materialize.headerColor' 'red' }}">
{{# each items }}
<li class="tab col red">
<a class="{{ class }}" href="#">{{ title }}</a>
</li>
{{/ each }}
</ul>
</div>
<br>
</template>
<!-- SIDEBAR -->
<template name="orionMaterializeSidebar_XP">
<header class="materialize-sidebar">
<!-- COLOR DE LA ZONA DONDE VA EL ICONO DE AUTOMATISO -->
<ul id="nav-mobile" class="side-nav left fixed {{color}} no-padding" style="width:245px">
<li class="sidebar-brand" style="padding:5px 5px 0px 5px;">
<div class="tiny card {{color}} hoverable ">
<div class="card-content {{color}} center white-text" >
<img src="{{logo}}" align="center" style="vertical-align:middle;max-width: 100%;" height="100px" width="auto" alt="AutomatISO">
</div>
</div>
</li>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
{{# each adminLinks }} {{> orionMaterializeSidebarLink_XP }} {{/ each }}
</ul>
</header>
<script>
$('.toggle').on('click', function() {
$('.sidebar').toggleClass("sidebar-collapsed");
});
</script>
</template>
<template name="orionMaterializeSidebarLink_XP">
{{# if childs }}
<li class="no-padding">
<!-- COLOR DE LA PARTE DE PRINCIPAL -->
<a class="mytitle collapsible-header z-depth-1 {{color}} white-text" href="{{ RouterLayerPathFor routeName }}">
<i class="material-icons tiny left white-text">menu</i>
<a class="white-text bold" style="line-height:44px">Menú Principal</a>
</a>
</li>
<div class="z-depth-2 blue no-padding ">
<ul class="child-links hoverable left">
{{# each childs }}
{{> orionMaterializeSidebarLink_XP }}
{{/ each }}
</ul>
</div>
{{ else }}
<li class="no-padding {{ RouterLayerIsActiveRoutePartial activeRouteRegex }}" style="width:245px">
<!-- COLOR DE LA LISTA IZQUIERDA colecciones-->
<a href="{{ RouterLayerPathFor routeName }}" class="mytitle waves-effect truncate z-depth-1 {{colorColecciones}} {{colorTextoColecciones}} text-flow">
<div class="flow-text" style="float:left; font-size:18px">{{title}} </div>
<div style="float:right">
<i class="Tiny material-icons">chevron_right</i>
</div>
</a>
</li>
{{/ if }}
</template>
<template name="orionMaterializeLogin_XP">
<div class="container" style="border-radius:10px 10px 10px 10px;">
{{ #if AccessWithFace}}
{{#if PersonFound}}
<div class="row center-align">
<!-- <img class="responsive-img" src="{{img}}" align="center" style="vertical-align:middle;max-width:40%" height="50%" width="auto" alt="Sigpack"><br><br> -->
<a class="waves-effect waves-light btn-large green" align="center" id="Ingresar">
<i class="material-icons right">fingerprint</i>
Ingresar{{clean}}</a><br><br>
<!-- <span class="blue-text">{{> version_Template}}</span> -->
</div>
{{else}}
<!-- <img src="/img/logo_mbes.png" align="center" style="vertical-align:middle;" height="60px" width="auto" alt="Sigpack"> -->
{{> atForm }}
<!-- <span class="blue-text">{{> version_Template}}</span> -->
{{/if}}
{{else}}
<!-- <img src="/img/logo_mbes.png" align="center" style="vertical-align:middle;" height="60px" width="auto" alt="Sigpack"> -->
{{> atForm }}
<!-- <span class="blue-text">{{> version_Template}}</span> -->
{{/if}}
</div>
</template>
<template name="version_Template">
Versión 1.3 - © {{anio}} Sigpack
</template>
<!--template name="loading">
Loading.....
</template-->