X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FSchedule.html;h=4bc5134cbff6c832b5b9c6e9234ea03ae7ea01d6;hb=49ab5818ef56a8758548396033388187b123f8ed;hp=9ba41c7e3aab4d2b588283cfcbbdee894bae9f30;hpb=778b8c70120cce490e8c6ddb534f1302200e0ad6;p=freeside.git diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html index 9ba41c7e3..4bc5134cb 100644 --- a/rt/share/html/Search/Schedule.html +++ b/rt/share/html/Search/Schedule.html @@ -5,6 +5,51 @@ %} + + + + <& /Search/Calendar.html, @_, Query => "( Status = 'new' OR Status = 'open' OR Status = 'stalled') @@ -12,14 +57,29 @@ #XXX and we have the magic custom field slots => scalar( @{ $ARGS{username} } ), Embed => 'Schedule.html', + DimPast => 1, Display => 'Schedule', - DisplayArgs => [ username => $ARGS{username} ], + DisplayArgs => [ username => $ARGS{username}, + LengthMin => $LengthMin, + ], &> +<%ONCE> + +my $timestep = RT->Config->Get('CalendarWeeklySizeMin') || 30; #1/2h + + <%init> + my @files = (); #if ( ! $initialized ) { push @files, map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) ); push @files, map { "${_}contentmws" } qw( iframe ajax ); #%} + +my $LengthMin = 180; #XXX $ARGS{LengthMin};, passed in + +my $cells = int($LengthMin / $timestep); +$cells++ if $LengthMin % $timestep; +