[freeside-commits] freeside/httemplate/edit acct_snarf.html, NONE, 1.1.2.2

Ivan,,, ivan at wavetail.420.am
Sat Aug 7 00:39:09 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv10163/httemplate/edit

Added Files:
      Tag: FREESIDE_1_9_BRANCH
	acct_snarf.html 
Log Message:
communigate phase 3: RPOP/acct_snarf, RT#7515

--- NEW FILE: acct_snarf.html ---
<% 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>



More information about the freeside-commits mailing list