-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·950 lines (901 loc) · 31.5 KB
/
index.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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- 3rd party css -->
<link href="js/backbone-forms/templates/default.css" rel="stylesheet" type="text/css" />
<link href="js/backbone-forms/templates/bootstrap.css" rel="stylesheet" type="text/css" />
<!-- Custom CSS -->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<title>OpenPunch</title>
</head>
<body>
<!--
SIGN IN
-->
<div id="sign-in" class="page hide">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#index">OpenPunch</a>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="span12">
<p id="tagline">Easily monitor and track your group members' attendance.</p>
</div>
</div><!--descrip-->
<div class="row-fluid">
<div class="span12">
<div class="form-container"></div>
<div class="form-error alert alert-error hide"></div>
</div>
</div><!--sign in-->
</div><!--content-->
</div><!--page-->
<!--
Loading
-->
<div id="loading" class="page hide">
<div class="content container-fluid">
<div class="row-fluid">
<div class="span12">
<p>Loading Data</p>
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
</div>
<!--<p><a href="#account/sign-in" class="btn btn-small">Cancel</a></p>-->
</div>
</div>
</div><!--content-->
</div><!--page-->
<!--
EVENTS
-->
<div id="events" class="page hide">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#event">Events</a>
<ul class="nav pull-right">
<!--<li>
<a id="refresh-events" href="#events">
<i class="icon-refresh icon-white"></i>
</a>
</li>-->
<li>
<a href="#events/new"><i class="icon-plus icon-white"></i></a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<div class="span12">
<!-- <p class="swipe-up-notice hide"><i class="icon-hand-down"></i> Swipe down to load past events</p> -->
<div class="delete-alert alert alert-success hide">
<button class="close" data-dismiss="alert">×</button>
<strong>Event deleted</strong>
</div>
<p class="list-placeholder-image list-placeholder">
<img id="img-first-event" src="images/help-first-event.png" alt="Create your first event by clicking the plus sign" />
</p>
<ul id="events-list" class="unstyled">
<!--event list-->
</ul>
</div>
</div>
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li class="active">
<a href="#events">
<i class="icon-calendar icon-white"></i>
<p>Events</p>
</a>
</li>
<li>
<a href="#contacts">
<i class="icon-user icon-white"></i>
<p>Contacts</p>
</a>
</li>
<li>
<a href="#account">
<i class="icon-cog icon-white"></i>
<p>Account</p>
</a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</div><!--page-->
<script id="event-li-view-template" type="text/template">
<a href="#events/<%= _id %>">
<%= name %>
<i class="li-arrow icon-chevron-right"></i>
<span class="aside"><%= eventTime(dt_start) %> to <%= eventTime(dt_end) %></span>
</a>
</script>
<!--
EVENT DASHBOARD
-->
<script id="event-view-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a href="#events" class="brand">
<i class="icon-chevron-left icon-white"></i> <%= eventTitle(name) %>
</a>
</li>
</ul>
<ul class="nav pull-right">
<li>
<a href="#events/<%= _id %>/edit"><i class="icon-pencil icon-white"></i></a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<div class="span12">
<p class="date"><i class="icon-calendar"></i> <%= eventDate(dt_start) %> · <%= eventTime(dt_start) %> to <%= eventTime(dt_end) %><p>
</div>
</div>
<% if (status=='past') { %>
<div class="row-fluid">
<div class="event-status span12">
<div class="alert alert-block alert-info">
<h3>Event finished</h3>
You can no longer check people into this event.
</div>
</div>
</div>
<% } else if (status=='future') { %>
<div class="row-fluid">
<div class="event-status span12">
<div class="alert alert-block">
<h3>Event coming soon</h3>
You can start checking people into this event once it begins.
</div>
</div>
</div><!--buttons-->
<% } else { %>
<div class="row-fluid">
<div class="action-buttons span12">
<div class="btn-group">
<a href="#events/<%= _id %>/contacts" class="btn btn-large">
<i class="icon-large-list"></i>
<h3>Browse</h3>
</a>
<button class="init-scan btn btn-large">
<i class="icon-large-qrcode"></i>
<h3>Scan ID</h3>
</button>
</div>
</div>
</div><!--buttons-->
<% } %>
<div class="row-fluid">
<table class="event-stats table">
<tbody>
<tr>
<td>Total Attendees</td>
<td><%= totalAttendees %></td>
</tr>
<tr>
<td>Last Check-In</td>
<% if (lastAttendee) { %>
<td><a href="#contacts/<%= lastAttendee._id %>"><%= lastAttendee.first %> <%= lastAttendee.last %></a></td>
<% } else { %>
<td>-</td>
<% } %>
</tr>
<tr>
<td>Cost</td>
<td><%= money(cost) %></td>
</tr>
<tr>
<td>Facilitator</td>
<% if (facilitator) { %>
<td><a href="#contacts/<%= facilitator._id %>"><%= facilitator.first %> <%= facilitator.last %></a></td>
<% } else { %>
<td>-</td>
<% } %>
</tr>
<tr>
<td>Location</td>
<td><%= location %></td>
</tr>
</tbody>
</table>
</div><!--stats-->
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li class="active">
<a href="#events/<%= _id %>/dashboard"><i class="icon-th-large icon-white"></i><p>Dashboard</p></a>
</li>
<li>
<a href="#events/<%= _id %>/history"><i class="icon-time icon-white"></i><p>History</p></a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</script><!--event-->
<!--
EDIT EVENT
-->
<script id="event-edit-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a class="brand" href="#events/<%= _id %>">
<i class="icon-chevron-left icon-white"></i> Edit Event
</a>
</li>
</ul>
<ul class="nav pull-right">
<li>
<a href="#events/<%= _id %>/delete"><i class="icon-trash icon-white"></i></a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="form-container span12">
<!--form-->
</div>
</div><!--buttons-->
</div><!--content-->
</script><!--page-->
<script id="event-edit-modal-template" type="text/template">
<div class="modal-body">
<h3>Event saved</h3>
</div>
<div class="modal-footer">
<!--<a data-toggle="modal" href="#event-edit-modal-<%= _id %>" class="btn">Continue Editing</a>-->
<a href="#events/<%= _id %>" class="dismiss btn btn-primary">Done Editing</a>
</div>
</script>
<!--
CREATE EVENT
-->
<script id="event-create-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a class="brand" href="#events">
<i class="icon-chevron-left icon-white"></i> Create Event
</a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="form-container span12">
<!--form-->
</div>
</div><!--buttons-->
</div><!--content-->
</script><!--page-->
<!--
EVENT CONTACTS
-->
<script id="event-contacts-view-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a class="brand" href="#events/<%= _id %>">
<i class="icon-chevron-left icon-white"></i>
Tap to check in/out
</a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="span12">
<ul class="contact-list">
<!--contacts-->
</ul>
</div>
</div>
</div><!--content-->
</script><!--event contacts-->
<script id="event-contact-view-template" type="text/template">
<a href="#index">
<!-- <i class="status <%= statusIconClass() %>"></i> -->
<span class="name"><%= first %> <%= last %></span>
<!--<i class="li-arrow icon-chevron-right"></i>-->
<% if (lastSeenDate()) { %><span class="aside label <%= lastSeenLabelClass() %>"><%= lastSeenDate() %></span><% } %>
</a>
</script>
<!--
EVENT HISTORY
-->
<script id="event-history-view-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a href="#events" class="brand">
<i class="icon-chevron-left icon-white"></i> <%= eventTitle(name) %>
</a>
</li>
</ul>
<ul class="nav pull-right">
<li>
<a href="#events/<%= _id %>/edit"><i class="icon-pencil icon-white"></i></a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<div class="span12">
<p class="list-placeholder">No check-ins yet.</p>
<ul class="action-list unstyled">
<!--contacts-->
</ul>
</div>
</div>
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="footer-nav nav">
<li>
<a href="#events/<%= _id %>/dashboard"><i class="icon-th-large icon-white"></i><p>Dashboard</p></a>
</li>
<li class="active">
<a href="#events/<%= _id %>/history"><i class="icon-time icon-white"></i><p>History</p></a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</script><!--event history-->
<script id="event-action-view-template" type="text/template">
<a href="#contacts/<%= contact._id %>"><%= contact.first %> <%= contact.last %></a> checked <%= status %>
<span class="aside"><%= timestamp() %></span>
</script>
<!--
CONTACTS
-->
<div id="contacts" class="page full hide">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#contacts">Contacts</a>
<div class="btn-group pull-right leave-open">
<a id="filter-contacts" href="#" role="button" class="btn">
<i class="icon-filter"></i>
</a>
<ul class="filter-menu dropdown-menu">
<li class="filter-container">
<!-- filters -->
</li>
<li class="divider"></li>
<li>
<button class="filter-button-close btn btn-block btn-danger">Close</button>
</li>
</ul>
<a href="#contacts/new" class="btn">
<i class="icon-plus"></i>
</a>
</div>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="delete-alert alert alert-success hide">
<button class="close" data-dismiss="alert">×</button>
<strong>Contact deleted</strong>
</div>
<p class="list-placeholder-image list-placeholder">
<img id="img-first-contact" src="images/help-first-contact.png" alt="Create your first contact by clicking the plus sign" />
</p>
<ul class="contact-list">
<!--contacts list-->
</ul>
</div>
</div>
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li>
<a href="#events">
<i class="icon-calendar icon-white"></i>
<p>Events</p>
</a>
</li>
<li class="active">
<a href="#contacts">
<i class="icon-user icon-white"></i>
<p>Contacts</p>
</a>
</li>
<li>
<a href="#account">
<i class="icon-cog icon-white"></i>
<p>Account</p>
</a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</div><!--page-->
<script id="filter-menu-template" type="text/template">
<li>
<% _.each(filters, function(filter) { %>
<button class="filter-button btn btn-block" data-toggle="button" data-value="<%= filter.value %>"><%= filter.label %></button>
<% }) %>
</li>
<li class="divider"></li>
<li>
<button class="filter-button-close btn btn-block btn-danger">Close</button>
</li>
</script>
<script id="contact-li-view-template" type="text/template">
<a href="#contacts/<%= _id %>">
<!-- <img src="images/<%= _id %>.png" alt="<%= last %> thumnail" /> -->
<span class="name"><%= first %> <%= last %></span>
<i class="li-arrow icon-chevron-right"></i>
<span class="aside label"><%= role %></span>
</a>
</script>
<!--
CONTACT
-->
<script id="contact-view-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a href="#contacts" class="brand">
<i class="icon-chevron-left icon-white"></i> <%= last %><!--<%= firstLastInitial() %>-->
</a>
</li>
</ul>
<div class="btn-group pull-right">
<a href="#contacts/<%= _id %>/transactions/new" class="add-credit btn btn-success">
<i class="icon-plus icon-white"></i> $
</a>
<a href="#contacts/<%= _id %>/edit" class="btn">
<i class="icon-pencil"></i>
</a>
</div>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<table class="contact-stats table">
<tbody>
<tr>
<td>First Name</td>
<td><%= first %></td>
</tr>
<tr>
<td>Last Name</td>
<td><%= last %></td>
</tr>
<tr>
<td>Role</td>
<td><%= role %></td>
</tr>
<tr>
<td>Manager</td>
<% if (manager) { %>
<td><a href="#contacts/<%= manager._id %>"><%= manager.first %> <%= manager.last %></a></td>
<% } else { %>
<td>-</td>
<% } %>
</tr>
<tr>
<td>Check-Ins</td>
<td><%= totalCheckIns() %></td>
</tr>
<tr>
<td>Activity Time</td>
<td><%= totalTime() %></td>
</tr>
<tr>
<td>Balance</td>
<td class="<%= balanceClass() %>"><%= money(balance()) %></td>
</tr>
</tbody>
</table>
</div><!--stats-->
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li class="active">
<a href="#contacts/<%= _id %>/details"><i class="icon-user icon-white"></i><p>Details</p></a>
</li>
<li>
<a href="#contacts/<%= _id %>/transactions"><span>$</span><p>Transactions</p></a>
</li>
<li>
<a href="#contacts/<%= _id %>/history"><i class="icon-time icon-white"></i><p>History</p></a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</script><!--contact-->
<!--
EDIT CONTACT
-->
<script id="contact-edit-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a class="brand" href="#contacts/<%= _id %>">
<i class="icon-chevron-left icon-white"></i> Edit Contact
</a>
</li>
</ul>
<ul class="nav pull-right">
<li>
<a href="#contacts/<%= _id %>/delete"><i class="icon-trash icon-white"></i></a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="form-container span12">
<!--form-->
</div>
</div>
</div><!--content-->
</script><!--page-->
<script id="contact-edit-modal-template" type="text/template">
<div class="modal-body">
<h3>Contact saved</h3>
</div>
<div class="modal-footer">
<!--<a data-toggle="modal" href="#contact-edit-modal-<%= _id %>" class="btn">Continue Editing</a>-->
<a href="#contacts/<%= _id %>" class="dismiss btn btn-primary">Done Editing</a>
</div>
</script>
<!--
CREATE CONTACT
-->
<script id="contact-create-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a class="brand" href="#contacts">
<i class="icon-chevron-left icon-white"></i> Create Contact
</a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="form-container span12">
<!--form-->
</div>
</div>
</div><!--content-->
</script><!--page-->
<!--
CONTACT TRANSACTIONS
-->
<script id="contact-transactions-view-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a href="#contacts" class="brand">
<i class="icon-chevron-left icon-white"></i> <%= last %><!--<%= firstLastInitial() %>-->
</a>
</li>
</ul>
<div class="btn-group pull-right">
<a href="#contacts/<%= _id %>/transactions/new" class="add-credit btn btn-success">
<i class="icon-plus icon-white"></i> $
</a>
<a href="#contacts/<%= _id %>/edit" class="btn">
<i class="icon-pencil"></i>
</a>
</div>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="add-alert alert alert-success hide">
<button class="close" data-dismiss="alert">×</button>
<strong>Transaction added</strong>
</div>
<p class="list-placeholder">No transactions for this contact yet.</p>
<table class="transaction-list table">
<thead>
<tr>
<th>Date</th>
<th>Type</th>
<th>Amount</th>
<th>Balance</th>
</tr>
</thead>
<tbody>
<!-- transaction <tr> -->
</tbody>
</table>
</div>
</div>
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li>
<a href="#contacts/<%= _id %>/details"><i class="icon-user icon-white"></i><p>Details</p></a>
</li>
<li class="active">
<a href="#contacts/<%= _id %>/transactions"><span>$</span><p>Transactions</p></a>
</li>
<li>
<a href="#contacts/<%= _id %>/history"><i class="icon-time icon-white"></i><p>History</p></a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</script><!--contact transactions-->
<script id="contact-transaction-tr-view-template" type="text/template">
<td><%= simpleDate(dt_add) %></td>
<% if (event) { %>
<td><a href="#events/<%= event._id %>"><%= event.name %></a></td>
<% } else { %>
<td><%= type %></td>
<% } %>
<td class="right <%= amountClass() %>"><%= money(ledgerAmount()) %></td>
<td class="right"><%= money(newBalance()) %></td>
<!--<td class="right"><i class="icon-chevron-right"></i></td>-->
</script>
<!--
Create transaction
-->
<script id="transaction-create-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a class="brand" href="#contacts/<%= contact_id %>">
<i class="icon-chevron-left icon-white"></i> Create Transaction
</a>
</li>
</ul>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div class="form-container span12">
<!--form-->
</div>
</div>
</div><!--content-->
</script><!--page-->
<!--
CONTACT HISTORY
-->
<script id="contact-history-view-template" type="text/template">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<ul class="nav">
<li>
<a href="#contacts" class="brand">
<i class="icon-chevron-left icon-white"></i> <%= last %><!--<%= firstLastInitial() %>-->
</a>
</li>
</ul>
<div class="btn-group pull-right">
<a href="#contacts/<%= _id %>/transactions/new" class="add-credit btn btn-success">
<i class="icon-plus icon-white"></i> $
</a>
<a href="#contacts/<%= _id %>/edit" class="btn">
<i class="icon-pencil"></i>
</a>
</div>
</div>
</div>
</div><!--navbar-->
<div class="content has-footer container-fluid">
<div class="row-fluid">
<div class="span12">
<p class="list-placeholder">No actions for this contact yet.</p>
<ul class="action-list unstyled">
<!--contacts-->
</ul>
</div>
</div>
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li>
<a href="#contacts/<%= _id %>/details"><i class="icon-user icon-white"></i><p>Details</p></a>
</li>
<li>
<a href="#contacts/<%= _id %>/transactions"><span>$</span><p>Transactions</p></a>
</li>
<li class="active">
<a href="#contacts/<%= _id %>/history"><i class="icon-time icon-white"></i><p>History</p></a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</script><!--contact history-->
<script id="contact-action-view-template" type="text/template">
Checked <%= statusVerb() %> <a href="#events/<%= event._id %>"><%= event.name %></a>
<span class="aside"><%= timestamp() %></span>
</script>
<script id="inactive-contact-action-view-template" type="text/template">
Checked <%= statusVerb() %> <a href="#events/<%= event._id %>"><%= event.name %></a>
<span class="aside"><%= timestamp() %></span>
</script>
<!--
Account
-->
<div id="account" class="page hide">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="#event">Account</a>
<div class="btn-group pull-right">
<a href="#account/sign-out" class="btn btn-small btn-danger pull-right">Sign Out</a>
</div>
</div>
</div>
</div><!--navbar-->
<div class="content container-fluid">
<div class="row-fluid">
<div id="content-account" class="span12">
<!-- account info -->
</div>
</div>
</div><!--content-->
<div class="bottom-bar navbar">
<div class="bottom-bar-inner navbar-inner">
<div class="container-fluid pagination-centered">
<ul class="nav footer-nav">
<li>
<a href="#events">
<i class="icon-calendar icon-white"></i>
<p>Events</p>
</a>
</li>
<li>
<a href="#contacts">
<i class="icon-user icon-white"></i>
<p>Contacts</p>
</a>
</li>
<li class="active">
<a href="#account">
<i class="icon-cog icon-white"></i>
<p>Account</p>
</a>
</li>
</ul>
</div>
</div>
</div><!--footer-->
</div><!--page-->
<script id="account-view-template" type="text/template">
<h6>Email</h6>
<p><%= email %></p>
<h6>User Role</h6>
<p><%= role %></p>
<h6>Account Name</h6>
<p><%= account_name %></p>
<h6>Sync</h6>
<p>
<button id="sync" class="btn btn-info">
<i class="icon-refresh icon-white"></i> Sync with Salesforce
</button>
</p>
<div id="sync-wait" class="hide">
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
</div>
</div>
<p id="sync-report"></p>
</script>
<!--
404
-->
<div id="error-404" class="page hide">
<div class="content container-fluid">
<div class="row-fluid">
<div class="span12">
<h3>404. Oops!</h3>
<p>We couldn't find what you were looking for.</p>
<p><a href="#account/sign-out" class="btn btn-small">Sign Out and Try Again</a></p>
</div>
</div>
</div><!--content-->
</div><!--page-->
<!-- jQuery -->
<script src="js/jquery/jquery-1.7.2.min.js"></script>
<!-- Utilities -->
<script src="js/json2.min.js"></script>
<script src="js/underscore/underscore-1.3.3.min.js"></script>
<script src="js/underscore/underscore.string-2.1.0.min.js"></script>
<script src="js/xdate.js"></script>
<script src="js/jquery/jquery.cookie.js"></script>
<!-- Bootstrap -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/js/bootstrap-typeahead-ajax.js"></script>
<!-- Backbone -->
<script src="js/backbone/backbone-0.9.2.min.js"></script>
<script src="js/backbone-forms/backbone-forms.js"></script>
<script src="js/backbone-forms/templates/bootstrap.js"></script>
<script src="js/backbone/backbone.localStorage.js"></script>
<script src="js/config.js"></script>
<script src="js/openpunch.js"></script>
<script src="js/phonegap/cordova.js"></script>
<script src="js/phonegap/barcodescanner.js"></script>
<script src="js/index.js"></script>
<script>
app.initialize();
</script>
</body>
</html>