1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From: Guido Berhoerster <guido@berhoerster.name>
Subject: Fix DHCP and DNS checkboxes when adding systems
This changes the checkboxes on the network template of the default theme so
that they conform to the markup structure expected by materialize.css.
--- gosa-plugins-systems.orig/admin/systems/default/network.tpl
+++ gosa-plugins-systems/admin/systems/default/network.tpl
@@ -39,13 +39,13 @@
{if $dhcpEnabled}
{if $dhcpParentNodeCnt}
+ <label>
{render acl=$dhcpSetupACL}
- <div class="input-field">
<input type="checkbox" name="dhcp_is_Account" onClick="document.mainform.submit();" {if $dhcp_is_Account} checked {/if}>
- </div>
{/render}
- <p>{t}Enable DHCP for this device{/t}</p>
+ <span>{t}Enable DHCP for this device{/t}</span>
+ </label>
{render acl=$dhcpSetupACL}
{image path="<i class='material-icons input-icons'>refresh</i>"}
@@ -85,17 +85,17 @@
{else}
<label>
<input type="checkbox" name="DNS_is_account" value="1" checked="checked" onclick="$('test2').toggle(); $('propose_ip').toggle();" />
+ <span>{t}Enable DNS for this device{/t}</span>
</label>
{/if}
{else}
<label>
<input type="checkbox" name="DNS_is_account" value="1" onclick="$('test2').toggle();$('propose_ip').toggle();" />
+ <span>{t}Enable DNS for this device{/t}</span>
</label>
{/if}
{/render}
- <p>{t}Enable DNS for this device{/t}</p>
-
{render acl=$dnsSetupACL}
<div class="input-field">
<select name="zoneName" id="zoneName" size=1>
|