Scontrini-Web-Client/templates/pizza.html

46 lines
708 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Scontrini</title>
<link rel="stylesheet" href="/static/stylesheets/pizza.css">
</head>
<body>
<h1>PIZZE</h1>
<form action="/pizza" method="post">
<table id="pizzas">
<tr>
<td>
Nome
</td>
<td>
Prezzo
</td>
<td>
Quantità
</td>
</tr>
{{ range . }}
<tr>
<td>
{{ .Name }}
</td>
<td>
{{ .Price }}
</td>
<td>
<input name="{{ .Name }}" type="number" value="0"></input>
</td>
</tr>
{{ end }}
</table>
<input name="submit" id="submit" type="submit" value="ORDINA LA PIZZA"></input>
</form>
<button><a href="/">Stampa qualcosa</a></button>
</body>
</html>