diff options
| author | levinse <levinse> | 2010-11-25 01:46:34 +0000 |
|---|---|---|
| committer | levinse <levinse> | 2010-11-25 01:46:34 +0000 |
| commit | 46ef8524cf2e6db7b851967062ce92ffb0773d10 (patch) | |
| tree | 5698390a5c5f95b15997264319f1a1303f97271e /httemplate/view/elements | |
| parent | 39289cd1e5a06044aa9a8dc3d2e4d8c9ffb02b11 (diff) | |
ikano.pm initial commit, svc_dsl UI initial commit, and svc_dsl on-going work, RT7111
Diffstat (limited to 'httemplate/view/elements')
| -rw-r--r-- | httemplate/view/elements/svc_Common.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index 618d33eed..25845ddc5 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -52,18 +52,22 @@ function areyousure(href) { Service #<B><% $svcnum %></B> % my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?'; | <A HREF="<%$url%><%$svcnum%>">Edit this <% $label %></A> + +% unless ( $opt{'disable_unprovision'} ) { | <A HREF="javascript:areyousure('<%$p.'misc/unprovision.cgi?'.$svcnum%>')"> Unprovision this Service</A> <BR> +% } <% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %> % foreach my $f ( @$fields ) { % -% my($field, $type, $value); +% my($field, $type, $value, $hack_strict_refs); % if ( ref($f) ) { % $field = $f->{'field'}, -% $value = $f->{'value'} ? &{ $f->{'value'} }($svc_x) : $svc_x->$field; +% $hack_strict_refs = \&{ $f->{'value'} } if $f->{'value'}; +% $value = $f->{'value'} ? &$hack_strict_refs($svc_x) : $svc_x->$field; % $type = $f->{'type'} || 'text', % } else { % $field = $f; @@ -172,4 +176,6 @@ if ($pkgnum) { $custnum = ''; } +&{ $opt{'svc_callback'} }( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, \%opt ) + if $opt{'svc_callback'}; </%init> |
