2022-04-27 22:44:39 +03:00
|
|
|
{{template "layout.html" .}}
|
|
|
|
|
|
|
|
{{define "title"}}Entities{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<h3>Entities</h3>
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
|
|
|
{{- range $t, $v := .}}
|
2022-04-28 21:14:33 +03:00
|
|
|
<button class="nav-link{{ ifFirst $ $t " active" }}" data-bs-toggle="tab" data-bs-target="#nav-{{$t}}" type="button"
|
|
|
|
role="tab">{{$t}}</button>
|
2022-04-27 22:44:39 +03:00
|
|
|
{{- end}}
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="tab-content" id="nav-tabContent">
|
|
|
|
{{- range $t, $v := . }}
|
2022-04-28 21:14:33 +03:00
|
|
|
<div class="tab-pane{{ ifFirst $ $t " active" }}" id="nav-{{$t}}" role="tabpanel" aria-labelledby="nav-home-tab">
|
2022-04-27 22:44:39 +03:00
|
|
|
<table>
|
|
|
|
<tr>
|
2022-04-28 21:14:33 +03:00
|
|
|
<th width="100%">Name</th>
|
2022-04-27 22:44:39 +03:00
|
|
|
<th>Race</th>
|
|
|
|
</tr>
|
|
|
|
{{- range $v }}{{- if not (eq .Name "") }}
|
|
|
|
<tr>
|
|
|
|
<td>{{ entity .Id }}</td>
|
|
|
|
<td>{{ .Race }}</td>
|
|
|
|
</tr>
|
|
|
|
{{- end}}{{- end}}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{{- end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{- end }}
|