adiciona tabela com sort para os registros
This commit is contained in:
@@ -21,13 +21,29 @@
|
||||
</div>
|
||||
{{ if .Zone.RRSets }}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-vcenter card-table">
|
||||
<table class="table table-vcenter card-table" data-sortable-table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nome</th>
|
||||
<th>Tipo</th>
|
||||
<th>TTL</th>
|
||||
<th>Registros</th>
|
||||
<th scope="col">
|
||||
<button class="table-sort" type="button" data-sort-index="0" data-sort-type="text">
|
||||
Nome <span class="sort-indicator" aria-hidden="true"></span>
|
||||
</button>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<button class="table-sort" type="button" data-sort-index="1" data-sort-type="text">
|
||||
Tipo <span class="sort-indicator" aria-hidden="true"></span>
|
||||
</button>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<button class="table-sort" type="button" data-sort-index="2" data-sort-type="number">
|
||||
TTL <span class="sort-indicator" aria-hidden="true"></span>
|
||||
</button>
|
||||
</th>
|
||||
<th scope="col">
|
||||
<button class="table-sort" type="button" data-sort-index="3" data-sort-type="text">
|
||||
Registros <span class="sort-indicator" aria-hidden="true"></span>
|
||||
</button>
|
||||
</th>
|
||||
<th class="w-1"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -35,12 +51,12 @@
|
||||
{{ range .Zone.RRSets }}
|
||||
{{ $dynamic := dynamicRRSet $.Dynamic . }}
|
||||
<tr {{ if $dynamic }}class="table-info"{{ end }}>
|
||||
<td class="text-nowrap">{{ .Name }}</td>
|
||||
<td>
|
||||
<td class="text-nowrap" data-sort-value="{{ .Name }}">{{ .Name }}</td>
|
||||
<td data-sort-value="{{ .Type }}">
|
||||
<span class="badge bg-azure-lt">{{ .Type }}</span>
|
||||
{{ if $dynamic }}<span class="badge bg-green-lt">DNS dinamico</span>{{ end }}
|
||||
</td>
|
||||
<td>{{ .TTL }}</td>
|
||||
<td data-sort-value="{{ .TTL }}">{{ .TTL }}</td>
|
||||
<td>
|
||||
<div class="record-values">
|
||||
{{ range .Records }}
|
||||
|
||||
Reference in New Issue
Block a user