summaryrefslogtreecommitdiff
path: root/httemplate/edit/elements
diff options
context:
space:
mode:
authorlevinse <levinse>2010-11-25 01:46:34 +0000
committerlevinse <levinse>2010-11-25 01:46:34 +0000
commit46ef8524cf2e6db7b851967062ce92ffb0773d10 (patch)
tree5698390a5c5f95b15997264319f1a1303f97271e /httemplate/edit/elements
parent39289cd1e5a06044aa9a8dc3d2e4d8c9ffb02b11 (diff)
ikano.pm initial commit, svc_dsl UI initial commit, and svc_dsl on-going work, RT7111
Diffstat (limited to 'httemplate/edit/elements')
-rw-r--r--httemplate/edit/elements/edit.html5
-rw-r--r--httemplate/edit/elements/svc_Common.html7
2 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 3d828478f..142d0c3ae 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -311,6 +311,11 @@ Example:
% foreach grep exists($f->{$_}),
% qw( hashref agent_virt agent_null agent_null_right );
%
+% # fixed
+% $include_common{$_} = $f->{$_}
+% foreach grep exists($f->{$_}),
+% qw( formatted_value );
+%
% #htmlarea
% $include_common{$_} = $f->{$_}
% foreach grep exists($f->{$_}), qw( width height );
diff --git a/httemplate/edit/elements/svc_Common.html b/httemplate/edit/elements/svc_Common.html
index e74f44276..2e27f851d 100644
--- a/httemplate/edit/elements/svc_Common.html
+++ b/httemplate/edit/elements/svc_Common.html
@@ -29,6 +29,13 @@
die "No part_svc entry!" unless $part_svc;
label_fixup($part_svc, $opt);
+
+ if ( my $cb = $opt{'svc_edit_callback'} ) {
+ my $cust_pkg = $pkgnum
+ ? qsearchs('cust_pkg', {pkgnum=>$pkgnum})
+ : ''; #?
+ &{ $cb }( $cgi,$svc_x, $part_svc,$cust_pkg, $fields,$opt);
+ }
},
'new_hashref_callback' => sub {