aboutsummaryrefslogtreecommitdiffstats
path: root/templates/bom_upload.html
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-09-19 17:07:54 +0200
committerbnewbold <bnewbold@robocracy.org>2012-09-19 17:07:54 +0200
commitcc783ca52451587a471d109c9d0229c3c21c29b8 (patch)
tree27487ca55f942d95307d4bb69a32763799feac8c /templates/bom_upload.html
parent24a4873ded5020f99ccb8850c9efda25928b5710 (diff)
downloadbommom-cc783ca52451587a471d109c9d0229c3c21c29b8.tar.gz
bommom-cc783ca52451587a471d109c9d0229c3c21c29b8.zip
basic bom uploading (WIP)
Diffstat (limited to 'templates/bom_upload.html')
-rw-r--r--templates/bom_upload.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/bom_upload.html b/templates/bom_upload.html
new file mode 100644
index 0000000..1d03963
--- /dev/null
+++ b/templates/bom_upload.html
@@ -0,0 +1,29 @@
+{{ template "HEADER" }}
+{{ if .BomMeta }}
+
+<h1>{{ .BomMeta.Name }} is a bom.</h1>
+<b>Owner: </b>{{ .BomMeta.Owner }}<br>
+{{ if .BomMeta.Homepage }}<b>Homepage: </b>{{ .BomMeta.Homepage }}<br>{{ end }}
+{{ if .BomMeta.Description }}<b>Description: </b>{{ .BomMeta.Description }}<br>{{ end }}
+<b>Version: </b>{{ .BomMeta.HeadVersion }} (at head)<br>
+<b>Created: </b>{{ .Bom.Created }}<br>
+{{ if .Bom.Progeny}}<b>Source: </b>{{ .Bom.Progeny }}<br>{{ end }}
+<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" }}