diff options
Diffstat (limited to 'templates/dns.html')
| -rw-r--r-- | templates/dns.html | 28 |
1 files changed, 21 insertions, 7 deletions
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 }} |
