1 |
diff -urN smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm |
2 |
--- smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm 2023-12-19 09:44:56.678590486 +0000 |
3 |
+++ smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/lib/SrvMngr/Controller/Dhcpd.pm 2024-01-16 08:38:00.000000000 +0000 |
4 |
@@ -144,7 +144,7 @@ |
5 |
$dhcp_data{trt} = $trt; |
6 |
$dhcp_data{"first"} = ''; |
7 |
# ..... get scan results into dhcp_data |
8 |
- dhcp_data{"scanresults"} = get_scan_results($c); |
9 |
+ $dhcp_data{"scanresults"} = get_scan_results($c); |
10 |
$c->stash( title => $title, modul => $modul, dhcp_data => \%dhcp_data ); |
11 |
$c->render( template => 'dhcpd' ); |
12 |
} |
13 |
@@ -332,10 +332,10 @@ |
14 |
my $c = shift; |
15 |
my $ret = delete_all_leases($c); |
16 |
if ($ret == 'ok') { |
17 |
- dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; |
18 |
+ $dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; |
19 |
do_leases($c); |
20 |
} |
21 |
- else {dhcp_data{"error"}=$ret;} |
22 |
+ else {$dhcp_data{"error"}=$ret;} |
23 |
return ; |
24 |
} |
25 |
|
26 |
@@ -352,10 +352,10 @@ |
27 |
# else return "ok" |
28 |
my $ret = delete_lease($c); |
29 |
if ($ret == 'ok') { |
30 |
- dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; |
31 |
+ $dhcp_data{"success"}="dhcpd_SUCCESSFULLY_SAVED_SETTINGS"; |
32 |
do_leases($c); |
33 |
} |
34 |
- else {dhcp_data{"error"}=$ret;} |
35 |
+ else {$dhcp_data{"error"}=$ret;} |
36 |
return ; |
37 |
} |
38 |
|
39 |
@@ -536,4 +536,4 @@ |
40 |
|
41 |
1; |
42 |
|
43 |
- |
44 |
\ No newline at end of file |
45 |
+ |
46 |
diff -urN smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep |
47 |
--- smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep 2023-12-19 09:44:56.680590493 +0000 |
48 |
+++ smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/dhcpd.html.ep 2023-12-19 11:12:00.000000000 +0000 |
49 |
@@ -63,9 +63,12 @@ |
50 |
</button> |
51 |
</td><td> |
52 |
%= button_to $c->l('dhcpd_SCAN_YOUR_NETWORK') => '/dhcpd3' |
53 |
- </td><td> |
54 |
- %= button_to $c->l('dhcpd_GLOBAL_WINPOPUP') => '/dhcpd2' |
55 |
+ </td> |
56 |
+ <!-- |
57 |
<td> |
58 |
+ %= button_to $c->l('dhcpd_GLOBAL_WINPOPUP') => '/dhcpd2' |
59 |
+ </td> |
60 |
+ --> |
61 |
</tr> |
62 |
</table> |
63 |
<hr /> |
64 |
diff -urN smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep |
65 |
--- smeserver-dhcpmanager-2.0.4.old/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep 2023-12-19 09:44:56.681590497 +0000 |
66 |
+++ smeserver-dhcpmanager-2.0.4/root/usr/share/smanager/themes/default/templates/partials/_dhcpd_leases.html.ep 2024-01-16 12:32:00.000000000 +0000 |
67 |
@@ -26,7 +26,7 @@ |
68 |
%= submit_button "$btn", class => 'action' |
69 |
% end |
70 |
<br> |
71 |
- <table class="sme-border table-sort"><tbody> |
72 |
+ <table class="sme-border table-sort"><thead> |
73 |
<tr> |
74 |
<th class='sme-border'> |
75 |
%=l 'dhcpd_IP' |
76 |
@@ -50,6 +50,8 @@ |
77 |
%=l 'dhcpd_ACTION' |
78 |
</th> |
79 |
</tr> |
80 |
+ </thead> |
81 |
+ <tbody> |
82 |
% foreach my $ip (@$leases) { |
83 |
<tr> |
84 |
%= t td => (class => 'sme-border') => $ip->{ip} |
85 |
@@ -66,9 +68,12 @@ |
86 |
%= t td => (class => 'sme-border') => $ip->{mac} |
87 |
<td class = 'sme-border'> |
88 |
<a href="/smanager/dhcpd6?trt=DEL&ip=<%= $ip->{ip}%>" onclick="Remove_lease_confirm(event,'<%=$c->l('dhcpd_REMOVE_A_DHCP_LEASE_ACTION')%>',this);"><center><%=l 'dhcpd_REMOVE'%></center></a> |
89 |
- </td><td class = 'sme-border'> |
90 |
+ </td> |
91 |
+ <!-- |
92 |
+ <td class = 'sme-border'> |
93 |
<a href="/smanager/dhcpd8?trt=WIN&ip=<%= $ip->{ip}%>" onclick="Winpop_confirm(event,'<%=$c->l('dhcpd_SENDING_A_WINPOPUP')%>',this);"><center><%=l 'dhcpd_WINPOPUP_ACTION'%></center></a> |
94 |
</td> |
95 |
+ --> |
96 |
</tr> |
97 |
%} |
98 |
</tbody> |
99 |
@@ -110,4 +115,4 @@ |
100 |
%end |
101 |
|
102 |
|
103 |
-</div> |
104 |
\ No newline at end of file |
105 |
+</div> |