Code

Updated DNS selector
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Sep 2010 13:08:00 +0000 (13:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Sep 2010 13:08:00 +0000 (13:08 +0000)
-Fixed some rendering issues

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

gosa-plugins/systems/admin/systems/class_termDNS.inc
gosa-plugins/systems/admin/systems/network.tpl

index 2e4e3e70a1b309ad6532aca6a2f6786b8114fa0a..0c7fb3f42d2d9e39e590f65258e474c1254280d0 100644 (file)
@@ -970,12 +970,6 @@ class termDNS extends plugin
         function generateRecordsList()
         {
             $changeStateForRecords = "";
-
-            if(!$this->DNS_is_account) {
-                $str = "<button type='submit' name='AddNewRecord' id='AddNewRecord' disabled='disabled'>".msgPool::addButton()."</button>";
-                return(array("str" => $str, "changeStateForRecords"=> ""));
-            }
-
             $str = "<table summary='' width='100%'>";
             foreach($this->dnsEntry['RECORDS'] as $key => $entry){
 
index 57155dab142434dfa11ace7ca04f41f1a5cc1361..062daf24651ff38f403ff36689cfb9a0a3985e3a 100644 (file)
       
 {render acl=$dnsSetupACL}
       {if $DNS_is_account == true}
+
       {if $hide_dns_check_box} 
-        <input type="hidden" name="DNS_is_account" value="1"  
+        <input type="hidden" name="DNS_is_account" value="1"> 
         <input type="checkbox" name="dummy" value="1" disabled
-
+            checked="checked" />
       {else}
         <input type="checkbox" name="DNS_is_account" value="1"  
+            checked="checked" onclick="$('test2').toggle(); $('propose_ip').toggle();"/>
       {/if}
 
-
-        checked="checked"
-        onclick="
-          $('test2').toggle();
-          changeState('zoneName');
-          changeState('dNSTTL');
-          $('propose_ip').toggle();
-          changeState('AddNewRecord');
-          {$changeStateForRecords}"/>
         {else}
       <input type="checkbox" name="DNS_is_account" value="1"  
-        onclick="$('test2').toggle();
-          changeState('zoneName');
-          changeState('dNSTTL');
+        onclick="
+          $('test2').toggle();
           $('propose_ip').toggle();
-          changeState('AddNewRecord');"/>
+          "/>
         {/if}
 {/render}
       {t}Enable DNS for this device{/t}
-      {image path="images/lists/reload.png" action="reloadThisDNSStuff"}
-
       {if $DNS_is_account == true}
       <div style="padding-left:20px" id="test2">
       {else}
         <tr>
           <td valign="top">{t}DNS records{/t}</td>
           <td>
-            {if $DNS_is_account == true}
 {render acl=$dnsSetupACL}
               {$records}
 {/render}
-            {/if}
           </td>
                                </tr>
                        </table>