X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FCalendar.html;h=f66f27d792862907d63af52671ea03c343efb064;hb=9a51fd5542ee9979bea99a39c83d63e221e59155;hp=e5a1c28a5d26e976c549856076b9ca0ede6f03c2;hpb=d5933aea7be7beddc995fb35cdd034231d2c515f;p=freeside.git diff --git a/rt/share/html/Search/Calendar.html b/rt/share/html/Search/Calendar.html index e5a1c28a5..f66f27d79 100644 --- a/rt/share/html/Search/Calendar.html +++ b/rt/share/html/Search/Calendar.html @@ -7,125 +7,216 @@ $Order => undef $OrderBy => undef $RowsPerPage => undef $NewQuery => 0 +$WeekDay => undef +$WeekMonth => undef +$WeekYear => undef +$OrigMonth => undef +$OrigYear => undef %args> <& /Elements/Header, Title => $title &> -<& /Ticket/Elements/Tabs, - current_tab => "Search/Calendar.html?$QueryString", - Title => $title &> +<& /Elements/Tabs &> + +% my $title; +% if ( $WeekMonth ) { +% if ( $date->month == $end->month ) { +% $title = $rtdate->GetMonth( $date->month -1 ). ' '. +% $date->day. '-'. $end->day. ', '. $date->year; +% } elsif ( $date->year == $end->year ) { +% $title = +% $rtdate->GetMonth( $date->month -1 ). ' '. $date->day. ' - '. +% $rtdate->GetMonth( $end->month -1 ). ' '. $end->day. ', '. $end->year; +% } else { +% $title = +% $rtdate->GetMonth( $date->month -1 ). ' '.$date->day. ', '. $date->year. +% ' - '. +% $rtdate->GetMonth( $end->month -1 ). ' '.$end->day. ', '. $end->year; +% } +% } else { +% $title = $rtdate->GetMonth($Month) . " $Year" +% } <&| /Widgets/TitleBox, - title => loc('Calendar for ') . $rtdate->GetMonth($Month) . " $Year" , + title => loc('Calendar for '). $title, title_class=> 'inverse', color => "#993333" &> -
-% my ($PMonth, $PYear) = ($Month - 1, $Year);
+% my($PMonth, $PYear, $NMonth, $NYear);
+% unless ( $WeekDay ) {
+
+
|
+
+ | % for ( @{$week{$weekstart}} ) { | <%$rtdate->GetWeekday($_)%> | % }
---|---|---|
+ <% ( $WeekDay ? $rtdate->GetMonth($date->month-1). ' ' : '' ).
+ $date->day
+ %>
+
+% my $sp = 3;
+% for my $t ( @{ $Tickets{$date->strftime("%F")} } ) {
+% $sp--;
+ <& /Elements/CalendarEvent, Object => $t, Date => $date, DateTypes => \%DateTypes &>
+% }
+ <% ($sp>0) ? ''x$sp : '' |n %> + + |
+
+% $date = $set->next($date);
% if ( $date->day_of_week == $startday_of_week ) {
-<% $date->week_number %> | +|
- <%$date->day%> -% for my $t ( @{ $Tickets{$date->strftime("%F")} } ) { -<& /Elements/CalendarEvent, Object => $t, Date => $date, DateTypes => \%DateTypes &> -% } - |
-% $date = $set->next($date);
-% if ( $date->day_of_week == $startday_of_week ) {
-||
-«<%$rtdate->GetMonth($PMonth)%> - | --<%$rtdate->GetMonth($NMonth)%>» - | -
+ «<%$rtdate->GetMonth($PMonth)%> + | -
- |
+ + Calendar Preferences and Help |
-
- : <&|/l&>Created&> - : <&|/l&>Due&> - : <&|/l&>Resolved&> - : <&|/l&>Last Updated&> - : <&|/l&>Created&>, <&|/l&>Due&> - : <&|/l&>Reminders&> - : <&|/l&>Starts&> - : <&|/l&>Started&> - : <&|/l&>Starts&>, <&|/l&>Due&> +% foreach my $legend (keys %legend) { + |
+ + | ++% my $more = 0; +% foreach ( @{$legend{$legend}} ) { + <% $more++ ? ', ' : '' %> + <&|/l&><% $_ %>&> +% } + | +