File: 1002_fix-dhcp-dns-checkboxes.patch

package info (click to toggle)
gosa-plugins-systems 2.8~git20211027.5741b8f-4%2Bdeb12u2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,344 kB
  • sloc: php: 16,013; xml: 1,354; makefile: 5
file content (44 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download | duplicates (2)
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>