aboutsummaryrefslogtreecommitdiffstats
path: root/templates/bom_view.html
blob: 7eca3e3f640cbe614a900878214a860d081a97b1 (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" . }}