renderRackSpaceForObject(): wrap LABEL around INPUT
authorDenis Ovsienko <denis@ovsienko.info>
Fri, 2 Nov 2018 18:48:56 +0000 (18:48 +0000)
committerDenis Ovsienko <denis@ovsienko.info>
Fri, 2 Nov 2018 20:29:22 +0000 (20:29 +0000)
wwwroot/inc/interface.php

index 21afee0..4f118e3 100644 (file)
@@ -2299,7 +2299,7 @@ function renderRackSpaceForObject ($object_id)
                else
                        $checked = in_array($rack_id, $parentRacks) ? 'checked' : '';
                $disabled_text = $is_ro ? ' disabled' : '';
-               echo "<label for=zerou_${rack_id}>Zero-U:</label> <input type=checkbox ${checked} name=zerou_${rack_id} id=zerou_${rack_id}${disabled_text}>\n<br><br>\n";
+               echo "<label>Zero-U: <input type=checkbox ${checked} name=zerou_${rack_id}${disabled_text}></label>\n<br><br>\n";
                echo "<input type='button' onclick='uncheckAllAtoms({$rack_id}, {$rackData['height']});' value='Uncheck all'>\n";
                echo '</center></td>';
        }