diff options
author | ivan <ivan> | 2010-08-07 07:39:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-08-07 07:39:06 +0000 |
commit | b3205ddf480401284a5fc4ccbcb45d9c42b0bcf9 (patch) | |
tree | 050841c8f10d32f58c7009890c0777ce78c017fb /httemplate/edit/acct_snarf.html | |
parent | 82970ec1511c7bbb892eb296f3c0358480b77ba6 (diff) |
communigate phase 3: RPOP/acct_snarf, RT#7515
Diffstat (limited to 'httemplate/edit/acct_snarf.html')
-rw-r--r-- | httemplate/edit/acct_snarf.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/httemplate/edit/acct_snarf.html b/httemplate/edit/acct_snarf.html new file mode 100644 index 000000000..5fd3f83fb --- /dev/null +++ b/httemplate/edit/acct_snarf.html @@ -0,0 +1,50 @@ +<% include('elements/edit.html', + 'name_singular' => 'remote email address', + 'table' => 'acct_snarf', + 'labels' => { 'snarfnum' => 'Remote email address', + #'svcnum' => 'Local account', + 'snarfname' => 'Name', + 'machine' => 'Mail server', + 'protocol' => 'Protocol', + 'username' => 'Username', + '_password' => 'Password', + 'check_freq' => 'Poll every', + 'leave' => 'Leave', + 'apop' => 'Use APOP', + 'tls' => 'TLS', + 'mailbox' => 'Mailbox', + }, + 'fields' => [ + { field=>'svcnum', type=>'hidden', }, + { field=>'protocol', type=>'hidden', }, + 'snarfname', + 'machine', + 'username', + { 'field'=>'_password', type=>'password', }, + { 'field' => 'check_freq', + 'type' => 'select', + 'options' => [ keys %$cf_labels ], + 'labels' => $cf_labels, + }, + { field=>'leave', type=>'checkbox', value=>'Y', }, + { field=>'apop', type=>'checkbox', value=>'Y', }, + { field=>'tls', type=>'checkbox', value=>'Y', }, + 'mailbox', + ], + 'new_callback' => sub { my( $cgi, $acct_snarf ) = @_; + $acct_snarf->svcnum($cgi->param('svcnum')); + $acct_snarf->protocol('POP'); + }, + #'viewall_url' => $viewall_url, + 'menubar' => [], + ) +%> +<%init> + +my %opt = @_; + +#my $viewall_url = $p. "browse/$table.html?svcnum=$svcnum"; + +my $cf_labels = FS::acct_snarf->check_freq_labels; + +</%init> |