summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59dde7f)
raw | patch | inline | side by side (parent: 59dde7f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Aug 2007 08:26:02 +0000 (08:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Aug 2007 08:26:02 +0000 (08:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7166 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNS.inc | patch | blob | history | |
plugins/admin/systems/servdns.tpl | patch | blob | history |
index 34af08f036d34feaa0d3c684b86d4427693ea521..92d0b2a78a470ed4da0cb3ee7fad25745f2d157f 100644 (file)
/* Fill templating stuff
*/
$smarty= get_smarty();
+ $smarty->assign("is_createable",$this->acl_is_createable());
$display= "";
/* Do we need to flip is_account state?
/* Add entries to divlist
*/
- $editImg = "<input type='image' src='images/edit.png' name='editZone_%s'>
- <input type='image' src='images/edittrash.png' name='delZone_%s'>";
+ $editImg = "<input type='image' src='images/edit.png' name='editZone_%s'>";
+ if($this->acl_is_removeable()){
+ $editImg.= "<input type='image' src='images/edittrash.png' name='delZone_%s'>";
+ }
$link = "<a href='?plug=".$_GET['plug']."&act=edit&id=%s'>%s</a>";
foreach($this->Zones as $zone => $values ){
index 62909377908d75b5a3880b27370fa2ae960d954b..d19027c72e6d40cea0f74105716739f3d2004aaf 100644 (file)
<tr>
<td style="width:100%;vertical-align:top;">
{$ZoneList}
+ {if $is_createable}
<input type="submit" name="AddZone" value="{t}Add{/t}">
- <input type="submit" name="EditZone" value="{t}Edit{/t}">
- <input type="submit" name="RemoveZone" value="{t}Remove{/t}">
+ {else}
+ <input type="button" value="{t}Add{/t}" disabled>
+ {/if}
</td>
</tr>
</table>