From 22e59cf0fddecd4808a6ce91fe2b1712f3ab3c87 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 23 Jul 2010 10:02:40 +0000 Subject: add EmptyTrash values and finish consolidating the CGP timezone arrays, RT#7083 --- httemplate/edit/svc_acct.cgi | 16 +++++++++++----- httemplate/edit/svc_domain.cgi | 10 ++++++++-- 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 09a4cfd64..59b5d10f3 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -392,10 +392,16 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
- - On logout remove trash - - + <% include('/elements/tr-select.html', + 'label' => 'On logout remove trash', + 'field' => 'cgp_emptytrash', + 'options' => $svc_acct->cgp_emptytrash_values, + 'labels' => { + '' => 'default (92 days)', #right? + }, + 'curr_value' => $svc_acct->cgp_emptytrash, + ) + %> <% include('/elements/tr-select.html', 'label' => 'Language', @@ -411,7 +417,7 @@ Service # <% $svcnum ? "$svcnum" : " (NEW)" %>
<% include('/elements/tr-select.html', 'label' => 'Time zone', 'field' => 'cgp_timezone', - 'options' => $svc_acct->cgp_timezone, + 'options' => $svc_acct->cgp_timezone_values, 'labels' => { '' => 'default (HostOS)', }, diff --git a/httemplate/edit/svc_domain.cgi b/httemplate/edit/svc_domain.cgi index 5fe095d07..5abe9d6b5 100755 --- a/httemplate/edit/svc_domain.cgi +++ b/httemplate/edit/svc_domain.cgi @@ -220,11 +220,17 @@ Account defaults - <% include('/elements/tr-input-text.html', + <% include('/elements/tr-select.html', 'label' => 'On logout remove trash', + 'field' => 'acct_def_cgp_emptytrash', + 'options' => $svc_domain->cgp_emptytrash_values, + 'labels' => { + '' => 'default (92 days)', #right? + }, 'curr_value' => $svc_domain->acct_def_cgp_emptytrash, ) %> + <% include('/elements/tr-select.html', 'label' => 'Language', 'field' => 'acct_def_cgp_language', @@ -239,7 +245,7 @@ Account defaults <% include('/elements/tr-select.html', 'label' => 'Time zone', 'field' => 'acct_def_cgp_timezone', - 'options' => $svc_domain->cgp_timezone, + 'options' => $svc_domain->cgp_timezone_values, 'labels' => { '' => 'default (HostOS)', }, -- cgit v1.2.1