X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Fshare%2Fhtml%2FSearch%2FCalendar.html;h=db781d81bb2cce99b00a9b6f2ad1044bbe58e637;hb=b7e8cfa78c29c9cc561cafa07dbcd82ff58acb50;hp=e711b861cc213e4d7d6e9254bb20fa2f6479fcdf;hpb=ab9be1d2bfedf205eab7a9d399ef22ee14117f53;p=freeside.git diff --git a/rt/share/html/Search/Calendar.html b/rt/share/html/Search/Calendar.html index e711b861c..db781d81b 100644 --- a/rt/share/html/Search/Calendar.html +++ b/rt/share/html/Search/Calendar.html @@ -7,125 +7,197 @@ $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 &> + <&| /Widgets/TitleBox, title => loc('Calendar for ') . $rtdate->GetMonth($Month) . " $Year" , title_class=> 'inverse', color => "#993333" &> -
-% my ($PMonth, $PYear) = ($Month - 1, $Year);
+% my($PMonth, $PYear, $NMonth, $NYear);
+% unless ( $WeekDay ) {
+
+
|
+
-% for (1 .. 6, 0) { + | +% for ( @{$week{$weekstart}} ) { | <%$rtdate->GetWeekday($_)%> | % }
---|---|---|
<% $date->week_number %> | +% +% my $offmonth = $date->month != ($Month + 1); +% my $is_today = (DateTime->compare($today, $date) == 0); +% my $is_yesterday = (DateTime->compare($yesterday, $date) == 0); +% my $is_aweekago = (DateTime->compare($aweekago, $date) == 0); + +
+ <% ( $WeekDay ? $rtdate->GetMonth($date->month). ' ' : '' ).
+ $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->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 == 1) {
-||
-«<%$rtdate->GetMonth($PMonth)%> - | --<%$rtdate->GetMonth($NMonth)%>» - | -
+ «<%$rtdate->GetMonth($PMonth)%> + | -
- |
+ + Calendar Preferences and Help |
-
-![]() - ![]() - ![]() - ![]() - ![]() - ![]() - ![]() - ![]() - ![]() +% foreach my $legend (keys %legend) { + |
+ ![]() |
+ +% my $more = 0; +% foreach ( @{$legend{$legend}} ) { + <% $more++ ? ', ' : '' %> + <&|/l&><% $_ %>&> +% } + | +