corrige bug com registro txt e tradução

This commit is contained in:
2026-07-12 03:41:49 -03:00
parent 1901055e25
commit e629b829a3
9 changed files with 362 additions and 222 deletions

View File

@@ -2,14 +2,14 @@
<div class="page-header d-print-none">
<div class="row align-items-center">
<div class="col">
<div class="page-pretitle">Zone</div>
<div class="page-pretitle">Zona</div>
<h2 class="page-title">{{ .Zone.Name }}</h2>
<div class="text-secondary">{{ len .Zone.RRSets }} RRsets</div>
<div class="text-secondary">{{ len .Zone.RRSets }} conjuntos de registros</div>
</div>
<div class="col-auto ms-auto">
<div class="btn-list">
<a class="btn btn-outline-secondary" href="/zones">Back to zones</a>
<a class="btn btn-primary" href="/zones/{{ .ZoneID }}/rrsets/new">Add record</a>
<a class="btn btn-outline-secondary" href="/zones">Voltar para zonas</a>
<a class="btn btn-primary" href="/zones/{{ .ZoneID }}/rrsets/new">Adicionar registro</a>
</div>
</div>
</div>
@@ -17,17 +17,17 @@
<div class="card">
<div class="card-header">
<h3 class="card-title">Records</h3>
<h3 class="card-title">Registros</h3>
</div>
{{ if .Zone.RRSets }}
<div class="table-responsive">
<table class="table table-vcenter card-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Nome</th>
<th>Tipo</th>
<th>TTL</th>
<th>Records</th>
<th>Registros</th>
<th class="w-1"></th>
</tr>
</thead>
@@ -46,13 +46,13 @@
</td>
<td>
<div class="btn-list flex-nowrap">
<a class="btn btn-outline-primary btn-sm" href="/zones/{{ $.ZoneID }}/rrsets/edit?name={{ urlQuery .Name }}&type={{ urlQuery .Type }}">Edit</a>
<a class="btn btn-outline-primary btn-sm" href="/zones/{{ $.ZoneID }}/rrsets/edit?name={{ urlQuery .Name }}&type={{ urlQuery .Type }}">Editar</a>
{{ if not (isSOA .Type) }}
<form method="post" action="/zones/{{ $.ZoneID }}/rrsets/delete">
<input type="hidden" name="csrf_token" value="{{ $.CSRFToken }}">
<input type="hidden" name="name" value="{{ .Name }}">
<input type="hidden" name="type" value="{{ .Type }}">
<button class="btn btn-outline-danger btn-sm" type="submit">Delete</button>
<button class="btn btn-outline-danger btn-sm" type="submit">Excluir</button>
</form>
{{ end }}
</div>
@@ -63,7 +63,7 @@
</table>
</div>
{{ else }}
<div class="card-body text-secondary">No records returned for this zone.</div>
<div class="card-body text-secondary">Nenhum registro retornado para esta zona.</div>
{{ end }}
</div>
{{ end }}