projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
installers (calendaring), RT#16584
[freeside.git]
/
rt
/
share
/
html
/
Elements
/
CalendarSlotSchedule
diff --git
a/rt/share/html/Elements/CalendarSlotSchedule
b/rt/share/html/Elements/CalendarSlotSchedule
index
fb5b7c1
..
8a0c617
100644
(file)
--- a/
rt/share/html/Elements/CalendarSlotSchedule
+++ b/
rt/share/html/Elements/CalendarSlotSchedule
@@
-14,33
+14,37
@@
% Tickets => \@Tickets,
% );
%
% Tickets => \@Tickets,
% );
%
-% my $bgcolor = '
ffffff
';
+% my $bgcolor = '
666666;border-color:#555555
';
% my $content = '';
%
% my $content = '';
%
-% #XXX block out unavailable times
+% #white out available times
+% foreach my $avail ( @{ $schedule{'avail'} } ) {
+% my( $start, $end ) = @$avail;
+% next if $start >= ($tod_row+$timestep) || $end <= $tod_row;
+% $bgcolor = 'FFFFFF';
+% }
%
% #block out / show / color code existing appointments
%
% #block out / show / color code existing appointments
-%
foreach my $id ( keys %{ $schedule{'scheduled'} } ) {
+% foreach my $id ( keys %{ $schedule{'scheduled'} } ) {
%
%
-%
my( $starts, $due, $col, $t ) = @{ $schedule{'scheduled'}->{$id} };
+% my( $starts, $due, $col, $t ) = @{ $schedule{'scheduled'}->{$id} };
%
%
-%
next if $starts >= ($tod_row+$timestep) || $due < $tod_row;
+% next if $starts >= ($tod_row+$timestep) || $due < $tod_row;
%
%
-%
if ( $starts >= $tod_row ) {
-%
$bgcolor = $col;
-%
$content .= ($content?', ':''). $id; #XXX more
-%
} else {
-%
$bgcolor = $col;
-%
}
-%
}
+% if ( $starts >= $tod_row ) {
+% $bgcolor = $col;
+% $content .= ($content?', ':''). $id; #XXX more
+% } else {
+% $bgcolor = $col;
+% }
+% }
- <td style="background:#<%$bgcolor%>" class="weekly
+ <td style="background:#<%$bgcolor%>" class="weekly
"
%# <% $is_today ? 'today'
%# : $is_yesterday ? 'yesterday'
%# : $is_aweekago ? 'aweekago'
%# : ''
%# <% $is_today ? 'today'
%# : $is_yesterday ? 'yesterday'
%# : $is_aweekago ? 'aweekago'
%# : ''
-%# %>
- "
+%# %>"
><% $content %></td>
% }
<%ONCE>
><% $content %></td>
% }
<%ONCE>