-
Notifications
You must be signed in to change notification settings - Fork 0
/
beer-day.html
134 lines (122 loc) · 3.72 KB
/
beer-day.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
<head>
<title>Beer Day (and assorted assortments)</title>
</head>
<body>
{{ >navbar }}
<div class="container">
<div class="row">
<div class="col-lg-4">
<!-- Request -->
{{> request}}
</div>
<!-- Food -->
<div class="col-lg-4">
<div class="panel panel-primary order-panel">
<div class="panel-heading">
<h3 class="panel-title">Jist ({{ foods.count }})</h3>
</div>
<div class="panel-body">
<ul>
{{ #each foods }}
<li>
<span class="username-emphasis">{{ username }}</span> | {{ food }}
{{ #if foodDetails }}
| <span class="details-emphasis">{{ foodDetails }}</span>
{{ /if }}
</li>
{{ /each }}
</ul>
</div>
</div>
</div>
<!-- Drinks -->
<div class="col-lg-4">
<div class="panel panel-danger order-panel">
<div class="panel-heading">
<h3 class="panel-title">Pit ({{ drinks.count }})</h3>
</div>
<div class="panel-body">
<ul>
{{ #each drinks }}
<li>
<span class="username-emphasis">{{ username }}</span> | {{ drink }}
{{ #if drinkDetails }}
| <span class="details-emphasis">{{ drinkDetails }}</span>
{{ /if }}
</li>
{{ /each }}
</ul>
</div>
</div>
</div>
</div>
<!-- Aggregations -->
<div class="row">
<div class="col-lg-8">
<div class="panel panel-default aggregatedOrders">
<div class="panel-heading">SVE! aaaaaaaaaaa SVE!</div>
<div class="panel-body">
{{ #each aggregatedOrders }}
{{ >aggregatedOrder }}
{{ /each }}
</div>
</div>
</div>
</div>
<!-- Control -->
<div class="togglebutton">
<label>
<input type="checkbox" checked="{{ showControl }}"> Toggle control
<span class="control toggle"></span>
</label>
</div>
{{ #if showControl }}
<h2>Control</h2>
<div class="row">
<div class="col-lg-12">
<ul>
{{ #each all }}
<li>
<span class="username-emphasis">{{ username }}</span> | {{ food }} -> {{ foodDetails }}
</li>
{{ /each }}
</ul>
</div>
</div>
{{ /if }}
</div>
</body>
<template name="aggregatedOrder">
{{ item }} <span class="label label-success">{{ count }}</span>
<ul>
{{ #each details }}
{{ #if this }}
<li><i class="mdi-hardware-keyboard-arrow-right"></i>{{ this }}</li>
{{ /if }}
{{ /each }}
</ul>
</template>
<template name="request">
<div class="panel panel-default">
<div class="panel-heading">A štaš?</div>
<div class="panel-body">
<form class="requestForm" >
<div class="form-control-wrapper">
<input type="text" class="form-control empty" name="username">
<div class="floating-label">A ti si?</div>
<div class="hint">Enter da potvrdiš nigga</div>
</div>
<div class="form-control-wrapper">
<input type="text" class="form-control empty" name="food">
<div class="floating-label">A štaš pojist?</div>
<div class="hint">Enter da potvrdiš nigga</div>
</div>
<div class="form-control-wrapper">
<input type="text" class="form-control empty" name="drink">
<div class="floating-label">A štaš popit?</div>
<div class="hint">Enter da potvrdiš nigga</div>
</div>
</form>
</div>
</div>
</template>