From 181ae707a101e701ad45ec7f751733900be0c086 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Fri, 19 Aug 2005 11:44:54 +0000 Subject: make template readable by splitting it up --- templates/calendar.tpl | 65 +++++++------------------------------- templates/calendar_box.tpl | 2 ++ templates/calendar_inc.tpl | 4 +-- templates/calendar_options_inc.tpl | 37 ++++++++++++++++++++++ 4 files changed, 52 insertions(+), 56 deletions(-) create mode 100644 templates/calendar_options_inc.tpl diff --git a/templates/calendar.tpl b/templates/calendar.tpl index cdeabc0..54166e3 100644 --- a/templates/calendar.tpl +++ b/templates/calendar.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.9 2005/08/18 20:42:56 squareing Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_calendar/templates/calendar.tpl,v 1.10 2005/08/19 11:44:54 squareing Exp $ *} {strip} {if !$gBitSystem->isFeatureActive( 'feature_helppopup' )} @@ -11,50 +11,7 @@
- -{/strip} - - -
- - - - {form legend="Display Options" id="display_options"} -
- {formlabel label="" for=""} - {forminput} - {foreach from=$bitItems key=ki item=vi} -
- {/foreach} - - - {/forminput} -
- -
- -
- {/form} - - -{strip} + {include file="bitpackage:calendar/calendar_options_inc.tpl"} {if $gBitSystemPrefs.feature_jscalendar eq 'y'} @@ -84,9 +41,9 @@
- {biticon ipackage=calendar iname=day iexplain=Day} - {biticon ipackage=calendar iname=week iexplain=Week} - {biticon ipackage=calendar iname=month iexplain=Month} + {biticon ipackage=calendar iname=day iexplain=Day} + {biticon ipackage=calendar iname=week iexplain=Week} + {biticon ipackage=calendar iname=month iexplain=Month}
@@ -112,9 +69,9 @@ - {biticon ipackage=calendar iname=day iexplain=Day} - {biticon ipackage=calendar iname=week iexplain=Week} - {biticon ipackage=calendar iname=month iexplain=Month} + {biticon ipackage=calendar iname=day iexplain=Day} + {biticon ipackage=calendar iname=week iexplain=Week} + {biticon ipackage=calendar iname=month iexplain=Month} @@ -122,7 +79,7 @@ - {if $viewmode eq 'day'} + {if $smarty.session.calendar.view_mode eq 'day'} @@ -163,7 +120,7 @@ {section name=d loop=$weekdays} - {if $viewmode eq "month"} + {if $smarty.session.calendar.view_mode eq "month"} {if $cell[w][d].day|date_format:"%m" eq $focusmonth} {cycle values="odd,even" print=false advance=false} {else} @@ -174,7 +131,7 @@ {/if}
{tr}Selection: {$focusdate|bit_long_date}{/tr}
{tr}Hours{/tr} {tr}Events{/tr}{$weeks[w]} - {if $cell[w][d].day|date_format:"%m" eq $focusmonth or $viewmode eq "week"} + {if $cell[w][d].day|date_format:"%m" eq $focusmonth or $smarty.session.calendar.view_mode eq "week"} {if $cell[w][d].day eq $focusdate}{/if} {$cell[w][d].day|date_format:"%d/%m"} {if $cell[w][d].day eq $focusdate}{/if} diff --git a/templates/calendar_box.tpl b/templates/calendar_box.tpl index 2e76b4d..0afd505 100644 --- a/templates/calendar_box.tpl +++ b/templates/calendar_box.tpl @@ -3,6 +3,8 @@
{tr}Content Type{/tr}: {$cellHash.content_description}
+ {tr}First created by {displayname login=$cellHash.creator_user real_name=$cellHash.creator_real_name} at {$cellHash.created|bit_short_time}{/tr} +
{tr}Last modified by {displayname login=$cellHash.modifier_user real_name=$cellHash.modifier_real_name} at {$cellHash.last_modified|bit_short_time}{/tr}
diff --git a/templates/calendar_inc.tpl b/templates/calendar_inc.tpl index 94f1966..afca464 100644 --- a/templates/calendar_inc.tpl +++ b/templates/calendar_inc.tpl @@ -1,4 +1,4 @@ - +
{else} - + {/if} {/section} diff --git a/templates/calendar_options_inc.tpl b/templates/calendar_options_inc.tpl new file mode 100644 index 0000000..77eae16 --- /dev/null +++ b/templates/calendar_options_inc.tpl @@ -0,0 +1,37 @@ + + +
+ + + +{form legend="Display Options" id="display_options"} +
+ {forminput} + {html_checkboxes values=$contentTypes options=$contentTypes name=content_type_guid selected=$smarty.session.calendar.content_type_guid separator="
"} + + {/forminput} +
+ +
+ +
+{/form} + + -- cgit v1.3
{$month_name} {$year}
@@ -35,7 +35,7 @@