diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-04-11 07:08:02 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-04-11 07:08:02 -0500 |
commit | 19c77bd46e3d0155b9f2a1afb7a3c488bc050f65 (patch) | |
tree | 05e546d15b8ef188c51727e23d170d4f00085f64 /httemplate/view | |
parent | 4551d052fce2c17e7c03e01ee66d2f91096f8649 (diff) |
RT#40641: unprovisioning preserved cancelled services
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/elements/svc_edit_link.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/httemplate/view/elements/svc_edit_link.html b/httemplate/view/elements/svc_edit_link.html index 3ff2f58b6..2de5ecf9c 100644 --- a/httemplate/view/elements/svc_edit_link.html +++ b/httemplate/view/elements/svc_edit_link.html @@ -1,18 +1,18 @@ -% if ( $cancel_date ) { -<I><% mt("Canceled [_1]", time2str('%b %o %Y', $cancel_date) ) |h %></I> -% } else { <SCRIPT> function areyousure_delete() { if (confirm(<% mt('Permanently delete this service?') |js_string %>) == true) window.location.href = '<% $cancel_url %>'; } </SCRIPT> +% if ( $cancel_date ) { +| <I><% mt("Canceled [_1]", time2str('%b %o %Y', $cancel_date) ) |h %></I> +% } else { % if ( $curuser->access_right('Provision customer service') ) { | <A HREF="<% $edit_url %>"><% mt("Edit this [_1]", $label) |h %></A> % } -% if ( $curuser->access_right('Unprovision customer service') ) { +% } +% if ( $curuser->access_right('Unprovision customer service') ) { | <A HREF="javascript:areyousure_delete()"><% mt('Unprovision this Service') |h %></A> -% } % } <& /elements/manage_device_link.html, 'svc' => $svc_x, |