summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e78da8b)
raw | patch | inline | side by side (parent: e78da8b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 31 Aug 2007 08:16:32 +0000 (08:16 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 31 Aug 2007 08:16:32 +0000 (08:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7174 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZone.inc | patch | blob | history | |
plugins/admin/systems/class_termDNS.inc | patch | blob | history | |
plugins/admin/systems/network.tpl | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index 615ede4bcef337a0896fc2cc34e54da61238fb2b..1605df4b399a5a05f077c1bdaae8d9f58e8738ed 100644 (file)
/* Fill templating stuff */
$smarty= get_smarty();
$ui = get_userinfo();
- $smarty->assign("ACLs",$ui->get_permissions($this->dn,"server/servdns"));
+
+ $smarty->assign("ACLs",$this->parent->getacl(""));
$display= "";
/* Open Zone Entry Edit Dialog
index b816a40b3c2fb69a5011e26952c74ad39ea965b3..db458e56328c9519429e6bb1d8d63b715c60afda 100644 (file)
/* Hide all dns specific code, if dns is not available
*/
- $DNSenabled = false;
foreach($_SESSION['config']->data['TABS']['SERVERSERVICE'] as $tab){
if(preg_match("/^servdns$/",$tab['CLASS'])){
$tmp['plProvidedAcls']["Records"] = _("DNS records");
index a6c88361943fc20ae13cc75e6cb322eb16d4f05f..ec5d17c93bd89dd360a3e1426a7fce66c7374d9e 100644 (file)
<table summary="">
<tr>
<td><LABEL for="ipHostNumber">{t}IP-address{/t}{if $IPisMust}{$staticAddress}{/if}</LABEL></td>
- <td><input id="ipHostNumber" name="ipHostNumber" size=25 maxlength=80 value="{$ipHostNumber}" {$ipHostNumberACL}></td>
+ <td>
+{render acl=$ipHostNumberACL}
+ <input id="ipHostNumber" name="ipHostNumber" size=25 maxlength=80 value="{$ipHostNumber}">
+{/render}
+ </td>
</tr>
<tr>
<td><LABEL for="macAddress">{t}MAC-address{/t}</LABEL>{$staticAddress}</td>
<td>
- <input name="macAddress" id="macAddress" size=25 maxlength=80 value="{$macAddress}" {$macAddressACL}>
+{render acl=$macAddressACL}
+ <input name="macAddress" id="macAddress" size=25 maxlength=80 value="{$macAddress}">
+{/render}
{if $autonet==true}
<input type="submit" name="autonet" value="{t}Autodetect{/t}"
{if ($ipHostNumberACL !="" || $macAddressACL!= "")} disabled {/if}>
</td>
{if $DNS_is_account==true}
<td style="width:50%;vertical-align:top;border-left:1px solid #b0b0b0;" valign="top">
+ {if $DNSAccount == true}
<input type="checkbox" name="DNS_is_account" value="1"
- {if $DNSAccount == true}checked="checked"
+ checked="checked"
onclick="toggle('test2');
changeState('zoneName');
changeState('dNSTTL');
changeState('AddNewRecord');
- {$changeStateForRecords}
- "/>
+ {$changeStateForRecords}"/>
{else}
+ <input type="checkbox" name="DNS_is_account" value="1"
onclick="toggle('test2');
changeState('zoneName');
changeState('dNSTTL');
- changeState('AddNewRecord');
- "/>
+ changeState('AddNewRecord');"/>
{/if}
+
{t}Enable DNS for this device{/t}
- <input type='image' src='images/list_reload.png' class='center' name="reloadThisDNSStuff" />
+ <input type='image' src='images/list_reload.png' class='center' name="reloadThisDNSStuff" >
{if $DNSAccount == true}
<div style="padding-left:20px;visibility:visible;" id="test2">
{else}
<td><LABEL for="zoneName">{t}Zone{/t}</LABEL></td>
<td>
{render acl=$zoneNameACL}
- <select name="zoneName" id="zoneName" {if $DNS_is_account == false} disabled='disabled' {/if}>
+ <select name="zoneName" id="zoneName" {if $DNSAccount == false} disabled {/if}>
{html_options values=$ZoneKeys output=$Zones selected=$zoneName}
</select>
{/render}
<td>{t}TTL{/t}</td>
<td>
{render acl=$dNSTTLACL}
- <input type="text" name="dNSTTL" value="{$dNSTTL}" id="dNSTTL" {if $DNS_is_account == false} disabled {/if}>
+ <input type="text" name="dNSTTL" value="{$dNSTTL}" id="dNSTTL" {if $DNSAccount == false} disabled {/if}>
{/render}
</td>
</tr>