dorfylegends/backend/templates/artforms.html

77 lines
2.7 KiB
HTML
Raw Normal View History

2022-04-28 22:24:55 +03:00
{{template "layout.html" .}}
2022-05-04 12:42:02 +03:00
{{define "title"}}Art Forms{{end}}
2022-04-28 22:24:55 +03:00
{{define "content"}}
2022-05-04 12:42:02 +03:00
<h3>Art Forms</h3>
2022-04-28 22:24:55 +03:00
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
2022-05-06 16:16:16 +03:00
{{ $active := " active"}}
2022-04-28 22:24:55 +03:00
{{- range $t, $v := .DanceForms }}
2022-05-11 10:45:17 +03:00
<a class="nav-link{{$active}}" data-bs-toggle="tab" data-bs-target="#nav-{{kebab $t}}" type="button" role="tab">{{$t}} ({{
len $v }})</a>
2022-05-06 16:16:16 +03:00
{{ $active = ""}}{{- end}}
2022-04-28 22:24:55 +03:00
{{- range $t, $v := .MusicalForms }}
2022-05-11 10:45:17 +03:00
<a class="nav-link{{$active}}" data-bs-toggle="tab" data-bs-target="#nav-{{kebab $t}}" type="button" role="tab">{{$t}} ({{ len
$v }})</a>
2022-05-06 16:16:16 +03:00
{{ $active = ""}}{{- end}}
2022-04-28 22:24:55 +03:00
{{- range $t, $v := .PoeticForms }}
2022-05-11 10:45:17 +03:00
<a class="nav-link{{$active}}" data-bs-toggle="tab" data-bs-target="#nav-{{kebab $t}}" type="button" role="tab">{{$t}} ({{ len
$v }})</a>
2022-05-06 16:16:16 +03:00
{{ $active = ""}}{{- end}}
2022-04-28 22:24:55 +03:00
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
2022-05-06 16:16:16 +03:00
{{ $active := " active"}}
2022-04-28 22:24:55 +03:00
{{- range $t, $v := .DanceForms }}
2022-05-06 16:16:16 +03:00
<div class="tab-pane{{$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">
2022-04-28 22:24:55 +03:00
<tr>
<th width="100%">Name</th>
<th>Size</th>
</tr>
{{- range $v }}{{- if not (eq .Name "") }}
<tr>
<td>{{ danceForm .Id }}</td>
<td></td>
</tr>
{{- end}}{{- end}}
</table>
</div>
2022-05-06 16:16:16 +03:00
{{ $active = ""}}{{- end}}
2022-04-28 22:24:55 +03:00
{{- range $t, $v := .MusicalForms }}
2022-05-06 16:16:16 +03:00
<div class="tab-pane{{$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">
2022-04-28 22:24:55 +03:00
<tr>
<th width="100%">Name</th>
<th>Size</th>
</tr>
{{- range $v }}{{- if not (eq .Name "") }}
<tr>
<td>{{ musicalForm .Id }}</td>
<td></td>
</tr>
{{- end}}{{- end}}
</table>
</div>
2022-05-06 16:16:16 +03:00
{{ $active = ""}}{{- end}}
2022-04-28 22:24:55 +03:00
{{- range $t, $v := .PoeticForms }}
2022-05-06 16:16:16 +03:00
<div class="tab-pane{{$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-28 22:24:55 +03:00
<tr>
<th width="100%">Name</th>
<th>Size</th>
</tr>
{{- range $v }}{{- if not (eq .Name "") }}
<tr>
<td>{{ poeticForm .Id }}</td>
<td></td>
</tr>
{{- end}}{{- end}}
</table>
</div>
2022-05-06 16:16:16 +03:00
{{ $active = ""}}{{- end}}
2022-04-28 22:24:55 +03:00
</div>
{{- end }}