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,12 +39,16 @@
|
|||
$activeClass = $this->currentDayOfMonth == $data["dayOfMonth"] ? "active" : "";
|
||||
|
||||
echo "<div id='day-".$data["dayOfMonth"]."' class='schedule_item ".$activeClass."'>";
|
||||
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>";
|
||||
}?>
|
||||
</div>
|
||||
|
|
|
@ -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%;
|
||||
|
|
|
@ -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%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue