forked from NeonSwan/nexudus-spaces-default-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallowances.htm
358 lines (333 loc) · 15.3 KB
/
allowances.htm
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
{% extends master.master %}
{% block content %}
<style>
table tbody tr td { background-color: #f9f9f9; }
@media (max-width: 768px) {
.nav-tabs > li {
float:none;
}
.nav-tabs > li a {
border:1px solid #ddd !important;
}
}
</style>
<div id="wrapper">
<!-- CONTAINER -->
<div id="main" class="container">
<!-- BREADCRUMB -->
<ul class="breadcrumb">
<li><a href="{% Url PublicHome, Index %}">{% T Home %}</a> <span class="divider">/</span></li>
<li><a href="{% Url Profile, Index %}">{% T My account %}</a> <span class="divider">/</span></li>
<li class="active">{% T Allowances %}</li>
</ul>
<!-- END BREADCRUMB -->
<div class="row">
<!-- CONTENT -->
<section id="content" class="span12">
<div class="alert alert-info text-center">
{% if data.Coworker.Tariff != null %}
<h4>{% T Your are in the "{0}" price plan. || data.Coworker.Tariff.Name %}</h4>
{% assign renewDateFormated = data.Coworker.NextInvoice | Date: 'D' %}
{% T Your price plan is due for renewal on {0}. || renewDateFormated %}
{% else %}
<h4>{% T You are not in a price plan. %}</h4>
{% endif %}
</div>
<ul class="nav nav-tabs">
{% if data.Local.TariffTimePasses.size > 0 or data.Local.TariffExtraServices.size > 0 or data.Local.OtherTimePasses.size > 0 or data.Local.OtherExtraServices.size > 0 or data.Coworker.TotalRemainingBookingCredit > 0 %}
<li ><a href="#summary" data-toggle="tab">{% T Summary %}</a></li>
{% endif %}
{% if data.Local.TariffHasLimits or data.Coworker.TimePasses.size > 0 %}
<li><a href="#timepasses" data-toggle="tab">{% T Access to {0} || data.Business.Name %}</a></li>
{% endif %}
{% if data.Coworker.ExtraServices.size > 0 %}
<li><a href="#extraservices" data-toggle="tab">{% T Access to resources at {0} || data.Business.Name %}</a></li>
{% endif %}
</ul>
<div class="tab-content">
<div class="tab-pane active" id="summary">
{% if data.Local.TariffHasLimits == false and data.Coworker.TimePasses.size == 0 and data.Coworker.ExtraServices.size == 0 %}
<h5>
{% T You are not signed up for a price plan or your price plan doesn't include any allowances %}
</h5>
<hr/>
{% endif %}
{% if data.Local.TariffTimePasses.size > 0 or data.Local.TariffExtraServices.size > 0 %}
<table class="table">
<thead>
<tr>
<th class="span9">{% T Included in your Price Plan %}</th>
<th class="span2">{% T Qty. %}</th>
<th class="span1">
<p class="text-right">{% T Remaining %}</p>
</th>
</tr>
</thead>
<tbody>
<!-- TARIFF TIME PASSES -->
{% for tp in data.Local.TariffTimePasses %}
<tr>
<td>
{{ tp.TimePass.Name }}<br/><small>{{ tp.TimePass.Description }}</small>
</td>
<td>{{ tp.PassesIncluded }} / {% T tp.PassRenewalTime %}</td>
<td>
<p class="text-right">
{{ tp.Remaining }}
</p>
</td>
</tr>
{% endfor %}
<!-- TARIFF TIME EXTRA SERVICES -->
{% for xs in data.Local.TariffExtraServices %}
<tr>
<td>
{{ xs.ExtraService.Name }}<br/><small>{{ xs.ExtraService.Description }}</small>
</td>
<td>{{ xs.UsesIncluded }} / {% T xs.ServiceRenewalTime %}</td>
<td>
<p class="text-right">
{{ xs.Remaining }}
</p>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if data.Local.TariffProducts.size > 0 %}
<table class="table">
<thead>
<tr>
<th class="span11">{% T Price Plan add-ons %}</th>
<th class="span1">
<p class="text-right">
{% T Price %}
</p>
</th>
</tr>
</thead>
<tbody>
<!-- PRODUCTS -->
{% for p in data.Local.TariffProducts %}
<tr>
<td>
{{ p.Name }}<br/><small>{{ p.Description }}</small>
</td>
<td>
<p class="text-right">
{{ p.Currency.Code }} {{ p.Price | FormatDecimal format: '0.00' }}
</p>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if data.Local.OtherTimePasses.size > 0 or data.Local.OtherExtraServices.size > 0 or data.Coworker.TotalRemainingBookingCredit > 0 %}
<table class="table">
<thead>
<tr>
<th class="span11">{% T Other Allowances %}</th>
<th class="span1">
<p class="text-right">{% T Remaining %}</p>
</th>
</tr>
</thead>
<tbody>
<!-- OTHER TIME PASSES -->
{% for p in data.Local.OtherTimePasses %}
<tr>
<td>
{{ p.TimePass.Name }}<br/><small>{{ p.TimePass.Description }}</small>
</td>
<td>
<p class="text-right">
{{ p.Remaining }}
</p>
</td>
</tr>
{% endfor %}
<!-- OTHER EXTRA SERVICECS -->
{% for p in data.Local.OtherExtraServices %}
<tr>
<td>
{{ p.ExtraService.Name }}<br/><small>{{ p.ExtraService.Description }}</small>
</td>
<td>
<p class="text-right">
{{ p.Remaining }}
</p>
</td>
</tr>
{% endfor %}
{% if data.Coworker.TotalRemainingBookingCredit > 0 %}
<tr>
<td>
{{ data.Coworker.TotalRemainingBookingCredit | FormatDecimal format: '0.00' }} {% T Booking Credit %}
</td>
<td>
<p class="text-right">
{{ data.Business.Currency.Code }} {{ data.Coworker.TotalRemainingBookingCredit | FormatDecimal format: '0.00' }}
</p>
</td>
</tr>
{% endif %}
</tbody>
</table>
{% endif %}
<p class="pull-right">
<a class="btn btn-grey" href="{% Url Profile, Tariff %}">{% T Change your price plan %}</a>
<a class="btn btn-orange" href="{% Url Store, Products %}">{% T Buy Additional Services %}</a>
</p>
</div>
<!-- END SUMMARY TAB -->
{% if data.Local.TariffHasLimits or data.Coworker.TimePasses.size > 0 %}
<div class="tab-pane" id="timepasses">
{% if data.Coworker.Tariff.CheckinPricePlanLimit > 0 %}
<span>
{% T Used {0} check-ins out of {1} || data.Local.CheckinsPlan || data.Coworker.Tariff.CheckinPricePlanLimit }} %}
</span>
<div class="progress progress-striped">
<div class="bar" style="width: {{ data.Local.CheckinsLeftPlan }}%;"></div>
</div>
{% endif %}
{% if data.Coworker.Tariff.HoursPricePlanLimit > 0 %}
{% T Used {0} minutes out of {1} hours || data.Local.MinutesPlan || data.Coworker.Tariff.HoursPricePlanLimit }} %}
<div class="progress progress-striped">
<div class="bar" style="width: {{ data.Local.MinutesLeftPlan }}%;"></div>
</div>
{% endif %}
{% if data.Coworker.Tariff.CheckinWeekLimit > 0 %}
{% T Used {0} check-ins out of {1} this week || data.Local.CheckinsThisWeek || data.Coworker.Tariff.CheckinWeekLimit }} %}
<div class="progress progress-striped">
<div class="bar" style="width: {{ data.Local.CheckinsLeftWeek }}%;"></div>
</div>
{% endif %}
{% if data.Coworker.Tariff.HoursWeekLimit > 0 %}
{% T Used {0} minutes out of {1} hours this week || data.Local.MinutesThisWeek || data.Coworker.Tariff.HoursWeekLimit }} %}
<div class="progress progress-striped">
<div class="bar" style="width: {{ data.Local.MinutesLeftWeek }}%;"></div>
</div>
{% endif %}
{% if data.Coworker.Tariff.CheckinMonthLimit > 0 %}
{% T Used {0} check-ins out of {1} this month || data.Local.CheckinsThisMonth || data.Coworker.Tariff.CheckinMonthLimit }} %}
<div class="progress progress-striped">
<div class="bar" style="width: {{ data.Local.CheckinsLeftMonth }}%;"></div>
</div>
{% endif %}
{% if data.Coworker.Tariff.HoursMonthLimit > 0 %}
{% T Used {0} minutes out of {1} hours this month || data.Local.MinutesThisMonth || data.Coworker.Tariff.HoursMonthLimit }} %}
<div class="progress progress-striped">
<div class="bar" style="width: {{ data.Local.MinutesLeftMonth }}%;"></div>
</div>
{% endif %}
{% endif %}
{% if data.Coworker.TimePasses.size > 0 %}
<div class="alert alert-info">
{% T The tokens below give you access to {0} during a particular time of the day. No matter how many times you go in and out of the space, only one token will be used, as long as that time pass is valid for the times you went in and out. || data.Business.Name %}
</div>
<small>{% T You may need to scroll to see the entire list %}</small>
<div style="overflow:auto; max-height: 200px">
<table class="table table-hover invoices">
<tbody>
{% for timepass in data.Coworker.TimePasses %}
{% if timepass.Used == false %}
<tr>
<td style="width: 20px"><span aria-hidden="true" class="icon i-16 icon-checkmark"></span></td>
<td>
{{ timepass.TimePass.Name }}{% if timepass.IsFromTariff %}*{% endif %}
{% if timepass.ExpireDate != null %}
{% assign expireDate = timepass.ExpireDate | Date: 'D' %}
- <i>{% T Expires on {0} || expireDate %} </i>
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
{% for timepass in data.Coworker.TimePasses %}
{% if timepass.Used %}
<tr class="muted">
<td style="width: 20px"><span aria-hidden="true" class="icon i-16 icon-close"></span></td>
<td>
{{ timepass.TimePass.Name }}
{% assign usedDate = timepass.UsedDate | Date: 'D' %} -
{% T used on {0} || usedDate %}
{% if timepass.IsFromTariff %}*{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
<p class="pull-right" style="margin-top:10px">
<a class="btn btn-orange" href="{% Url Store, Products %}">{% T Buy Additional Services %}</a>
</p>
</div>
<!-- TIME PASSES TAB END -->
{% endif %}
{% if data.Coworker.ExtraServices.size > 0 %}
<div class="tab-pane" id="extraservices">
<div class="alert alert-info">
{% T The tokens below give you access to book a resource in the space. Some resources are charged based on the time you used them, some based on the times you used them. %}
</div>
<small>{% T You may need to scroll to see the entire list %}</small>
<div style="overflow:auto; max-height: 200px">
<table class="table table-hover invoices">
<tbody>
{% for xs in data.Coworker.ExtraServices %}
{% if xs.RemainingUses > 0 %}
<tr>
<td style="width: 20px"><span aria-hidden="true" class="icon i-16 icon-checkmark"></span></td>
<td>
{% if xs.InvoiceInMinutes %}
{% T Available {0} minutes out of {1} of {2}. || xs.RemainingUses || xs.TotalUses || xs.ExtraService.Name %} {% if xs.IsFromTariff %}*{% endif %}
{% else %}
{% T {0} out of {1} uses of {2}. || xs.RemainingUses || xs.TotalUses || xs.ExtraService.Name %} {% if xs.IsFromTariff %}*{% endif %}
{% endif %}
{% if xs.ExpireDate != null %}
{% assign expireDate = xs.ExpireDate | Date: 'D' %}
- <i>{% T Expires on {0} || expireDate %} </i>
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
{% for xs in data.Coworker.ExtraServices %}
{% if xs.RemainingUses == 0 %}
<tr class="muted">
<td style="width: 20px"><span aria-hidden="true" class="icon i-16 icon-close"></span></td>
<td>
{% if xs.InvoiceInMinutes %}
{% T Used all {0} minutes of {1}. || xs.TotalUses || xs.ExtraService.Name %} {% if xs.IsFromTariff %}*{% endif %}
{% else %}
{% T Used all {0} uses of {1}. || xs.TotalUses || xs.ExtraService.Name %} {% if xs.IsFromTariff %}*{% endif %}
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
<p class="pull-right">
<a href="{% Url Bookings, Index %}" class="btn btn-orange">{% T Make a booking %}</a>
</p>
<!-- EXTRA SERVICES END -->
<p>
<small>(<strong>*</strong>) {% T Included in your price plan %}</small>
</p>
</div>
{% endif %}
</div>
</section>
<!-- END CONTENT -->
</div>
</div>
<!-- END CONTAINER -->
</div>
{% endblock %}
{% block script %}
<script>$('a[data-toggle="tab"]:first').tab('show');</script>
{% endblock %}