2013-02-20 21:11:44 -08:00
|
|
|
{{ define "title" }}Welcome{{ end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
2013-03-05 23:15:25 -08:00
|
|
|
<div class="container">
|
2013-03-05 22:40:17 -08:00
|
|
|
<table class="table table-striped table-bordered table-hover">
|
2013-03-05 23:15:25 -08:00
|
|
|
<caption>Allowance totals for our children</caption>
|
|
|
|
</thead>
|
|
|
|
<tr class="info">
|
|
|
|
<td>
|
|
|
|
Name
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
Amount
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{ range .children }}
|
|
|
|
<tr>
|
|
|
|
<td class="name">
|
|
|
|
{{ .Name }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ dollarize .Money }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="controls">
|
|
|
|
<td colspan=2>
|
|
|
|
<div class="btn-group">
|
|
|
|
<button class="btn" value=100>$1.00</button>
|
|
|
|
<button class="btn" value=25>25¢</button>
|
|
|
|
<button class="btn" value=10>10¢</button>
|
|
|
|
<button class="btn" value=5>5¢</button>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
2013-03-05 22:40:17 -08:00
|
|
|
</table>
|
2013-02-20 21:27:09 -08:00
|
|
|
</div>
|
2013-02-20 21:11:44 -08:00
|
|
|
{{ end }}
|
2013-03-05 23:15:25 -08:00
|
|
|
|
|
|
|
{{ define "script" }}
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$(".controls").hide();
|
|
|
|
$(".name").click(function(e) {
|
|
|
|
console.log(e)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{ end }}
|