<INPUT TYPE="text" NAME="domain" VALUE="<% $domain %>" SIZE=28 MAXLENGTH=63>
% } else {
<B><% $domain %></B>
+ <INPUT TYPE="hidden" NAME="domain" VALUE="<% $domain %>">
% }
% if ($export) {
</TR>
+% if($export->option('auoptions')) {
+% # XXX: this whole thing should be done like svc_Common with label_fixup, etc. eventually
+ <% include('/elements/tr-select.html',
+ 'field' => 'au_eligibiilty_type',
+ 'label' => 'AU Eligibility Type',
+ 'value' => $svc_domain->au_eligibility_type,
+ 'options' => $svc_domain->au_eligibility_type_values,
+ )
+ %>
+ <% include('/elements/tr-input-text.html',
+ 'field' => 'au_registrant_name',
+ 'label' => 'AU Registrant Name',
+ 'value' => $svc_domain->au_registrant_name,
+ )
+ %>
+% }
+
% }
</TD>
</TR>
-% if ( $part_svc->part_svc_column('max_accounts')->columnflag =~ /^[FA]$/ ) {
- <INPUT TYPE="hidden" NAME="max_accounts" VALUE="<% $svc_domain->max_accounts %>">
+% if ( $part_svc->part_svc_column('quota')->columnflag =~ /^[FA]$/ ) {
+ <INPUT TYPE="hidden" NAME="quota" VALUE="<% $svc_domain->quota %>">
% } else {
<TR>
- <TD ALIGN="right">Maximum number of accounts</TD>
+ <TD ALIGN="right">Quota</TD>
<TD>
- <INPUT TYPE="text" NAME="max_accounts" SIZE=5 MAXLENGTH=6 VALUE="<% $svc_domain->max_accounts %>">
+ <INPUT TYPE="text" NAME="quota" SIZE=8 VALUE="<% $svc_domain->quota %>">
</TD>
</TR>
% }
-</TABLE>
+<% include('svc_domain/communigate-basics.html',
+ 'svc_domain' => $svc_domain,
+ 'part_svc' => $part_svc,
+ 'communigate' => $communigate,
+ )
+%>
+</TABLE>
<BR>
+
+<% include('svc_domain/communigate-acct_defaults.html',
+ 'svc_domain' => $svc_domain,
+ 'part_svc' => $part_svc,
+ 'communigate' => $communigate,
+ )
+%>
+
<INPUT TYPE="submit" VALUE="Submit">
</FORM>
my $svc = $part_svc->getfield('svc');
-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
-if ($export) {
- $registrar = $export->registrar;
-}
+my $registrar = $export ? $export->registrar : '';
my $otaker = getotaker;