Code

Some slightly modifications in dns settings. The add button is not visible yet -...
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 13:04:22 +0000 (13:04 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 May 2006 13:04:22 +0000 (13:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3465 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 9c2ef6fc8fa6083641ce6096109ea2a4b0d726ea..06af668ebef3a149dd66c28334885c5c0e92c73f 100644 (file)
@@ -424,7 +424,7 @@ class termDNS extends plugin
     $changeStateForRecords = "";
     
     if(!$this->DNS_is_account) {
-      $str = "<input type='submit' value='"._("Add")."' name='AddNewRecord' id='AddNewRecord' disabled>";
+      $str = "<input type='submit' value='"._("Add")."' name='AddNewRecord' id='AddNewRecord' disabled='disabled'>";
       return $str;
     }
  
index dbe85d9bf3ae1a75bbcdd5b9db3c9ad7a7a951c3..a2188b5757c6ff483db73ff07e52c4a9801b5ff2 100644 (file)
     {if $DNS_is_account==true}
                <td     style="width:50%;vertical-align:top;border-left:1px solid #b0b0b0;" valign="top">
       <input type="checkbox" name="enableDNS" value="1" 
-        {if $DNSAccount==true}checked{/if}
-        onClick="
-          setHidden('test2');
+        {if $DNSAccount == true}checked="checked"
+        onclick="toggle('test2');
           changeState('zoneName');
           changeState('dNSTTL');
           changeState('AddNewRecord');
           {$changeStateForRecords}
-                ">
+      "/>
+        {else}
+        onclick="toggle('test2');
+          changeState('zoneName');
+          changeState('dNSTTL');
+          changeState('AddNewRecord');
+      "/>
+        {/if}
       {t}Enable DNS for this device{/t}
-      <input type="submit" name="reloadThisDNSStuff" value="{t}Refresh{/t}">
-      <div style="padding-left:20px;">  
-                       <table  summary="" id="test2">
+      <input type="submit" name="reloadThisDNSStuff" value="{t}Refresh{/t}"/>
+      {if $DNSAccount == true}
+      <div style="padding-left:20px;visibility:visible;" id="test2">
+      {else}
+      <div style="padding-left:20px;visibility:hidden;" id="test2">
+      {/if}
+                       <table summary="">
                                <tr>
                                        <td><LABEL      for="zoneName">{t}Zone{/t}</LABEL></td>
                                        <td>
-              <select name="zoneName" id="zoneName" {if $DNSAccount == false} disabled {/if}>
+              <select name="zoneName" id="zoneName" {if $DNSAccount == false} disabled='disabled' {/if}>
                 {html_options values=$ZoneKeys output=$Zones selected=$zoneName}
               </select>
           </td>
                                </tr>
                                <tr>
           <td>{t}TTL{/t}</td>
-          <td><input type="text" name="dNSTTL" value="{$dNSTTL}" id="dNSTTL" {if $DNSAccount == false} disabled {/if}>
+          <td><input type="text" name="dNSTTL" value="{$dNSTTL}" id="dNSTTL" {if $DNSAccount == false} disabled='disabled' {/if}>
           </td> 
                                </tr>
                                <tr>
           <td valign="top">{t}Dns records{/t}</td>
           <td>
-            {$records}
+            {if $DNSAccount == true}{$records}{/if}
             </td>
                                </tr>
                        </table>
       </div>
                </td>
-       {if $DNSAccount != true}
-        <script language="javascript">
-        <!--
-          document.getElementById('test2').style.display='none';
-        -->
-        </script>
-       {/if}
     {/if}
     
        </tr>