diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-04-13 17:15:28 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-04-13 17:15:28 -0700 |
commit | 49ab5818ef56a8758548396033388187b123f8ed (patch) | |
tree | 016430a3001778a34663513293fedf7b80b4806e /rt/share/html/Elements | |
parent | 9ecdd3410e3b41791e4d444a9c29157b5dbbe2bb (diff) |
installers (calendaring), RT#16584
Diffstat (limited to 'rt/share/html/Elements')
-rw-r--r-- | rt/share/html/Elements/CalendarSlotSchedule | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/rt/share/html/Elements/CalendarSlotSchedule b/rt/share/html/Elements/CalendarSlotSchedule index 8a0c617d9..5b4004062 100644 --- a/rt/share/html/Elements/CalendarSlotSchedule +++ b/rt/share/html/Elements/CalendarSlotSchedule @@ -1,11 +1,12 @@ <%ARGS> - $Date => undef - @Tickets => () - $slots => $default_slots - $sday => undef - $tod_row => undef - $timestep => $default_timestep - @username => () + $Date => undef + @Tickets => () + $slots => $default_slots + $sday => undef + $tod_row => undef + $timestep => $default_timestep + @username => () + $LengthMin => $default_timestep </%ARGS> % foreach my $username ( @username ) { % @@ -16,12 +17,17 @@ % % my $bgcolor = '666666;border-color:#555555'; % my $content = ''; +% my $onmouse = 0; % % #white out available times % foreach my $avail ( @{ $schedule{'avail'} } ) { % my( $start, $end ) = @$avail; % next if $start >= ($tod_row+$timestep) || $end <= $tod_row; % $bgcolor = 'FFFFFF'; +% $onmouse = 1 +% if $LengthMin <= $end - $tod_row #the slot is long enough +% && ! grep { $_ > $tod_row && $LengthMin > $_ - $tod_row } +% map $_->[0], values %{ $schedule{'scheduled'} }; % } % % #block out / show / color code existing appointments @@ -31,11 +37,11 @@ % % next if $starts >= ($tod_row+$timestep) || $due < $tod_row; % -% if ( $starts >= $tod_row ) { -% $bgcolor = $col; +% $bgcolor = $col; +% $onmouse = 0; +% +% if ( $starts >= $tod_row ) { #first row % $content .= ($content?', ':''). $id; #XXX more -% } else { -% $bgcolor = $col; % } % } @@ -45,6 +51,10 @@ %# : $is_aweekago ? 'aweekago' %# : '' %# %>" +% if ( $onmouse ) { + onmouseover="boxon(this);" + onmouseout ="boxoff(this);" +% } ><% $content %></td> % } <%ONCE> |