blob: 04126c327134399c172245534da97f1e7ec41265 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{{ template "HEADER" . }}
{{ if .BomMeta }}
<h1>{{ .BomMeta.Name }} is a bom.</h1>
{{ template "BOM_INFO" . }}
<hr>
{{ else }}
<h1>{{ .name }} could be a bom.</h1>
{{ end }}
<form class="form-horizontal" enctype="multipart/form-data" method="POST" target=".">
{{ if .error }}
<div class="alert alert-error">
<strong>Error!</strong> {{ .error }}
</div>
{{ end }}
<div class="control-group">
<label class="control-label" for="owner">Owner</label>
<div class="controls">
<input type="text" id="created" name="owner" placeholder="{{ .user }}" disabled class="input-large">
</div>
</div>
<div class="control-group">
<label class="control-label" for="name">Name</label>
<div class="controls">
<input type="text" id="created" name="name" placeholder="{{ .name }}" disabled class="input-large">
</div>
</div>
<div class="control-group">
<label class="control-label" for="version">Version</label>
<div class="controls">
<input type="text" id="version" name="version" value="{{ .version }}" placeholder="eg, Rev5" class="input-large">
</div>
</div>
<div class="control-group">
<label class="control-label" for="created">Creation Time</label>
<div class="controls">
<input type="text" id="created" name="created" placeholder="right now!" disabled class="input-large">
</div>
</div>
<div class="control-group">
<label class="control-label" for="bomfile">File</label>
<div class="controls">
<input type="file" name="bomfile" accept="application/json,application/xml,text/csv"></input>
<span class="help-inline">.json, .xml, or .csv</span>
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" name="submit" value="up" class="btn btn-primary">Upload</button>
</div>
</div>
</form>
{{ template "FOOTER" . }}
|