summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f911b8)
raw | patch | inline | side by side (parent: 8f911b8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Sep 2010 13:08:00 +0000 (13:08 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19602 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_termDNS.inc | patch | blob | history | |
gosa-plugins/systems/admin/systems/network.tpl | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index 2e4e3e70a1b309ad6532aca6a2f6786b8114fa0a..0c7fb3f42d2d9e39e590f65258e474c1254280d0 100644 (file)
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){
diff --git a/gosa-plugins/systems/admin/systems/network.tpl b/gosa-plugins/systems/admin/systems/network.tpl
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>