Code

Updated dhcp service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Mar 2010 13:40:09 +0000 (13:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Mar 2010 13:40:09 +0000 (13:40 +0000)
-authoritative service wasn't selectable

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16457 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dhcp/admin/systems/services/dhcp/class_dhcpService.inc
gosa-plugins/dhcp/admin/systems/services/dhcp/dhcp_service.tpl
gosa-plugins/dhcp/admin/systems/services/dhcp/dhcp_sharedNetwork.tpl

index 925e6ac50090d27f7c6a4b4a73267a324d7cbf0f..d23821d5b3d8e3663074b47e82e35a09a2d4f7ba 100644 (file)
@@ -67,7 +67,7 @@ class dhcpService extends dhcpPlugin
       $smarty->assign("$value", $this->statements->get(preg_replace('/_/', '-', $value)));
     }
 
-    $smarty->assign("authoritative", $this->statements->get('authoritative'));
+    $smarty->assign("authoritative", $this->statements->exists('authoritative'));
 
     /* Show main page */
     $display= $smarty->fetch(get_template_path('dhcp_service.tpl', TRUE, dirname(__FILE__))).$this->network->execute();
index 594ae7bc24b7110022ce557c2a8a8de0171ff805..1e65cb56d9ed3a67185d3ba3393cbe8dc4d561a0 100644 (file)
@@ -4,7 +4,7 @@
  <tr>
   <td width="50%">
 {render acl=$acl}
-  <input id='authoritative' type=checkbox name="authoritative" value="1" {$authoritative}> {t}Authoritative service{/t}<br>
+  <input id='authoritative' type=checkbox name="authoritative" value="1" {if $authoritative} checked {/if}> {t}Authoritative service{/t}<br>
 {/render}
   <br>
   {t}Dynamic DNS update{/t} 
index 222d0e5cc7acc383755bd13c45fc93bb3446639d..4d571daba075fd3513f393dcdf26ed688862e7c3 100644 (file)
@@ -32,7 +32,7 @@
     <tr>
      <td>
 {render acl=$acl}
-      <input type=checkbox name="authoritative" value="1" {$authoritative}
+      <input type=checkbox name="authoritative" value="1" {if $authoritative} checked {/if}
        title="{t}Select if this server is authoritative for this shared network{/t}">{t}Authoritative server{/t}
 {/render}
      </td>