CC-6057: Empty show schedule should show message in Schedule Widget

This commit is contained in:
drigato 2015-06-11 09:16:59 -04:00
parent 7c6f15984d
commit 255bbf74b7
3 changed files with 19 additions and 5 deletions

View file

@ -39,11 +39,15 @@
$activeClass = $this->currentDayOfMonth == $data["dayOfMonth"] ? "active" : "";
echo "<div id='day-".$data["dayOfMonth"]."' class='schedule_item ".$activeClass."'>";
foreach ($data["shows"] as $show => $showData) {
echo "<div class='row'>";
echo "<div class='time_grid'>".$showData["show_start_hour"].' - '.$showData["show_end_hour"]."</div>";
echo "<div class='name_grid'>".$showData["name"]."</div>";
echo "</div>";
if (count($data["shows"]) == 0) {
echo "<div class='row empty-schedule'>Looks like there are no shows scheduled on this day.</div>";
} else {
foreach ($data["shows"] as $show => $showData) {
echo "<div class='row'>";
echo "<div class='time_grid'>" . $showData["show_start_hour"] . ' - ' . $showData["show_end_hour"] . "</div>";
echo "<div class='name_grid'>" . $showData["name"] . "</div>";
echo "</div>";
}
}
echo "</div>";
}?>

View file

@ -99,6 +99,11 @@ body {
padding-bottom: 10px;
}
.empty-schedule {
text-transform: none;
text-align: center;
}
.schedule_item div.time_grid {
/*padding-right: 10px;*/
width: 20%;

View file

@ -88,6 +88,11 @@ body {
padding-bottom: 10px;
}
.empty-schedule {
text-transform: none;
text-align: center;
}
.schedule_item div.time_grid {
/*padding-right: 10px;*/
width: 20%;