diff options
| author | ivan <ivan> | 2010-03-08 07:02:58 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2010-03-08 07:02:58 +0000 |
| commit | 611624bc08f525d19e1bd548a7d005aa73a53145 (patch) | |
| tree | f53bcfab25e8038ae485f707da619e37f46741a9 /httemplate/elements/tr-select-svc-domain.html | |
| parent | 919bcddcb7a1ec551d27faac925fedc7d9644f3c (diff) | |
domain names in netsapiens export (domain name association w/svc_phone), RT#5864
Diffstat (limited to 'httemplate/elements/tr-select-svc-domain.html')
| -rw-r--r-- | httemplate/elements/tr-select-svc-domain.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-svc-domain.html b/httemplate/elements/tr-select-svc-domain.html new file mode 100644 index 000000000..437bc5896 --- /dev/null +++ b/httemplate/elements/tr-select-svc-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-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> |
