microservices-demo/src/frontend/templates/home.html
Ahmet Alp Balkan 3cbda5fc65 frontend: add home template
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-24 23:37:28 -07:00

23 lines
674 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Hipster Shop</title>
</head>
<body>
<form method="post" action="/setCurrency" id="currencySelector">
<select name="currency_code"
onchange="document.getElementById('currencySelector').submit()">
{{ range $.currencies }}
<option {{ if (eq . $.user_currency)}}selected="selected"{{end}}>{{.}}</option>
{{ end}}
</select>
</form>
<p>{{ len $.products }} products</p>
</body>
</html>