summaryrefslogtreecommitdiff
path: root/rt/share/html/Elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-12-07 15:40:05 -0800
committerIvan Kohler <ivan@freeside.biz>2015-12-07 15:40:05 -0800
commita2d35e30236c5d233516fa8b77c219665f97e77c (patch)
treee04366c55227287ce10817ec325e862b49106138 /rt/share/html/Elements
parent7c08f01e1a05fe4bab903bd44277b5c3784aebc5 (diff)
custom fields edit popup, RT#34237
Diffstat (limited to 'rt/share/html/Elements')
-rw-r--r--rt/share/html/Elements/CalendarSlotSchedule8
-rwxr-xr-xrt/share/html/Elements/Header13
2 files changed, 20 insertions, 1 deletions
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( <A HREF="$RT::WebPath/Ticket/Display.html?id=$id">view</A>);
+% $link = qq( <A HREF="$RT::WebPath/Ticket/Display.html?id=$id" target="_blank">view</A> ).
+% 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
</%ARGS>