diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-09-23 18:07:47 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-09-23 18:07:47 -0700 |
commit | 36a1e9c1661fb552d368f2f675dcb0793d733748 (patch) | |
tree | a4d2e0c2bb10ae1f49017ea1a900f72c7dd48a75 /httemplate/view | |
parent | aa38c070977cf63365a4d26a3e4a7e5049ad70d0 (diff) |
export host selection per service, RT#17914
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/elements/tr-svc_export_machine.html | 27 | ||||
-rw-r--r-- | httemplate/view/svc_acct/basics.html | 5 |
2 files changed, 32 insertions, 0 deletions
diff --git a/httemplate/view/elements/tr-svc_export_machine.html b/httemplate/view/elements/tr-svc_export_machine.html new file mode 100644 index 000000000..1ba8d74a1 --- /dev/null +++ b/httemplate/view/elements/tr-svc_export_machine.html @@ -0,0 +1,27 @@ +% foreach my $part_export (@part_export) { +% my $label = ( $part_export->exportname +% ? $part_export->exportname +% : $part_export->label +% ). +% ' hostname'; +% +% my $svc_export_machine = qsearchs('svc_export_machine', { +% 'svcnum' => $opt{svc}->svcnum, +% 'exportnum' => $part_export->exportnum, +% }); + + <& tr.html, + 'label' => $label, + 'value' => $svc_export_machine + ? $svc_export_machine->part_export_machine->machine + : '', + &> +% } +<%init> + +my %opt = @_; + +my @part_export = grep { $_->machine eq '_SVC_MACHINE' } + $opt{part_svc}->part_export; + +</%init> diff --git a/httemplate/view/svc_acct/basics.html b/httemplate/view/svc_acct/basics.html index bcd84696e..1cdf77615 100644 --- a/httemplate/view/svc_acct/basics.html +++ b/httemplate/view/svc_acct/basics.html @@ -56,6 +56,11 @@ &> % } +<& /view/elements/tr-svc_export_machine.html, + 'svc' => $svc_acct, + 'part_svc' => $part_svc, +&> + % if ($svc_acct->uid ne '') { <& /view/elements/tr.html, label=>mt('UID'), value=>$svc_acct->uid &> % } |