-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeer.template
17 lines (16 loc) · 1.06 KB
/
beer.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="list-group-item">
<h3 class="list-group-item-heading">
<span class="beer-icon"><img src="<%= beer.icon %>" alt="<%= beer.name %>" /></span>
<span class="beer-name"><%= beer.name %></span>
<div class="beer-bar">@ <a href="#/browse/bar/<%= beer.bar %>"><%= beer.bar %></a></div>
</h3>
<div class="list-group-item-text" id="<%= beer.id %>">
<button onclick="togglewant(this)" type="button" class="btn <%= wantclass %>">Want</button>
<button onclick="toggledrunk(this)" type="button" class="btn <%= drunkclass %>">Drunk</button>
<button onclick="toggleunavailable(this)" type="button" class="btn <%= unavailableclass %>">Unavailable</button>
<input onkeyup="savenotes(this)" onblur="savenotes(this)" onchange="savenotes(this)" type="text" value="<%= notes %>" />
<p class="beer-brewery">Brewery: <a href="#/browse/brewery/<%= beer.brewery %>"><%= beer.brewery %></a></p>
<p class="beer-abv"><%= beer.abv %></p>
<p class="beer-description"><%= beer.description %></p>
<p class="beer-style"><a href="#/browse/style/<%= beer.style %>"><%= beer.style %></a></p>
</div>