12 lines
401 B
HTML
12 lines
401 B
HTML
|
{{define "content_table"}}
|
||
|
<table class="table table-hover" {{ if .ID }}id="{{.ID}}"{{end}}>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
{{range $index, $col := .AllTH}}<th {{ if .ID }}id="{{.ID}}"{{end}} scope="col">{{ $col.Value }}</th>{{end}}
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{{range .AllTD}}<tr scope="row">{{range .}}<td {{ if .ID }}id="{{.ID}}"{{end}}>{{ .Value }}</td>{{end}}</tr>{{end}}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{{end}}
|