added and hiding buttons
This commit is contained in:
parent
55ad067967
commit
c1787b71b7
@ -17,5 +17,6 @@
|
||||
</section>
|
||||
<script src="/s/jquery-latest.js"></script>
|
||||
<script src="/s/bootstrap/js/bootstrap.min.js"></script>
|
||||
{{ template "script" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,9 +1,11 @@
|
||||
{{ define "title" }}Welcome{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div class="container pw">
|
||||
<div class="container">
|
||||
<table class="table table-striped table-bordered table-hover">
|
||||
<tr>
|
||||
<caption>Allowance totals for our children</caption>
|
||||
</thead>
|
||||
<tr class="info">
|
||||
<td>
|
||||
Name
|
||||
</td>
|
||||
@ -11,17 +13,40 @@
|
||||
Amount
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ range .children }}
|
||||
<tr>
|
||||
<td>
|
||||
<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 }}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "script" }}
|
||||
<script>
|
||||
$(function() {
|
||||
$(".controls").hide();
|
||||
$(".name").click(function(e) {
|
||||
console.log(e)
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user