summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-part_svc_class.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2012-05-13 22:16:37 -0700
committerIvan Kohler <ivan@freeside.biz>2012-05-13 22:16:37 -0700
commit8d7cd4b2bd99cc1a711d81b55a1652d31eda4df5 (patch)
treef742c8f30a6724b4cf429a3247a2c9e075b668f2 /httemplate/elements/tr-select-part_svc_class.html
parent6a66ab1163bfcd6f46df00aa474d013530a1e13c (diff)
service def classes, to support corecom portal, RT#17617
Diffstat (limited to 'httemplate/elements/tr-select-part_svc_class.html')
-rw-r--r--httemplate/elements/tr-select-part_svc_class.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-part_svc_class.html b/httemplate/elements/tr-select-part_svc_class.html
new file mode 100644
index 000000000..2f4b09381
--- /dev/null
+++ b/httemplate/elements/tr-select-part_svc_class.html
@@ -0,0 +1,27 @@
+% if ( scalar(@{ $opt{'part_svc_class'} }) == 0 ) {
+
+ <INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE="">
+
+% } else {
+
+ <TR>
+ <TD ALIGN="right"><% $opt{'label'} || 'Service class' %></TD>
+ <TD>
+ <% include( '/elements/select-part_svc_class.html',
+ 'curr_value' => $classnum,
+ %opt
+ )
+ %>
+ </TD>
+ </TR>
+
+% }
+
+<%init>
+
+my %opt = @_;
+my $classnum = $opt{'curr_value'} || $opt{'value'};
+
+$opt{'part_svc_class'} ||= [ qsearch( 'part_svc_class', { disabled=>'' } ) ];
+
+</%init>