{* 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 . *} {extends file="Schedule/schedule.tpl"} {block name="legend"}{/block} {block name="reservations"} {function name=displayGeneralReservedCondensed} {if $Slot->IsPending()} {assign var=class value='pending'} {/if} {if $Slot->HasCustomColor()} {assign var=color value='style="background-color:'|cat:$Slot->Color()|cat:' !important;color:'|cat:$Slot->TextColor()|cat:' !important;border-color:'|cat:$Slot->BorderColor()|cat:' !important;"'} {/if}
{$DisplaySlotFactory->GetCondensedPeriodLabel($Periods, $Slot->BeginDate(), $Slot->EndDate())} {$Slot->Label($SlotLabelFactory)|escapequotes}
{/function} {function name=displayAdminReservedCondensed} {call name=displayGeneralReservedCondensed Slot=$Slot Href=$Href OwnershipClass='admin'} {/function} {function name=displayMyReservedCondensed} {call name=displayGeneralReservedCondensed Slot=$Slot Href=$Href OwnershipClass='mine'} {/function} {function name=displayMyParticipatingCondensed} {call name=displayGeneralReservedCondensed Slot=$Slot Href=$Href OwnershipClass='participating'} {/function} {function name=displayReservedCondensed} {call name=displayGeneralReservedCondensed Slot=$Slot Href=$Href OwnershipClass=''} {/function} {function name=displayPastTimeCondensed} {/function} {function name=displayReservableCondensed} {/function} {function name=displayRestrictedCondensed} {/function} {function name=displayUnreservableCondensed}
{formatdate date=$Slot->BeginDate() key=period_time} - {formatdate date=$Slot->EndDate() key=period_time} {$Slot->Label($SlotLabelFactory)|escapequotes}
{/function} {function name=displaySlotCondensed} {call name=$DisplaySlotFactory->GetFunction($Slot, $AccessAllowed, 'Condensed') Slot=$Slot Href=$Href Periods=$Periods} {/function} {assign var=TodaysDate value=Date::Now()} {assign var=columnWidth value=(1/($BoundDates|count+1))*100}
{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} {/foreach} {foreach from=$Resources item=resource name=resource_loop} {assign var=resourceId value=$resource->Id} {assign var=href value="{Pages::RESERVATION}?rid={$resourceId}&sid={$ScheduleId}"} {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}*} {* *} {* {else}*} {assign var=href value="{$CreateReservationPage}?rid={$resourceId}&sid={$ScheduleId}&rd={formatdate date=$date key=url}"} {* {/if}*} {/foreach} {/foreach}
 {formatdate date=$date key="schedule_daily"}
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} *} {*
*} {* {translate key=CreateReservation}*} {* *} {*
*} {* {foreach from=$slots item=slot}*} {* {call name=displaySlotCondensed Slot=$slot Href="$href" AccessAllowed=$resource->CanAccess Periods=$periods.$ts }*} {* {/foreach}*} {*
{translate key=CreateReservation}
{/block} {block name="scripts"} {/block}