update DNS page

This commit is contained in:
2026-05-14 17:51:43 -04:00
parent e015d8d63b
commit b45ed4fe88
3 changed files with 29 additions and 18 deletions
+2 -1
View File
@@ -104,7 +104,8 @@ body {
}
#ConfigureDNSTable {
width: 400px;
display: inline-block;
float: left;
}
/* Tables */
+5 -4
View File
@@ -10,10 +10,11 @@ const { GetAllRecords, CoreDNSToDomain } = require('../coredns_bridge.js');
const { capitalizeFirstLetter } = require('../helpers.js');
const recordTypeMap = {
"host": "A",
"cname": "CNAME",
"txt": "TXT",
"srv": "SRV"
"host": "A",
"cname": "CNAME",
"txt": "TXT",
"mx": "MX",
"srv": "SRV"
}
// Manage domains
+22 -13
View File
@@ -1,17 +1,26 @@
<p>Configuring DNS records for {{domain.domain}}.{{domain.tld}}</p>
<table id="ConfigureDNSTable">
<tr>
{{#each dnsRecordsHeaders}}
<th>{{this}}</th>
<div id="ConfigureDNSTable">
<table>
<tr>
{{#each dnsRecordsHeaders}}
<th>{{this}}</th>
{{/each}}
</tr>
{{#each dnsRecords}}
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/each}}
</tr>
{{#each dnsRecords}}
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/each}}
</table>
</table>
</div>
<div class="ContentBox" id="DomainOptions">
<div style="width: 200px;"></div>
<p class="TitleText">Options</p>
<ul>
<li><a href="/dns/new">Add New Record</a></li>
</ul>
</div>