Change colors of tables
This commit is contained in:
@@ -30,8 +30,8 @@
|
||||
<?php foreach($networks as $networkname => $buildings): ?>
|
||||
<?php if(!count($buildings)) continue; ?>
|
||||
<h4><?=$networkname?></h4>
|
||||
<table class="table table-striped table-hover">
|
||||
<?php foreach($buildings as $building): ?>
|
||||
<table class="table table-hover">
|
||||
<?php $bcount = 0; foreach($buildings as $building): ?>
|
||||
<?php
|
||||
$rowspan = 1;
|
||||
foreach($building->workflowitems as $item) {
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr id="building-<?=$building->id?>">
|
||||
<tr id="building-<?=$building->id?>" class="table-bg-<?=($bcount % 2 == 0) ? "even" : "odd"?>">
|
||||
<td>
|
||||
<strong><?=$building->street?></strong><br />
|
||||
<?=$building->code?><br />
|
||||
@@ -65,7 +65,7 @@
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php $bcount++; endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
<button type="submit" class="btn btn-primary">Speichern</button>
|
||||
|
||||
@@ -33,6 +33,14 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.table-bg-even {
|
||||
background-color: #f1f5f7;
|
||||
}
|
||||
|
||||
.table-bg-odd {
|
||||
|
||||
}
|
||||
|
||||
td.controls {
|
||||
cursor: default;
|
||||
text-align: left; letter-spacing: 4px; font-size: 1.1em;
|
||||
|
||||
Reference in New Issue
Block a user