Files
pcinv/templates/header.gohtml

17 lines
471 B
Plaintext

{{define "header"}}
<html>
<head>
<title>PC Inventory{{if .}} - {{.}}{{end}}</title>
<script src="/static/scripts.js" type="application/javascript"></script>
</head>
<body bgcolor="beige">
<h1><a href="/">PC Inventory</a>{{if .}} - <i>{{.}}{{end}}</i></h1>
<form action="/device" method="get">
<label for="id">Device ID:</label>
<input type="text" id="id" name="id">
<input type="submit" value="Find by ID">
<a href="/create">Create Device</a>
</form>
<hr>
{{end}}