aboutsummaryrefslogtreecommitdiffstats
path: root/templates/bom_view.html
blob: 2e66bf14d6fbeafde2e71b5aec6ee900fd54a300 (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
{{ template "HEADER" }}
<h1>{{ .BomMeta.Name }} is a bom.</h1>
<a href="./_upload/"><button class="btn btn-mini">upload new</button></a>
<br>
<br>
{{ template "BOM_INFO" . }}
<table class="table table-hover table-condensed" style="font-size: smaller;">
<tr>
  <th>qty
  <th>elements
  <th>manufacturer
  <th>mpn
  <th>description
  <th>form_factor
  <th>specs
  <th>category
  <th>tag
  <th>comment
</tr>
{{ range .Bom.LineItems }}
<tr>
  <td>{{ len .Elements }}
  <td>{{ range .Elements }}{{ if . }}{{ . }} {{ end }}{{ end }}
  <td>{{ .Manufacturer }}
  <td>{{ .Mpn }}
  <td>{{ .Description }}
  <td>{{ .FormFactor }}
  <td>{{ .Specs }}
  <td>{{ .Category }}
  <td>{{ .Tag }}
  <td>{{ .Comment }}
</tr>
{{ end }}
</table>
{{ template "FOOTER" }}