X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_domain.cgi;fp=httemplate%2Fview%2Fsvc_domain.cgi;h=51caa5c99790025f7928a330a5f444fe3b54117c;hp=b0f4ef0cf6174977088b1441e49cdfee02b91314;hb=be61853021954c3cf8f6e63a41b1fa693e3af6d8;hpb=16941ee3099833522bb8b7ac3cdf88b4a5f0ad89
diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi
index b0f4ef0cf..51caa5c99 100755
--- a/httemplate/view/svc_domain.cgi
+++ b/httemplate/view/svc_domain.cgi
@@ -62,7 +62,14 @@ Service #<% $svcnum %>
% }
-% if ( $svc_domain->max_accounts ) {
+% if ( $communigate ) {
+
+ Aliases |
+ <% $svc_domain->cgp_aliases %> |
+
+% }
+
+% if ( $communigate && $svc_domain->max_accounts ) {
Maximum number of Accounts |
<% $svc_domain->max_accounts %> |
@@ -78,6 +85,11 @@ Service #<% $svcnum %>
+
+ Enabled services |
+ <% $svc_domain->cgp_accessmodes %> |
+
+
@@ -122,7 +134,7 @@ DNS records
% ) {
% ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g;
(delete)
-% }
+% }
@@ -221,19 +233,16 @@ if ($svc_domain->catchall) {
my $domain = $svc_domain->domain;
-my $status = 'Unknown';
-my %ops = ();
-
-my @exports = $part_svc->part_export();
-
-my $registrar;
-my $export;
+my $communigate = scalar($part_svc->part_export('communigate_pro'));
+ # || scalar($part_svc->part_export('communigate_pro_singledomain'));
# Find the first export that does domain registration
-foreach (@exports) {
- $export = $_ if $_->can('registrar');
-}
+my @exports = grep $_->can('registrar'), $part_svc->part_export;
+my $export = $exports[0];
# If we have a domain registration export, get the registrar object
+my $registrar;
+my $status = 'Unknown';
+my %ops = ();
if ($export) {
$registrar = $export->registrar;
my $domstat = $export->get_status( $svc_domain );