diff options
| author | simponic <simponic@hatecomputers.club> | 2024-03-28 16:58:07 -0400 |
|---|---|---|
| committer | simponic <simponic@hatecomputers.club> | 2024-03-28 16:58:07 -0400 |
| commit | 60fc4ebb599d82f5c7ddaca52f8aba74f0876381 (patch) | |
| tree | abe1eebb6154453cfa67812d7dfc982d758931a0 /templates | |
| parent | dee173cc63d3b51d47c1a321096a4963fe458075 (diff) | |
| download | hatecomputers.club-60fc4ebb599d82f5c7ddaca52f8aba74f0876381.tar.gz hatecomputers.club-60fc4ebb599d82f5c7ddaca52f8aba74f0876381.zip | |
internal recursive dns server (#2)
Co-authored-by: Lizzy Hunt <lizzy.hunt@usu.edu>
Reviewed-on: https://git.hatecomputers.club/hatecomputers/hatecomputers.club/pulls/2
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/api_keys.html | 13 | ||||
| -rw-r--r-- | templates/dns.html | 28 |
2 files changed, 27 insertions, 14 deletions
diff --git a/templates/api_keys.html b/templates/api_keys.html index 93eebd5..0aa3094 100644 --- a/templates/api_keys.html +++ b/templates/api_keys.html @@ -28,13 +28,12 @@ <h2>Add An API Key</h2> <hr> <input type="submit" value="Generate" /> - </form> - - {{ if .FormError }} + {{ if .FormError }} {{ if (len .FormError.Errors) }} - {{ range $error := .FormError.Errors }} - <div class="error">{{ $error }}</div> - {{ end }} + {{ range $error := .FormError.Errors }} + <div class="error">{{ $error }}</div> + {{ end }} {{ end }} - {{ end }} + {{ end }} + </form> {{ end }} diff --git a/templates/dns.html b/templates/dns.html index e317d05..8ea7bee 100644 --- a/templates/dns.html +++ b/templates/dns.html @@ -5,11 +5,12 @@ <th>Name</th> <th>Content</th> <th>TTL</th> + <th>Internal</th> <th>Delete</th> </tr> {{ if (eq (len .DNSRecords) 0) }} <tr> - <td colspan="5"><span class="blinky">No DNS records found</span></td> + <td colspan="6"><span class="blinky">No DNS records found</span></td> </tr> {{ end }} {{ range $record := .DNSRecords }} @@ -17,6 +18,7 @@ <td>{{ $record.Type }}</td> <td>{{ $record.Name }}</td> <td>{{ $record.Content }}</td> + <td>{{ $record.Internal }}</td> <td>{{ $record.TTL }}</td> <td> <form method="POST" action="/dns/delete"> @@ -64,14 +66,26 @@ value="{{ .RecordForm.TTL }}" {{ end }} required /> + <label for="internal"> + Internal + <input style='display:inline;width:auto;' type="checkbox" name="internal" + {{ if .RecordForm.Internal }} + checked + {{ end }} + /> + </label> + + <input type="submit" value="Add" /> - </form> - {{ if .FormError }} + {{ if .FormError }} {{ if (len .FormError.Errors) }} - {{ range $error := .FormError.Errors }} - <div class="error">{{ $error }}</div> - {{ end }} + {{ range $error := .FormError.Errors }} + <div class="error">{{ $error }}</div> + {{ end }} {{ end }} - {{ end }} + {{ end }} + </form> + + {{ end }} |
