-
Notifications
You must be signed in to change notification settings - Fork 41
/
clientareadomaindns.tpl
90 lines (80 loc) · 5.29 KB
/
clientareadomaindns.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<div class="card">
<div class="card-body">
<h3 class="card-title">{lang key='domaindnsmanagement'}</h3>
{include file="$template/includes/alert.tpl" type="info" msg="{lang key='domaindnsmanagementdesc'}"}
{if $error}
{include file="$template/includes/alert.tpl" type="error" msg=$error}
{/if}
{if $external}
<div class="text-center px-4">
{$code}
</div>
{else}
<form method="post" action="{$smarty.server.PHP_SELF}?action=domaindns">
<input type="hidden" name="sub" value="save" />
<input type="hidden" name="domainid" value="{$domainid}" />
<table class="table table-striped">
<thead>
<tr>
<th>{lang key='domaindnshostname'}</th>
<th>{lang key='domaindnsrecordtype'}</th>
<th>{lang key='domaindnsaddress'}</th>
<th>{lang key='domaindnspriority'}</th>
</tr>
</thead>
<tbody>
{foreach $dnsrecords as $dnsrecord}
<tr>
<td><input type="hidden" name="dnsrecid[]" value="{$dnsrecord.recid}" /><input type="text" name="dnsrecordhost[]" value="{$dnsrecord.hostname}" size="10" class="form-control" /></td>
<td>
<select name="dnsrecordtype[]" class="form-control">
<option value="A"{if $dnsrecord.type eq "A"} selected="selected"{/if}>{lang key="domainDns.a"}</option>
<option value="AAAA"{if $dnsrecord.type eq "AAAA"} selected="selected"{/if}>{lang key="domainDns.aaaa"}</option>
<option value="MXE"{if $dnsrecord.type eq "MXE"} selected="selected"{/if}>{lang key="domainDns.mxe"}</option>
<option value="MX"{if $dnsrecord.type eq "MX"} selected="selected"{/if}>{lang key="domainDns.mx"}</option>
<option value="CNAME"{if $dnsrecord.type eq "CNAME"} selected="selected"{/if}>{lang key="domainDns.cname"}</option>
<option value="TXT"{if $dnsrecord.type eq "TXT"} selected="selected"{/if}>{lang key="domainDns.txt"}</option>
<option value="URL"{if $dnsrecord.type eq "URL"} selected="selected"{/if}>{lang key="domainDns.url"}</option>
<option value="FRAME"{if $dnsrecord.type eq "FRAME"} selected="selected"{/if}>{lang key="domainDns.frame"}</option>
</select>
</td>
<td><input type="text" name="dnsrecordaddress[]" value="{$dnsrecord.address}" size="40" class="form-control" /></td>
<td>
{if $dnsrecord.type eq "MX"}<input type="text" name="dnsrecordpriority[]" value="{$dnsrecord.priority}" size="2" class="form-control" />{else}<input type="hidden" name="dnsrecordpriority[]" value="N/A" />{lang key='domainregnotavailable'}{/if}
</td>
</tr>
{/foreach}
<tr>
<td><input type="text" name="dnsrecordhost[]" size="10" class="form-control" /></td>
<td>
<select name="dnsrecordtype[]" class="form-control">
<option value="A">{lang key="domainDns.a"}</option>
<option value="AAAA">{lang key="domainDns.aaaa"}</option>
<option value="MXE">{lang key="domainDns.mxe"}</option>
<option value="MX">{lang key="domainDns.mx"}</option>
<option value="CNAME">{lang key="domainDns.cname"}</option>
<option value="TXT">{lang key="domainDns.txt"}</option>
<option value="URL">{lang key="domainDns.url"}</option>
<option value="FRAME">{lang key="domainDns.frame"}</option>
</select>
</td>
<td><input type="text" name="dnsrecordaddress[]" size="40" class="form-control" /></td>
<td><input type="text" name="dnsrecordpriority[]" size="2" class="form-control" /></td>
</tr>
</tbody>
</table>
<p class="text-right text-muted">
<small>* {lang key='domaindnsmxonly'}</small>
</p>
<div class="text-center">
<button type="submit" class="btn btn-primary">
{lang key='clientareasavechanges'}
</button>
<button type="reset" class="btn btn-default">
{lang key='clientareacancel'}
</button>
</div>
</form>
{/if}
</div>
</div>