aboutsummaryrefslogtreecommitdiffstats
path: root/templates/bom_upload.html
blob: 8cc15c881870f4f51ae59521d6d5b2a3a62feafc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{ template "HEADER" . }}
{{ if .BomMeta }}

<h1>{{ .BomMeta.Name }} is a bom.</h1>
{{ template "BOM_INFO" . }}
<hr>

{{ else }}

<h1>{{ .name }} could be a bom.</h1>
<b>Owner: </b>{{ .user }}<br>
<hr>

{{ end }}

{{ if .error }}<h3 style="color:red;">{{ .error }}</h3>{{ end }}
<form enctype="multipart/form-data" method="POST" target=".">
<b>Version: </b><input name="version" type="text" value="{{ .version }}"></input><br>
<b>Created: </b>now!<br>
<input type="file" name="bomfile" accept="application/json,application/xml,text/csv"></input><br>
<input type="submit" value="Upload"></input>
</form>

{{ template "FOOTER" . }}