X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_domain.cgi;h=417b1b4c55cb786938ab1a7d8877851ee7da115d;hb=d4cdc4db87f1b6a373398b7ab33e791bd0527dda;hp=10079ce98f3d863454e386706ec20d20dda8b090;hpb=ad84bf7cfdb56aa1fe268ea315b7a2f7dd768db2;p=freeside.git
diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi
index 10079ce98..417b1b4c5 100755
--- a/httemplate/edit/svc_domain.cgi
+++ b/httemplate/edit/svc_domain.cgi
@@ -8,10 +8,19 @@
<% ntable("#cccccc",2) %>
+
-Domain
-
+
Domain |
+
+% if ( !$svcnum || $conf->exists('svc_domain-edit_domain') ) {
+
+% } else {
+ <% $domain %>
+
+% }
+
% if ($export) {
+
Available top-level domains: <% $export->option('tlds') %>
|
@@ -26,12 +35,46 @@ Available top-level domains: <% $export->option('tlds') %>
-% }
+% 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,
+ )
+ %>
+% }
-
-
+% }
+
+
+<% include('svc_domain/communigate-basics.html',
+ 'svc_domain' => $svc_domain,
+ 'part_svc' => $part_svc,
+ 'communigate' => $communigate,
+ )
+%>
+
+
+
+<% include('svc_domain/communigate-acct_defaults.html',
+ 'svc_domain' => $svc_domain,
+ 'part_svc' => $part_svc,
+ 'communigate' => $communigate,
+ )
+%>
+
+
+
<% include('/elements/footer.html') %>
@@ -41,6 +84,8 @@ Available top-level domains: <% $export->option('tlds') %>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+my $conf = new FS::Conf;
+
my($svcnum, $pkgnum, $svcpart, $kludge_action, $part_svc,
$svc_domain);
if ( $cgi->param('error') ) {
@@ -94,21 +139,14 @@ my $action = $svcnum ? 'Edit' : 'Add';
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 $otaker = getotaker;
+my $registrar = $export ? $export->registrar : '';
my $domain = $svc_domain->domain;