From 5293815430d6592f8358b1fbe6d1dc77fa3a3825 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 22 Feb 2010 09:18:11 +0000 Subject: [PATCH] communigate: domain account defaults, RT#7083 --- FS/FS/svc_domain.pm | 4 + httemplate/edit/part_svc.cgi | 8 + httemplate/edit/process/svc_domain.cgi | 12 ++ httemplate/edit/svc_acct.cgi | 2 + httemplate/edit/svc_domain.cgi | 90 +++++++++++ httemplate/view/elements/tr.html | 9 ++ httemplate/view/svc_acct/basics.html | 52 +++--- httemplate/view/svc_domain.cgi | 220 ++------------------------ httemplate/view/svc_domain/acct_defaults.html | 71 +++++++++ httemplate/view/svc_domain/basics.html | 134 ++++++++++++++++ httemplate/view/svc_domain/dns.html | 94 +++++++++++ 11 files changed, 461 insertions(+), 235 deletions(-) create mode 100644 httemplate/view/elements/tr.html create mode 100644 httemplate/view/svc_domain/acct_defaults.html create mode 100644 httemplate/view/svc_domain/basics.html create mode 100644 httemplate/view/svc_domain/dns.html diff --git a/FS/FS/svc_domain.pm b/FS/FS/svc_domain.pm index b928e26e5..d6eaf2579 100644 --- a/FS/FS/svc_domain.pm +++ b/FS/FS/svc_domain.pm @@ -144,9 +144,13 @@ sub table_info { }, 'acct_def_password_selfchange' => { label => 'Acct. default Password modification', type => 'checkbox', + disable_inventory => 1, + disable_select => 1, }, 'acct_def_password_recover' => { label => 'Acct. default Password recovery', type => 'checkbox', + disable_inventory => 1, + disable_select => 1, }, 'acct_def_cgp_deletemode' => { label => 'Acct. default Communigate message delete method', diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 6428960dd..80f61a100 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -266,6 +266,14 @@ that field. % 'empty_label' => 'Select inventory class', % ); % +% } elsif ( $def->{type} eq 'checkbox' ) { +% +% $html .= include('/elements/checkbox.html', +% 'field' => $layer.'__'.$field, +% 'curr_value' => $value, +% 'value' => 'Y', +% ); +% % } elsif ( $def->{type} eq 'select' ) { % % $html .= qq! +% for ( 'Move To Trash', 'Immediately', 'Mark' ) { +