index 13297a34cfd458f8257992dc4dd2229aa3c83520..1136dba537a09e3435f173680e32ce65cf9054ac 100644 (file)
-<h2>{t}Zone settings{/t}</h2>
+<h2>{t}Generic{/t}</h2>
<table summary="" width="100%">
<tr>
<td style="width:50%;vertical-align:top;border-right:1px solid #b0b0b0;">
<table summary="">
<tr>
- <td>{t}Zone name{/t}
+ <td>{t}Zone name{/t}{$must}
</td>
- <td><input type="text" name="zoneName" value="{$zoneName}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="zoneName" value="{$zoneName}" {if $NotNew} disabled {/if}>
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Network address{/t}{$must}
+ </td>
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="ReverseZone" value="{$ReverseZone}" {if $NotNew} disabled {/if}>
+{/render}
+ </td>
+ </tr>
+ <tr>
+ <td>{t}Netmask{/t}
+ </td>
+ <td>
+{render acl=$ACLs}
+ <select name="NetworkClass" {if $NotNew} disabled {/if}>
+ {html_options options=$NetworkClasses selected=$NetworkClass }
+ </select>
+{/render}
</td>
</tr>
</table>
<td style="vertical-align:top;">
<table summary="">
<tr>
- <td>{t}Subnet{/t}
+ <td>
+ {t}Zone records{/t}
+ <br>
+ {if $AllowZoneEdit == false}
+ <i>{t}Can't be edited because the zone wasn't saved right now.{/t}</i>
+ {/if}
</td>
- <td><input type="text" name="ReverseZone" value="{$ReverseZone}">
+ <td>
+{render acl=$ACLs}
+ <input type="submit" name="EditZoneEntries" value="{t}Edit{/t}" {if $AllowZoneEdit == false} disabled {/if}>
+{/render}
</td>
</tr>
</table>
</tr>
</table>
<p class="seperator"> </p>
-<h2>{t}SOA record for this zone{/t}</h2>
+<h2>{t}SOA record{/t}</h2>
<table summary="" width="100%">
<tr>
<td style="vertical-align:top;width:50%;border-right:1px solid #b0b0b0;">
<tr>
<td>{t}Primary dns server for this zone{/t}{$must}
</td>
- <td><input type="text" name="sOAprimary" value="{$sOAprimary}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOAprimary" value="{$sOAprimary}">
+{/render}
</td>
</tr>
<tr>
<td>{t}Mail address{/t}{$must}
</td>
- <td><input type="text" name="sOAmail" value="{$sOAmail}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOAmail" value="{$sOAmail}">
+{/render}
</td>
</tr>
<tr>
<td>{t}Serial number (automatically incremented){/t}{$must}
</td>
- <td><input type="text" name="sOAserial" value="{$sOAserial}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOAserial" value="{$sOAserial}">
+{/render}
</td>
</tr>
</table>
<tr>
<td>{t}Refresh{/t}{$must}
</td>
- <td><input type="text" name="sOArefresh" value="{$sOArefresh}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOArefresh" value="{$sOArefresh}">
+{/render}
</td>
</tr>
<tr>
<td>{t}Retry{/t}{$must}
</td>
- <td><input type="text" name="sOAretry" value="{$sOAretry}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOAretry" value="{$sOAretry}">
+{/render}
</td>
</tr>
<tr>
<td>{t}Expire{/t}{$must}
</td>
- <td><input type="text" name="sOAexpire" value="{$sOAexpire}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOAexpire" value="{$sOAexpire}">
+{/render}
</td>
</tr>
<tr>
<td>{t}TTL{/t}{$must}
</td>
- <td><input type="text" name="sOAttl" value="{$sOAttl}">
+ <td>
+{render acl=$ACLs}
+ <input type="text" name="sOAttl" value="{$sOAttl}">
+{/render}
</td>
</tr>
</table>
<table summary="" width="100%">
<tr>
<td style="vertical-align:top;width:50%;border-right:1px solid #b0b0b0;">
- <h2>{t}Parameter{/t}</h2>
- <table summary="">
- <tr>
- <td>{t}DNS TTL{/t}
- </td>
- <td>
- <input type="text" name="dNSTTL" value="{$dNSTTL}">
- </td>
- </tr>
+ <h2>{t}MxRecords{/t}</h2>
+ <table width="100%">
<tr>
- <td>{t}DNS Class{/t}
- </td>
<td>
- <input type="text" name="dNSClass" value="{$dNSClass}">
+{render acl=$ACLs}
+ {$Mxrecords}
+{/render}
+{render acl=$ACLs}
+ <input type="text" name="StrMXRecord" value="">
+{/render}
+{render acl=$ACLs}
+ <input type="submit" name="AddMXRecord" value="{t}Add{/t}">
+{/render}
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;">
- <h2>{t}Records{/t}</h2>
- <table summary="">
+ <h2>{t}Global zone records{/t}</h2>
+{render acl=$ACLs}
{$records}
- </table>
+{/render}
</td>
</tr>
</table>
<div style="text-algin:right;" align="right">
<p>
+{render acl=$ACLs}
<input type="submit" name="SaveZoneChanges" value="{t}Save{/t}">
+{/render}
<input type="submit" name="CancelZoneChanges" value="{t}Cancel{/t}">
</p>
</div>
+<script language="JavaScript" type="text/javascript">
+ <!-- // First input field on page
+ focus_field('zoneName');
+ -->
+</script>