chore(ui): add module file and main stub
- chore(ui): add module file and main stub - feat(ui): add layout, pages and partials - feat(ui): add stylesheet and scripts - feat(ui): add page renderer and static file handler - test(ui): cover rendering, escaping and static serving
This commit is contained in:
1 parent
7089a6f408
commit
5ac8f98f10
26 files changed
+3921
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{{- /* SPDX-License-Identifier: GPL-2.0-or-later */ -}}
|
||||
{{- /* Copyright (C) 2026 Bryan Joshua Pedini */ -}}
|
||||
{{define "title"}}Zones{{end}}
|
||||
{{define "content"}}<div class="page-head">
|
||||
<h1>Zones</h1>
|
||||
{{if .IsAdmin}}<button type="button" class="btn btn-primary" id="new-zone">New zone</button>
|
||||
{{end}}</div>
|
||||
<div class="toolbar">
|
||||
<div class="field">
|
||||
<label for="zone-search">Search zones</label>
|
||||
<input id="zone-search" type="search" autocomplete="off" spellcheck="false">
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-wrap">
|
||||
<table class="table" id="zones-table">
|
||||
<thead>
|
||||
<tr><th scope="col">Zone</th><th scope="col" class="num">Records</th><th scope="col">SOA serial</th><th scope="col">Problems</th></tr>
|
||||
</thead>
|
||||
<tbody id="zones-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="muted" id="zones-status" role="status">Loading zones...</p>
|
||||
{{if .IsAdmin}}{{template "zone_create_dialog" .}}{{end}}{{end}}
|
||||
Reference in new issue
Block a user