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:21:15 -0500 |
commit | 5b77b3d0c9aa2d0fa15ca5284d7e34ed68f4ee12 (patch) | |
tree | b272629cf46aaf2ffe86ac7bb31f726f1d08e330 /httemplate/view | |
parent | 5cda22da9d0771878b5256895e1655d75f3ea1f6 (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, |