frontend/templates: reenable empty cart

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-27 16:28:16 -07:00
parent 05cb7ecfb9
commit 3eb02c0679
2 changed files with 9 additions and 12 deletions

View file

@ -11,7 +11,9 @@
{{ else }}
<h3>{{ len $.items }} item {{- if gt (len $.items) 1}}s{{end}}
in your Shopping Cart</h3>
in your Shopping Cart</h3> <form method="POST" action="/cart/empty">
<button class="btn btn-secondary" type="submit">Empty Cart</button>
</form>
{{ range $.items }}
<div class="row pt-2 mb-2">
@ -68,12 +70,7 @@
</div>
</div>
<div class="form-row">
<div class="col-12 d-flex justify-content-between align-items-center">
<form method="POST" action="/cart/empty">
<button class="btn btn-secondary" type="submit">Empty Cart</button>
</form>
<a class="btn btn-primary" href="/checkout" role="button">Proceed to Checkout &rarr;</a>
</div>
<a class="btn btn-primary" href="/checkout" role="button">Proceed to Checkout &rarr;</a>
</div>
</form>
</div>