{*
Copyright 2011-2020 Nick Korbel
This file is part of Booked Scheduler.
Booked Scheduler is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Booked Scheduler is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Booked Scheduler. If not, see
| {foreach from=$BoundDates item=date} {assign var=class value=""} {assign var=tdclass value=""} {assign var=ts value=$date->Timestamp()} {$periods.$ts = $DailyLayout->GetPeriods($date)} {if $periods[$ts]|count == 0}{continue}{*dont show if there are no slots*}{/if} {if $date->DateEquals($TodaysDate)} {assign var=tdclass value="today"} {/if} | {formatdate date=$date key="schedule_daily"} | {/foreach}|
| HasColor()}style="background-color:{$resource->GetColor()} !important"{/if}> {if $resource->CanAccess} HasColor()}style="color:{$resource->GetTextColor()} !important"{/if}>{$resource->Name} {else} HasColor()}style="color:{$resource->GetTextColor()} !important"{/if}>{$resource->Name} {/if} | {foreach from=$BoundDates item=date} {assign var=ts value=$date->Timestamp()} {$periods.$ts = $DailyLayout->GetPeriods($date, false)} {assign var=count value=$periods[$ts]|count} {if $count== 0}{continue}{*dont show if there are no slots*}{/if} {assign var=min value=$periods[$ts][0]->BeginDate()->TimeStamp()} {assign var=max value=$periods[$ts][$count-1]->EndDate()->TimeStamp()} {assign var=resourceId value=$resource->Id} {assign var=href value="{Pages::RESERVATION}?rid={$resourceId}&sid={$ScheduleId}"} {* {assign var=slots value=$DailyLayout->GetLayout($date, $resourceId)}*} {* {assign var=summary value=$DailyLayout->GetSummary($date, $resourceId)}*} {* {if $summary->NumberOfItems() > 0}*} {**}
{* *}
{* {translate key=CreateReservation}*}
{* *}
{* *}
{* {foreach from=$slots item=slot}*}
{* {call name=displaySlotCondensed Slot=$slot Href="$href" AccessAllowed=$resource->CanAccess Periods=$periods.$ts }*}
{* {/foreach}*}
{* | *}
{* {else}*}
{assign var=href value="{$CreateReservationPage}?rid={$resourceId}&sid={$ScheduleId}&rd={formatdate date=$date key=url}"}
{translate key=CreateReservation}
|
{* {/if}*}
{/foreach}