summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/api_keys.html13
-rw-r--r--templates/dns.html28
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 }}