diff options
author | ivan <ivan> | 2010-02-22 07:13:29 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-02-22 07:13:29 +0000 |
commit | e17528c356bb137bcff4c6934a2c7e254202838e (patch) | |
tree | d2e4932b952e8927659cd5f8bd09112772632388 /httemplate | |
parent | be61853021954c3cf8f6e63a41b1fa693e3af6d8 (diff) |
communigate: domain aliases, enabled services & administrator domain, RT#7083
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/svc_domain.cgi | 16 | ||||
-rwxr-xr-x | httemplate/view/svc_domain.cgi | 14 |
2 files changed, 30 insertions, 0 deletions
diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi index a2b87e4fa..a3589c4a7 100755 --- a/httemplate/edit/svc_domain.cgi +++ b/httemplate/edit/svc_domain.cgi @@ -38,6 +38,22 @@ Available top-level domains: <% $export->option('tlds') %> </TD> </TR> +% if ( $communigate ) { + <TR> + <TD ALIGN="right">Administrator domain</TD> + <TD> + <% include('/elements/select-domain.html', + 'element_name' => 'parent_svcnum', + 'curr_value' => $svc_domain->parent_svcnum, + 'empty_label' => '(none)', + ) + %> + </TD> + </TR> +% } else { + <INPUT TYPE="hidden" NAME="parent_svcnum" VALUE="<% $svc_domain->parent_svcnum %>"> +% } + % if ( $communigate % && $part_svc->part_svc_column('max_accounts')->columnflag !~ /^[FA]$/ ) { diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 51caa5c99..3fd898ba5 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -63,10 +63,24 @@ Service #<B><% $svcnum %></B> % } % if ( $communigate ) { + + <TR> + <TD ALIGN="right">Administrator domain</TD> + <TD BGCOLOR="#ffffff"> +% if ( $svc_domain->parent_svcnum ) { +% #XXX agent-virt aware the link + <A HREF="svc_domain.cgi?<% $svc_domain->parent_svcnum %>"><% $svc_domain->parent_svc_x->domain %></A> +% } else { + <I>(none)</I> +% } + </TD> + </TR> + <TR> <TD ALIGN="right">Aliases</TD> <TD BGCOLOR="#ffffff"><% $svc_domain->cgp_aliases %></TD> </TR> + % } % if ( $communigate && $svc_domain->max_accounts ) { |