From a2d35e30236c5d233516fa8b77c219665f97e77c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 7 Dec 2015 15:40:05 -0800 Subject: custom fields edit popup, RT#34237 --- rt/share/html/Elements/CalendarSlotSchedule | 8 +++++++- rt/share/html/Elements/Header | 13 +++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'rt/share/html/Elements') diff --git a/rt/share/html/Elements/CalendarSlotSchedule b/rt/share/html/Elements/CalendarSlotSchedule index 4ff47670a..765569736 100644 --- a/rt/share/html/Elements/CalendarSlotSchedule +++ b/rt/share/html/Elements/CalendarSlotSchedule @@ -61,7 +61,13 @@ % FS::sched_avail::pretty_time($due). % ': '. $cust_main[0]->_FreesideURILabel; % #'install for custname XX miles away'; #XXX placeholder/more -% $link = qq( view); +% $link = qq( view ). +% include('/elements/popup_link.html', +% action=>$RT::WebPath.'/Ticket/ModifyCustomFieldsPopup.html?id='.$id, +% label =>'edit', +% actionlabel => 'Edit appointment', +% height => 436, # better: A + B * (num_custom_fields) +% ); % $draggable_ticketid = $id; % $draggable_length = $due - $starts; % diff --git a/rt/share/html/Elements/Header b/rt/share/html/Elements/Header index 2503455fc..17bfe7460 100755 --- a/rt/share/html/Elements/Header +++ b/rt/share/html/Elements/Header @@ -45,6 +45,17 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} +% if ( $Popup ) { +<& /elements/header-popup.html, { + 'title_noescape' => $Title, + 'head' => $head, + 'etc' => $etc, + 'nobr' => 1, + #'nocss' => 1, + 'no_jquery' => $JavaScript, + } +&> +% } else { <& /elements/header.html, { 'title_noescape' => $Title, 'head' => $head, @@ -54,6 +65,7 @@ 'no_jquery' => $JavaScript, } &> +% } <%INIT> #for "Site CSS from theme editor" below $r->headers_out->{'Pragma'} = 'no-cache'; @@ -159,4 +171,5 @@ $SkipDoctype => 0 $RichText => 1 $BodyClass => undef $JavaScript => 1 +$Popup => 0 -- cgit v1.2.1