-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.handlebars
46 lines (45 loc) · 1.46 KB
/
index.handlebars
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
<div class="container">
<div class="row">
<div class="col-xs-12 text-center" id="top-bar">
<img src="/assets/images/burger.png" alt="burger" />
<h1> Eat-Da-Burger! </h1>
</div>
<div class="col-xs-6 text-center" class="task">
<div class="row">
{{#each burger_data}}
{{#unless this.devoured}}
<div class="col-xs-9 text-center">
<pre>{{this.id}}. {{this.burger_name}}
</pre>
<!-- {{this.Date}} -->
</div>
<div class="col-xs-3 text-center">
<form method="POST" action="/burgers/update?_method=PUT" class="button-size">
<input input type="hidden" type="text" name="burger_id" value={{this.id}}><br>
<button type="submit" class="btn btn-default">Devour it!</button>
</form>
</div>
{{/unless}}
{{/each}}
</div>
</div>
<div class="col-xs-6 text-center" class="task">
{{#each burger_data}}
{{#if this.devoured}}
<input class="form-control" type="text" placeholder="{{this.id}} . {{this.burger_name}}" readonly>
{{/if}}
{{/each}}
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12 text-center enter_section">
<form action="/burgers/create" method="POST">
<input type="text" class="form-control" name="burger_name" value="" id="enter_text">
<button type="submit" class="btn btn-primary" id="text-enter-button">Submit</button>
</form>
<p>Enter a burger you want to eat Click the "Submit" button.</p>
</div>
</div>
</div>