From fd6db4b21d588dd968c3b31ecb77c638a3ff90a2 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 17 Feb 2010 08:32:54 +0000 Subject: communigate pro provisioning, RT#7083 --- httemplate/edit/process/svc_domain.cgi | 6 +++--- httemplate/edit/svc_domain.cgi | 34 +++++++++++++++++++++++++++++----- 2 files changed, 32 insertions(+), 8 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/process/svc_domain.cgi b/httemplate/edit/process/svc_domain.cgi index 59b518097..d8c1a1298 100755 --- a/httemplate/edit/process/svc_domain.cgi +++ b/httemplate/edit/process/svc_domain.cgi @@ -24,10 +24,10 @@ my $new = new FS::svc_domain ( { my $error = ''; if ($cgi->param('svcnum')) { - $error="Can't modify a domain!"; + $error = $new->replace(); } else { - $error=$new->insert; - $svcnum=$new->svcnum; + $error = $new->insert; + $svcnum = $new->svcnum; } diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi index 10079ce98..369d6a0fe 100755 --- a/httemplate/edit/svc_domain.cgi +++ b/httemplate/edit/svc_domain.cgi @@ -8,10 +8,18 @@ <% ntable("#cccccc",2) %> + -

Domain -
+ Domain + +% if ( !$svcnum || $conf->exists('svc_domain-edit_domain') ) { + +% } else { + <% $domain %> +% } + % if ($export) { +
Available top-level domains: <% $export->option('tlds') %> @@ -27,11 +35,25 @@ Available top-level domains: <% $export->option('tlds') %> % } - - -

+ + +% if ( $part_svc->part_svc_column('max_accounts')->columnflag =~ /^[FA]$/ ) { + +% } else { + + Maximum number of accounts + + + + +% } + + +
+ + <% include('/elements/footer.html') %> @@ -41,6 +63,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') ) { -- cgit v1.2.1