4 $slots => $default_slots
7 $timestep => $default_timestep
10 % foreach my $username ( @username ) {
12 % my %schedule = UserDaySchedule( username => $username,
13 % 'date' => $Date->strftime('%F'),
14 % Tickets => \@Tickets,
17 % my $bgcolor = 'ffffff';
20 % #XXX block out unavailable times
22 % #block out / show / color code existing appointments
23 % foreach my $id ( keys %{ $schedule{'scheduled'} } ) {
25 % my( $starts, $due, $col, $t ) = @{ $schedule{'scheduled'}->{$id} };
27 % next if $starts >= ($tod_row+$timestep) || $due < $tod_row;
29 % if ( $starts >= $tod_row ) {
31 % $content .= ($content?', ':''). $id; #XXX more
37 <td style="background:#<%$bgcolor%>" class="weekly
38 %# <% $is_today ? 'today'
39 %# : $is_yesterday ? 'yesterday'
40 %# : $is_aweekago ? 'aweekago'
47 my $default_slots = RT->Config->Get('CalendarWeeklySlots') || 5;
48 my $default_timestep = RT->Config->Get('CalendarWeeklySizeMin') || 30; #1/2h
52 use RTx::Schedule qw( UserDaySchedule );