From 1fde291149c70b0c18015cc3665dd90c934932fe Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 19 May 2025 09:33:21 -0700 Subject: [PATCH] chore(tpl/Schedule): add comment headers for development use In the `tpl/Schedule/*.tpl` files add a comment header with the file name. This is useful when examining the HTML source of webpages to know which template file was used to create the schedule page. --- tpl/Schedule/schedule-days-horizontal.tpl | 1 + tpl/Schedule/schedule-flipped.tpl | 3 ++- tpl/Schedule/schedule-mobile.tpl | 3 ++- tpl/Schedule/schedule-reservations-grid-static.tpl | 3 ++- tpl/Schedule/schedule-reservations-grid.tpl | 3 ++- tpl/Schedule/schedule-week-condensed.tpl | 3 ++- tpl/Schedule/schedule.tpl | 3 ++- 7 files changed, 13 insertions(+), 6 deletions(-) diff --git a/tpl/Schedule/schedule-days-horizontal.tpl b/tpl/Schedule/schedule-days-horizontal.tpl index d2a935829..04415af49 100644 --- a/tpl/Schedule/schedule-days-horizontal.tpl +++ b/tpl/Schedule/schedule-days-horizontal.tpl @@ -1,3 +1,4 @@ + {extends file="Schedule/schedule.tpl"} {function name=displaySlot} diff --git a/tpl/Schedule/schedule-flipped.tpl b/tpl/Schedule/schedule-flipped.tpl index 97a84ea52..db42f4402 100644 --- a/tpl/Schedule/schedule-flipped.tpl +++ b/tpl/Schedule/schedule-flipped.tpl @@ -1,3 +1,4 @@ + {function name=displaySlotTall} {call name=$DisplaySlotFactory->GetFunction($Slot, $AccessAllowed) Slot=$Slot Href=$Href SlotRef=$SlotRef ResourceId=$ResourceId} {/function} @@ -74,4 +75,4 @@ {/block} {block name="scripts-before"} -{/block} \ No newline at end of file +{/block} diff --git a/tpl/Schedule/schedule-mobile.tpl b/tpl/Schedule/schedule-mobile.tpl index 5304b89b4..0efe23b15 100644 --- a/tpl/Schedule/schedule-mobile.tpl +++ b/tpl/Schedule/schedule-mobile.tpl @@ -1,3 +1,4 @@ + {extends file="Schedule/schedule.tpl"} {block name="legend"}{/block} @@ -108,4 +109,4 @@ {/foreach} {/foreach} -{/block} \ No newline at end of file +{/block} diff --git a/tpl/Schedule/schedule-reservations-grid-static.tpl b/tpl/Schedule/schedule-reservations-grid-static.tpl index 582982f1e..c1edccbd4 100644 --- a/tpl/Schedule/schedule-reservations-grid-static.tpl +++ b/tpl/Schedule/schedule-reservations-grid-static.tpl @@ -1,3 +1,4 @@ + {function name=displaySlot} {call name=$DisplaySlotFactory->GetFunction($Slot, $AccessAllowed) Slot=$Slot Href=$Href SlotRef=$SlotRef ResourceId=$ResourceId} {/function} @@ -50,4 +51,4 @@ {flush} -{/foreach} \ No newline at end of file +{/foreach} diff --git a/tpl/Schedule/schedule-reservations-grid.tpl b/tpl/Schedule/schedule-reservations-grid.tpl index 529815b3e..c3f09032e 100644 --- a/tpl/Schedule/schedule-reservations-grid.tpl +++ b/tpl/Schedule/schedule-reservations-grid.tpl @@ -1,3 +1,4 @@ + {function name=displaySlot} {call name=$DisplaySlotFactory->GetFunction($Slot, $AccessAllowed) Slot=$Slot Href=$Href SlotRef=$SlotRef ResourceId=$ResourceId} {/function} @@ -55,4 +56,4 @@ {* {flush}*} -{/foreach} \ No newline at end of file +{/foreach} diff --git a/tpl/Schedule/schedule-week-condensed.tpl b/tpl/Schedule/schedule-week-condensed.tpl index bd4923c79..3e279ef0d 100644 --- a/tpl/Schedule/schedule-week-condensed.tpl +++ b/tpl/Schedule/schedule-week-condensed.tpl @@ -1,3 +1,4 @@ + {extends file="Schedule/schedule.tpl"} {block name="legend"}{/block} @@ -160,4 +161,4 @@ }); }); -{/block}Z \ No newline at end of file +{/block}Z diff --git a/tpl/Schedule/schedule.tpl b/tpl/Schedule/schedule.tpl index 49c3b000e..7e21e483c 100644 --- a/tpl/Schedule/schedule.tpl +++ b/tpl/Schedule/schedule.tpl @@ -1,3 +1,4 @@ + {* All of the slot display formatting *} {function name=displayPastTime} @@ -463,4 +464,4 @@ ShowButtonPanel='true' OnSelect='dpDateChanged' FirstDay=$FirstWeekday} -{include file='globalfooter.tpl'} \ No newline at end of file +{include file='globalfooter.tpl'}