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 { #ConfigureDNSTable {
width: 400px; display: inline-block;
float: left;
} }
/* Tables */ /* Tables */
+5 -4
View File
@@ -10,10 +10,11 @@ const { GetAllRecords, CoreDNSToDomain } = require('../coredns_bridge.js');
const { capitalizeFirstLetter } = require('../helpers.js'); const { capitalizeFirstLetter } = require('../helpers.js');
const recordTypeMap = { const recordTypeMap = {
"host": "A", "host": "A",
"cname": "CNAME", "cname": "CNAME",
"txt": "TXT", "txt": "TXT",
"srv": "SRV" "mx": "MX",
"srv": "SRV"
} }
// Manage domains // Manage domains
+22 -13
View File
@@ -1,17 +1,26 @@
<p>Configuring DNS records for {{domain.domain}}.{{domain.tld}}</p> <p>Configuring DNS records for {{domain.domain}}.{{domain.tld}}</p>
<table id="ConfigureDNSTable"> <div id="ConfigureDNSTable">
<tr> <table>
{{#each dnsRecordsHeaders}} <tr>
<th>{{this}}</th> {{#each dnsRecordsHeaders}}
<th>{{this}}</th>
{{/each}}
</tr>
{{#each dnsRecords}}
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/each}} {{/each}}
</tr> </table>
{{#each dnsRecords}} </div>
<tr>
{{#each this}}
<td>{{this}}</td>
{{/each}}
</tr>
{{/each}}
</table>
<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>