Skip to content

Commit

Permalink
More tweaking of the colors @d22a7b1
Browse files Browse the repository at this point in the history
  • Loading branch information
wilpig committed Sep 23, 2017
1 parent 3460af8 commit 4934599
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions cabnavigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ function renderUnassignedTemplateOwnership($noTemplFlag, $noOwnerFlag, $device)
$totalWatts=$stats->Wattage;
$totalWeight=$stats->Weight;

// Set up the classes for color coding based upon status
$legend.='<div class="legenditem hide"><span style="background-color:'.$config->ParameterArray['CriticalColor'].'; text-align:center" class="error colorbox border">*</span> - '.__("Above defined rack height").'</div>'."\n";

// Set up the classes for color coding based upon status
$dsList=DeviceStatus::getStatusList();

$head.=" <style type=\"text/css\">
Expand Down Expand Up @@ -207,8 +208,6 @@ function renderUnassignedTemplateOwnership($noTemplFlag, $noOwnerFlag, $device)
// Generate rear rack view if needed
$body.=($backside)?BuildCabinet($cab->CabinetID,'rear'):'';

$legend.='<div class="legenditem hide"><span style="background-color:'.$config->ParameterArray['CriticalColor'].'; text-align:center" class="error colorbox border">*</span> - '.__("Above defined rack height").'</div>'."\n";

$used=$cab->CabinetOccupancy($cab->CabinetID);
@$SpacePercent=($cab->CabinetHeight>0)?number_format($used/$cab->CabinetHeight*100,0):0;
@$WeightPercent=number_format($totalWeight/$cab->MaxWeight*100,0);
Expand Down
2 changes: 1 addition & 1 deletion css/inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
.blackout { background-color: black; }
.rowview .noprint span:last-child {display: none;}
.rowview div.cabinet { vertical-align: bottom; }
.cabinet .error { background-color: <?php echo $config->ParameterArray['CriticalColor']; ?>; }
.cabinet .error { background-color: <?php echo $config->ParameterArray['CriticalColor']; ?> !important; }

/* PICTURES */
.disabled {pointer-events: none;cursor: default;}
Expand Down
2 changes: 1 addition & 1 deletion scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ function InsertDevice(obj){
// Color the rack for the department
var StartingU=$('#cabinet'+obj.Cabinet+' #pos'+obj.Position);

if(StartingU.hasClass('error')){
if(StartingU.find('td.error').length){
$('#legend > .legenditem > span.error').parent('div').removeClass('hide');
}

Expand Down

0 comments on commit 4934599

Please sign in to comment.