[freeside-commits] freeside/httemplate/view svc_domain.cgi, 1.31.2.3, 1.31.2.4
Ivan,,,
ivan at wavetail.420.am
Sun Feb 21 19:22:17 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail.420.am:/tmp/cvs-serv3579/httemplate/view
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_domain.cgi
Log Message:
communigate: domain aliases, enabled services, RT#7083
Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_domain.cgi,v
retrieving revision 1.31.2.3
retrieving revision 1.31.2.4
diff -u -d -r1.31.2.3 -r1.31.2.4
--- svc_domain.cgi 20 Feb 2010 22:33:10 -0000 1.31.2.3
+++ svc_domain.cgi 22 Feb 2010 03:22:15 -0000 1.31.2.4
@@ -62,7 +62,14 @@
</TR>
% }
-% if ( $svc_domain->max_accounts ) {
+% if ( $communigate ) {
+ <TR>
+ <TD ALIGN="right">Aliases</TD>
+ <TD BGCOLOR="#ffffff"><% $svc_domain->cgp_aliases %></TD>
+ </TR>
+% }
+
+% if ( $communigate && $svc_domain->max_accounts ) {
<TR>
<TD ALIGN="right">Maximum number of Accounts</TD>
<TD BGCOLOR="#ffffff"><% $svc_domain->max_accounts %></TD>
@@ -78,6 +85,11 @@
</TD>
</TR>
+<TR>
+ <TD ALIGN="right">Enabled services</TD>
+ <TD BGCOLOR="#ffffff"><% $svc_domain->cgp_accessmodes %></TD>
+</TR>
+
</TABLE></TD></TR></TABLE>
<BR>
@@ -122,7 +134,7 @@
% ) {
% ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g;
(<A HREF="javascript:areyousure('<%$p%>misc/delete-domain_record.cgi?<%$domain_record->recnum%>', 'Delete \'<% $domain_record->reczone %> <% $type %> <% $recdata %>\' ?' )">delete</A>)
-% }
+% }
</td>
</tr>
@@ -221,19 +233,16 @@
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 );
More information about the freeside-commits
mailing list