2022-04-29 15:21:27 +03:00
|
|
|
{{template "layout.html" .}}
|
|
|
|
|
|
|
|
{{define "title"}}Structures{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<h3>Structures</h3>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
|
|
|
{{- range $t, $v := .}}
|
|
|
|
<button class="nav-link{{ ifFirst $ $t " active" }}" data-bs-toggle="tab" data-bs-target="#nav-{{kebab $t}}" type="button"
|
|
|
|
role="tab">{{$t}} ({{ len $v }})</button>
|
|
|
|
{{- end}}
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="tab-content" id="nav-tabContent">
|
|
|
|
{{- range $t, $v := . }}
|
|
|
|
<div class="tab-pane{{ ifFirst $ $t " active" }}" id="nav-{{kebab $t}}" role="tabpanel" aria-labelledby="nav-home-tab">
|
2022-04-30 10:45:31 +03:00
|
|
|
<table class="table table-hover table-sm table-borderless object-table">
|
2022-04-29 15:21:27 +03:00
|
|
|
<tr>
|
2022-04-30 10:45:31 +03:00
|
|
|
<th>Name</th>
|
|
|
|
<th width="100%">Site</th>
|
2022-04-29 15:21:27 +03:00
|
|
|
</tr>
|
|
|
|
{{- range $v }}{{- if not (eq .Name "") }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ structure .SiteId .Id }}</td>
|
2022-04-30 10:45:31 +03:00
|
|
|
<td>{{ site .SiteId }}</td>
|
2022-04-29 15:21:27 +03:00
|
|
|
</tr>
|
|
|
|
{{- end}}{{- end}}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{- end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{- end }}
|