X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Felements%2Fsvc_Common.html;h=618d33eed338971b5ee0101212265f19c067e802;hp=0500248b161cb8d91aca207ac0f11fc84b46619d;hb=2d73473ce78c22160b618e93802a9551c9c77d69;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html
index 0500248b1..618d33eed 100644
--- a/httemplate/view/elements/svc_Common.html
+++ b/httemplate/view/elements/svc_Common.html
@@ -1,82 +1,98 @@
-% # options example...
-% #
-% # 'table' => 'svc_something'
-% #
-% # 'labels' => {
-% # 'column' => 'Label',
-% # },
-% #
-% # listref - each item is a literal column name (or method) or (notyet) coderef
-% # if not specified all columns (except for the primary key) will be viewable
-% # 'fields' => [
-% # ]
-% #
-% # # defaults to "edit/$table.cgi?", will have svcnum appended
-% # 'edit_url' =>
-%
-%
-% if ( $custnum ) {
+<%doc>
+
+#Example:
+
+ include( 'elements/svc_Common.html,
+
+ 'table' => 'svc_something'
+
+ 'labels' => {
+ 'column' => 'Label',
+ },
+
+ #listref - each item is a literal column name (or method) or
+ # (notyet) coderef. if not specified all columns (except for the
+ #primary key) will be viewable
+ 'fields' => [
+ ]
+
+ # defaults to "edit/$table.cgi?", will have svcnum appended
+ 'edit_url' =>
+ #at the very bottom (well, as low as you can go from here)
+ 'html_foot' => '',
+
+ )
+
+%doc>
+
+
+% if ( $custnum ) {
<% include("/elements/header.html","View $label: $value") %>
<% include( '/elements/small_custview.html', $custnum, '', 1,
"${p}view/cust_main.cgi") %>
-% } else {
-
-
+% } else {
<% include("/elements/header.html","View $label: $value", menubar(
"Cancel this (unaudited) $label" =>
"javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')"
)) %>
-% }
+% }
Service #<% $svcnum %>
% my $url = $opt{'edit_url'} || $p. 'edit/'. $opt{'table'}. '.cgi?';
| Edit this <% $label %>
+|
+Unprovision this Service
<% ntable("#cccccc") %>