{{define "search"}} {{template "head" .}} {{template "topbar" .}} {{template "breadcrumbs" .}}

Global Search

{{if not .HasQuery}}
Enter a query in the search box above. Search covers assets, components, and failure events.
{{else}}
Query: {{.Query}} · Total matches: {{.TotalMatches}}
{{end}}
{{if .HasQuery}}

Assets

{{if .Assets}} {{range .Assets}} {{end}}
Status Name Vendor Serial Vendor Model ID
{{assetStatusText (index $.AssetStatusByID .ID)}} {{.Name}} {{.VendorSerial}} {{if .Vendor}}{{.Vendor}}{{else}}—{{end}} {{if .Model}}{{.Model}}{{else}}—{{end}} {{.ID}}
{{template "pagination" .AssetsPager}} {{else}}
No asset matches.
{{end}}

Components

{{if .Components}} {{range .Components}} {{$asset := index $.ComponentAssetByID .ID}} {{end}}
Status Vendor Serial Vendor Model Asset ID
{{componentStatusText (index $.ComponentStatusByID .ID)}} {{.VendorSerial}} {{if .Vendor}}{{.Vendor}}{{else}}—{{end}} {{if .Model}}{{.Model}}{{else}}—{{end}}{{if $asset.ID}}{{$asset.Label}}{{else}}—{{end}} {{.ID}}
{{template "pagination" .ComponentsPager}} {{else}}
No component matches.
{{end}}

Failure Events

{{if .Failures}} {{range .Failures}} {{end}}
Time Type Asset Component External ID
{{formatTime .FailureTime}} {{.FailureType}} {{if .MachineID}}{{assetLabel .MachineID $.AssetLabelByID}}{{else}}—{{end}} {{componentLabelByID .PartID $.ComponentLabelByID}} {{.ExternalID}}
{{template "pagination" .FailuresPager}} {{else}}
No failure matches.
{{end}}
{{end}}
{{end}}