summaryrefslogtreecommitdiff
path: root/templates/dns.html
diff options
context:
space:
mode:
authorLizzy Hunt <lizzy.hunt@usu.edu>2024-03-29 16:35:04 -0600
committerLizzy Hunt <lizzy.hunt@usu.edu>2024-03-29 16:35:04 -0600
commit5080c566ac31ec622986c04f1812a1e88c88210e (patch)
treed8dbaa766ef21b098c5740880facc2989c750295 /templates/dns.html
parent7cc13887eae7dd2a61900751e038d273313d077f (diff)
downloadhatecomputers.club-5080c566ac31ec622986c04f1812a1e88c88210e.tar.gz
hatecomputers.club-5080c566ac31ec622986c04f1812a1e88c88210e.zip
guestbook!
Diffstat (limited to 'templates/dns.html')
-rw-r--r--templates/dns.html28
1 files changed, 15 insertions, 13 deletions
diff --git a/templates/dns.html b/templates/dns.html
index a794789..d16ed89 100644
--- a/templates/dns.html
+++ b/templates/dns.html
@@ -1,16 +1,17 @@
{{ define "content" }}
<table>
<tr>
- <th>Type</th>
- <th>Name</th>
- <th>Content</th>
- <th>TTL</th>
- <th>Internal</th>
- <th>Delete</th>
+ <th>type.</th>
+ <th>name.</th>
+ <th>content.</th>
+ <th>ttl.</th>
+ <th>internal.</th>
+ <th>created.</th>
+ <th>delete.</th>
</tr>
{{ if (eq (len .DNSRecords) 0) }}
<tr>
- <td colspan="6"><span class="blinky">No DNS records found</span></td>
+ <td colspan="7"><span class="blinky">no dns records found.</span></td>
</tr>
{{ end }}
{{ range $record := .DNSRecords }}
@@ -20,6 +21,7 @@
<td>{{ $record.Content }}</td>
<td>{{ $record.TTL }}</td>
<td>{{ $record.Internal }}</td>
+ <td class="time">{{ $record.CreatedAt }}</td>
<td>
<form method="POST" action="/dns/delete">
<input type="hidden" name="id" value="{{ $record.ID }}" />
@@ -31,10 +33,10 @@
</table>
<br>
<form method="POST" action="/dns" class="form">
- <h2>Add DNS Records</h2>
+ <h2>add dns records.</h2>
<p>note that the name <em>must</em> be a subdomain of <em>{{ .User.Username }}</em></p>
<hr>
- <label for="type">Type</label>
+ <label for="type">type.</label>
<input type="text" name="type" placeholder="CNAME"
{{ if not .RecordForm }}
placeholder="CNAME"
@@ -42,7 +44,7 @@
value="{{ .RecordForm.Type }}"
{{ end }}
required />
- <label for="name">Name</label>
+ <label for="name">name.</label>
<input type="text" name="name"
{{ if not .RecordForm }}
placeholder="{{ .User.Username }} || endpoint.{{ .User.Username }}..."
@@ -50,7 +52,7 @@
value="{{ .RecordForm.Name }}"
{{ end }}
required/>
- <label for="content">Content</label>
+ <label for="content">content.</label>
<input type="text" name="content"
{{ if not .RecordForm }}
placeholder="{{ .User.Username }}.dev"
@@ -58,7 +60,7 @@
value="{{ .RecordForm.Content }}"
{{ end }}
required />
- <label for="ttl">TTL</label>
+ <label for="ttl">ttl.</label>
<input type="text" name="ttl"
{{ if not .RecordForm }}
placeholder="43200"
@@ -67,7 +69,7 @@
{{ end }}
required />
<label for="internal">
- Internal
+ internal.
<input style='display:inline;width:auto;' type="checkbox" name="internal"
{{ if .RecordForm.Internal }}
checked