Skip to content

Commit c6e4c5a

Browse files
committed
fix: Fix ToolBox UI html warnings
1 parent cd39d2f commit c6e4c5a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

share/html/toolbox/inventory-list.tpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,39 +203,39 @@ if (@jobs_order) {
203203
<div class='progress-col'>
204204
<div class='counters-row'>
205205
<div class='counter-cell'>
206-
<label>";
206+
<span>";
207207
if ($task->{islocal}) {
208-
$OUT .= _("Local inventory")."</label>
208+
$OUT .= _("Local inventory")."</span>
209209
<div class='counters-row'>
210210
<span class='counter' id='$taskid-inventory-count'>".($task->{inventory_count} || 0)."</span>
211211
</div>
212212
</div>";
213213
} else {
214-
$OUT .= _("Created inventories")."</label>
214+
$OUT .= _("Created inventories")."</span>
215215
<div class='counters-row'>
216216
<span class='counter' id='$taskid-inventory-count' title='"._("Should match devices with SNMP support count")."'>
217217
".($task->{inventory_count} || 0).($task->{inventory_count} && $task->{snmp_support} ? "/".$task->{snmp_support} : "")."
218218
</span>
219219
</div>
220220
</div>
221221
<div class='counter-cell'>
222-
<label>"._("Scanned IPs")."</label>
222+
<span>"._("Scanned IPs")."</span>
223223
<div class='counters-row'>
224224
<span class='counter' id='$taskid-scanned' title='"._("Scanned IPs for this IP range")."'>
225225
".($task->{count} || 0).($task->{count} && $task->{count} < $task->{maxcount} ? "/".$task->{maxcount} : "")."
226226
</span>
227227
</div>
228228
</div>
229229
<div class='counter-cell'>
230-
<label>"._("Devices with SNMP support")."</label>
230+
<span>"._("Devices with SNMP support")."</span>
231231
<div class='counters-row'>
232232
<span class='counter' id='$taskid-snmp' title='"._("IPs for which we found a device supporting SNMP with provided credentials")."'>
233233
".($task->{snmp_support} || 0).($task->{snmp_support} && $task->{count} ? "/".$task->{count} : "")."
234234
</span>
235235
</div>
236236
</div>
237237
<div class='counter-cell'>
238-
<label>"._("IPs without SNMP response")."</label>
238+
<span>"._("IPs without SNMP response")."</span>
239239
<div class='counters-row'>
240240
<span class='counter' id='$taskid-others' title='"._("These IPs are responding to ping or are found in ARP table")."\n".
241241
_("But we didn't find any device supporting SNMP with provided credentials")."'>
@@ -244,7 +244,7 @@ if (@jobs_order) {
244244
</div>
245245
</div>
246246
<div class='counter-cell'>
247-
<label>"._("IPs without PING response")."</label>
247+
<span>"._("IPs without PING response")."</span>
248248
<div class='counters-row'>
249249
<span class='counter' id='$taskid-unknown' title='"._("IPs not responding to ping and not seen in ARP table")."'>
250250
".($task->{unknown} || 0).($task->{unknown} && $task->{count} ? "/".$task->{count} : "")."

share/html/toolbox/list-navigation.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}</div>
2626
<div class='display-option list-option'>
2727
{_"Display (number of items)"}
28-
<select class='display-option' onchange="document.getElementById('display').value = this.value; submit();">{
28+
<select class='display-option' id='display-option' onchange="document.getElementById('display').value = this.value; submit();">{
2929
foreach my $opt (@display_options) {
3030
$OUT .= "
3131
<option".($display && $display eq $opt ? " selected" : "").

share/html/toolbox/results-list.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
<div class='counter-cell' title='{_"Number of devices seen by network scan other all results"}
44
{_"A seen device is identified by its IPs and tag"}
55
{_"A local inventory can be included as seen if its IP has been scanned by a network scan task"}'>
6-
<label>{_"IPs seen by Network Scan"}</label>
6+
<span>{_"IPs seen by Network Scan"}</span>
77
<div class='counters-row'>
88
<span class='counter'>{$netscan_count}/{$list_count}</span>
99
</div>
1010
</div>
1111
<div class='counter-cell' title='{_"Number of Network Inventory other all scanned IPs"}'>
12-
<label>{_"Network Scan Inventory count"}</label>
12+
<span>{_"Network Scan Inventory count"}</span>
1313
<div class='counters-row'>
1414
<span class='counter'>{$netscan_inventory_count}/{$list_count}</span>
1515
</div>
1616
</div>
1717
<div class='counter-cell' title='{_"Number of local inventory other all scanned IPs"}'>
18-
<label>{_"Local Inventory count"}</label>
18+
<span>{_"Local Inventory count"}</span>
1919
<div class='counters-row'>
2020
<span class='counter'>{$local_inventory_count}/{$list_count}</span>
2121
</div>

share/html/toolbox/toolbox.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ textarea {
272272
text-align: center;
273273
}
274274

275-
.counter-cell label {
275+
.counter-cell span {
276276
font: bold 16px Arial, Helvetica;
277277
}
278278

0 commit comments

Comments
 (0)