Code

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

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@16456 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 94f709ae7e2d5d4f41dc1a095e4ae0a6c5801dc9..e33beaf93c323ec1b070b9b0aa22e4ecfe98938e 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 b7467147f0b4026d08bc8af5a316934d1656c52f..2effa3e7952f809b44ae671b014004702e06a7af 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>