Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 2227

Přidáno uživatelem Ondřej Fibich před téměř 11 roky(ů)

Opravy:
- fixes #802: E-mail je povinny pri pridavani clena

Upravy:
- drobne zprehledneni kodu formulare v pridani clena

Zobrazit rozdíly:

freenetis/branches/1.1/application/controllers/members.php
->style('width:200px');
$form->input('membername')
->label(__('Name of organization').': '.help::hint('member_name'))
->label('Name of organization')
->help(help::hint('member_name'))
->rules('length[1,60]');
// access control
......
$pass_min_len = Settings::get('security_password_length');
$form->password('password')
->label(__('Password').': '.help::hint('password'))
->label('Password')
->help(help::hint('password'))
->rules('required|length['.$pass_min_len.',50]')
->class('main_password');
......
->style('width:180px');
$form->input('email')
->rules('required|length[3,100]|valid_email')
->rules('valid_email')
->style('width:250px');
if (Settings::get('finance_enabled'))
......
$form->group('Account information');
$form->input('variable_symbol')
->label(__('Variable symbol').': '.help::hint('variable_symbol'))
->label('Variable symbol')
->help(help::hint('variable_symbol'))
->rules('length[1,10]')
->class('join1')
->callback('Variable_Symbols_Controller::valid_var_sym');
......
}
$form->input('entrance_fee')
->label(__('Entrance fee').': '.help::hint('entrance_fee'))
->label('Entrance fee')
->help(help::hint('entrance_fee'))
->rules('valid_numeric')
->value($entrance_fee);
$form->input('debt_payment_rate')
->label(
__('Monthly instalment of entrance').
': '.help::hint('entrance_fee_instalment')
)
->label('Monthly instalment of entrance')
->help(help::hint('entrance_fee_instalment'))
->rules('valid_numeric')
->value($entrance_fee);
}
......
$contact_model->clear();
// email
if (! empty($form_data['email']))
if (!empty($form_data['email']))
{
$contact_model->type = Contact_Model::TYPE_EMAIL;
$contact_model->value = $form_data['email'];

Také k dispozici: Unified diff