summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-11-11 11:42:54 -0800
committerIvan Kohler <ivan@freeside.biz>2016-11-11 11:42:54 -0800
commit287b33b072a38c08535bc0c300ea48e0a587190c (patch)
tree97f1a03a6e56fe7aa21eafe9d6da1f638e37b52b /httemplate/misc
parent70c70dbaa188bd8c8c9850657c1cd8d5a61cc8c5 (diff)
UX: add status to package actions, redirect back to package tab
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-xhttemplate/misc/process/cancel_pkg.html4
-rwxr-xr-xhttemplate/misc/unsusp_pkg.cgi11
2 files changed, 14 insertions, 1 deletions
diff --git a/httemplate/misc/process/cancel_pkg.html b/httemplate/misc/process/cancel_pkg.html
index b8be27113..0649261e7 100755
--- a/httemplate/misc/process/cancel_pkg.html
+++ b/httemplate/misc/process/cancel_pkg.html
@@ -1,5 +1,9 @@
<& /elements/header-popup.html, emt("Package $past_method") &>
+ <script src="<% $fsurl %>elements/js.cookie.js"></script>
<SCRIPT TYPE="text/javascript">
+ Cookies.set('freeside_status', <% mt("Package $past_method") |js_string %>,{
+ expires: 0.0035
+ });
topreload();
</SCRIPT>
</BODY>
diff --git a/httemplate/misc/unsusp_pkg.cgi b/httemplate/misc/unsusp_pkg.cgi
index b350693dd..ad7effcb3 100755
--- a/httemplate/misc/unsusp_pkg.cgi
+++ b/httemplate/misc/unsusp_pkg.cgi
@@ -1,7 +1,16 @@
%if ( $error ) {
% errorpage($error);
%} else {
-<% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %>
+% my $cookie = CGI::Cookie->new( -name => 'freeside_status',
+% -value => mt('Package unsuspended'),
+% -expires => '+5m',
+% );
+% #$r->headers_out->add( 'Set-Cookie' => $cookie->as_string );
+<% $cgi->redirect(
+ -uri => popurl(2). "view/cust_main.cgi?show=packages;custnum=".$cust_pkg->getfield('custnum'),
+ -cookie => $cookie
+ )
+%>
%}
<%init>