summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-svc_acct-domain.html
diff options
context:
space:
mode:
authorivan <ivan>2009-04-12 06:24:45 +0000
committerivan <ivan>2009-04-12 06:24:45 +0000
commit90fecad861bd6817b55e9391431430e0d86d9084 (patch)
treebfb79419ad9688e18b1a8d07def0065903856bac /httemplate/elements/tr-select-svc_acct-domain.html
parent8fb243091939f37e24163925be78f4e9f3485978 (diff)
adding
Diffstat (limited to 'httemplate/elements/tr-select-svc_acct-domain.html')
-rw-r--r--httemplate/elements/tr-select-svc_acct-domain.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-svc_acct-domain.html b/httemplate/elements/tr-select-svc_acct-domain.html
new file mode 100644
index 000000000..9d1a4b678
--- /dev/null
+++ b/httemplate/elements/tr-select-svc_acct-domain.html
@@ -0,0 +1,34 @@
+%if ( $columnflag eq 'F' ) {
+ <INPUT TYPE="hidden" NAME="domsvc" VALUE="<% $domsvc %>">
+% } else {
+
+ <TR>
+ <TD ALIGN="right"><% $opt{'label'} || 'Domain' %></TD>
+ <TD>
+ <% include('/elements/select-svc_acct-domain.html',
+ 'curr_value' => $domsvc,
+ 'part_svc' => $part_svc,
+ 'cust_pkg' => $cust_pkg,
+ )
+ %>
+ </TD>
+ </TR>
+% }
+<%init>
+
+my %opt = @_;
+
+my $domsvc = $opt{'curr_value'};
+
+#required
+my $part_svc = $opt{'part_svc'}
+ || qsearchs('part_svc', { 'svcpart' => $opt{'svcpart'} });
+
+my $columnflag = $part_svc->part_svc_column('domsvc')->columnflag;
+
+#optional
+my $cust_pkg = $opt{'cust_pkg'};
+$cust_pkg ||= qsearchs('cust_pkg', { 'pkgnum' => $opt{'pkgnum'} })
+ if $opt{'pkgnum'};
+
+</%init>