CC-6057: Empty show schedule should show message in Schedule Widget
This commit is contained in:
parent
7c6f15984d
commit
255bbf74b7
3 changed files with 19 additions and 5 deletions
|
@ -39,11 +39,15 @@
|
||||||
$activeClass = $this->currentDayOfMonth == $data["dayOfMonth"] ? "active" : "";
|
$activeClass = $this->currentDayOfMonth == $data["dayOfMonth"] ? "active" : "";
|
||||||
|
|
||||||
echo "<div id='day-".$data["dayOfMonth"]."' class='schedule_item ".$activeClass."'>";
|
echo "<div id='day-".$data["dayOfMonth"]."' class='schedule_item ".$activeClass."'>";
|
||||||
foreach ($data["shows"] as $show => $showData) {
|
if (count($data["shows"]) == 0) {
|
||||||
echo "<div class='row'>";
|
echo "<div class='row empty-schedule'>Looks like there are no shows scheduled on this day.</div>";
|
||||||
echo "<div class='time_grid'>".$showData["show_start_hour"].' - '.$showData["show_end_hour"]."</div>";
|
} else {
|
||||||
echo "<div class='name_grid'>".$showData["name"]."</div>";
|
foreach ($data["shows"] as $show => $showData) {
|
||||||
echo "</div>";
|
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>";
|
echo "</div>";
|
||||||
}?>
|
}?>
|
||||||
|
|
|
@ -99,6 +99,11 @@ body {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty-schedule {
|
||||||
|
text-transform: none;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.schedule_item div.time_grid {
|
.schedule_item div.time_grid {
|
||||||
/*padding-right: 10px;*/
|
/*padding-right: 10px;*/
|
||||||
width: 20%;
|
width: 20%;
|
||||||
|
|
|
@ -88,6 +88,11 @@ body {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty-schedule {
|
||||||
|
text-transform: none;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.schedule_item div.time_grid {
|
.schedule_item div.time_grid {
|
||||||
/*padding-right: 10px;*/
|
/*padding-right: 10px;*/
|
||||||
width: 20%;
|
width: 20%;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue