aboutsummaryrefslogtreecommitdiffstats
path: root/templates/bom_view.html
blob: 94e99a826ede4fbfdf1b843a03481a856159b185 (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
{{ 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>category
  <!--
  <th>form_factor
  <th>specs
  <th>tag
  -->
  <th>comment
  <th>price
  <th>availability
</tr>
{{ range .Bom.LineItems }}
<tr>
  <td>{{ len .Elements }}
  <td>{{ range .Elements }}{{ if . }}{{ . }} {{ end }}{{ end }}
  <td>{{ .Manufacturer }}
  <td>{{ .Mpn }}
  <td>{{ .Description }}
  <td>{{ .Category }}
  <!--
  <td>{{ .FormFactor }}
  <td>{{ .Specs }}
  <td>{{ .Tag }}
  -->
  <td>{{ .Comment }}
  <td><a href="{{ .AggregateInfo.OctopartUrl }}">{{ .AggregateInfo.MarketPrice }}</a>
  <td>{{ .AggregateInfo.MarketFactor }}
</tr>
{{ end }}
</table>
{{ template "FOOTER" . }}