-
Notifications
You must be signed in to change notification settings - Fork 1
/
Luncher.html
138 lines (112 loc) · 3.13 KB
/
Luncher.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
<head>
<title>Luncher - for Yipit</title>
</head>
<body>
<h1> Yipit's Luncher App </h1>
<h3> Generates random groups of Yipit employees </h3>
{{> hello}}
</br></br>
{{> luncherBody}}
</body>
<template name="hello">
<div class = "hello">
<h4> Step: {{stepName}} </h4>
<em>{{greeting}}</em>
</div>
</template>
<template name = "luncherBody">
{{#if whereAmI}}
<span class = "groupNumSection">
<em><u><strong>First:</strong> How many groups would you like to form?</u></em>
<p>Current # groups setting: {{numGroups}} </p>
<span class = "inputField">
<input type="text" id="wantedNumGroups" value="" />
</span>
<input type="button" class="setNumGroups" value="Set # Groups" />
</span>
<span class = "addNameSection">
<em><u><strong>Second:</strong> Is there anybody else joining us for lunch?</u></em>
<p>Name to add (one at a time):</p>
<span class = "inputField">
<input type="text" id="nameToAdd" value="" />
</span>
<input type="button" class="addName" value="Add This Person" />
</span>
</br></br>
</br></br>
</br></br>
</br></br>
</br></br>
<div class = "nameListsSection">
<em><u><strong>Third:</strong> Who should be put into the randomizer?</u></em>
</br></br>
<input type="button" class="resetLists" value="Reset Lists" /> ...to the Yipit team roster
</br></br>
<span class = "yesList">
<strong>The yes list:</strong>
<ul>
{{#each totalList}}
{{#if lunching}}
<li>{{> individual}}</li>
{{/if}}
{{/each}}
</ul>
<div class = "switchButton">
<input type="button" class="switchToNo" value="No Lunch for Them!" />
<input type="button" class="switchAllToNo" value="Nobody Gets Food!!" />
</div>
</span>
<span class = "noList">
<strong>The no list:</strong>
<ul>
{{#each totalList}}
{{#unless lunching}}
<li>{{> individual}}</li>
{{/unless}}
{{/each}}
</ul>
<div class = "switchButton">
<input type="button" class="switchToYes" value="Give Them Food!" />
<input type="button" class="switchAllToYes" value="Give Everybody Food!!" />
</div>
</span>
</div>
</br></br>
<div class = "stepButton">
<input type="button" class="stepToGroups" value="RANDOMIZE!!" />
</div>
{{/if}}
<div class = "resultsScreen">
{{#unless whereAmI}}
<em>Results</em>
</br></br>
{{#each groupsList}}
{{> group}}
{{/each}}
<div class = "stepButton">
<input type="button" class="stepToSelection" value="Return to name selection" />
</div>
{{/unless}}
</div>
</template>
<template name="individual">
<div class = "individual {{#if highlight}}selected{{/if}}">
<span class = "name"> {{name}} </span>
<!-- <span class = "score"> {{score}} </span>
<span class = "lunching"> {{lunching}} </span>
<span class = "highlight"> {{highlight}} </span>
{{#if group}}
<span class = "group"> Group: {{group}} </span>
{{/if}} -->
</div>
</template>
<template name="group">
<div class = "group">
<!-- <span class = "groupID"> Group #{{groupID}} </span> -->
<span class = "name"> Group {{name}} </span>
<ul>
{{#each people}}
<li><span class = "people"> {{name}} </span></li>
{{/each}}
</div>
</template>