diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-10-05 20:12:09 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-10-05 20:12:09 -0700 |
commit | 05c0b947ddba67a8ac2537c010a583277623ff3e (patch) | |
tree | 6ab93c7091ad933ee17b39128d06d895c595b5d9 /rt | |
parent | 755f6730e6bc4b59db2041db09403c31136c814d (diff) |
show customer name on appointments, RT#34237
Diffstat (limited to 'rt')
-rw-r--r-- | rt/share/html/Elements/CalendarDaySchedule | 7 | ||||
-rw-r--r-- | rt/share/html/Elements/CalendarSlotSchedule | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/rt/share/html/Elements/CalendarDaySchedule b/rt/share/html/Elements/CalendarDaySchedule index 5be5b06bc..bac9a78d4 100644 --- a/rt/share/html/Elements/CalendarDaySchedule +++ b/rt/share/html/Elements/CalendarDaySchedule @@ -31,8 +31,13 @@ $CurrentUser => undef % my( $starts, $due, $col, $t ) = @{ $schedule{'scheduled'}->{$id} }; % my $s = int(($starts-$stime)/10); % my $e = int(($due-$stime)/10)-1; + +% #false laziness w/misc/xmlhttp-ticket-update.html & CalendarSlotSchedule +% my %hash = $m->comp('/Ticket/Elements/Customers', Ticket => $t); +% my @cust_main = values( %{$hash{cust_main}} ); + <AREA - onmouseover = "overlib('<%$id%>: <% FS::sched_avail::pretty_time($starts). '-'. FS::sched_avail::pretty_time($due) %><BR>XX miles away<BR>more info', WRAP, BGCOLOR, '#000000', FGCOLOR, '#<%$col%>')" + onmouseover = "overlib('<% FS::sched_avail::pretty_time($starts). '-'. FS::sched_avail::pretty_time($due) %><BR>' + <% $cust_main[0]->_FreesideURILabel |js_string %>, WRAP, BGCOLOR, '#000000', FGCOLOR, '#<%$col%>')" onmouseout = "nd(); return true;" shape = "rect" coords = "<%$s%>,0,<%$e%>,<%$height%>" diff --git a/rt/share/html/Elements/CalendarSlotSchedule b/rt/share/html/Elements/CalendarSlotSchedule index 4a9b3bcc3..632fabba3 100644 --- a/rt/share/html/Elements/CalendarSlotSchedule +++ b/rt/share/html/Elements/CalendarSlotSchedule @@ -48,10 +48,16 @@ % $selectable = 0; % % if ( $starts >= $tod_row ) { #first row +% +% #false laziness w/misc/xmlhttp-ticket-update.html & CalendarDaySchedule +% my %hash = $m->comp('/Ticket/Elements/Customers', Ticket => $t); +% my @cust_main = values( %{$hash{cust_main}} ); +% % $content .= ($content?', ':''). #$id. ': '. % #false laziness w/xmlhttp-ticket-update.html % FS::sched_avail::pretty_time($starts). '-'. -% FS::sched_avail::pretty_time($due); +% FS::sched_avail::pretty_time($due). +% ': '. encode_entities($cust_main[0]->_FreesideURILabel); % #'install for custname XX miles away'; #XXX placeholder/more % $draggable_ticketid = $id; % $draggable_length = $due - $starts; |