Revize 7337ae55
Přidáno uživatelem Ondřej Fibich před asi 9 roky(ů)
application/controllers/settings.php | ||
---|---|---|
|
||
$this->form->input('members_age_min_limit')
|
||
->label('Minimum age of main user')
|
||
->rules('valid_numeric')
|
||
->rules('valid_digit')
|
||
->value(Settings::get('members_age_min_limit'));
|
||
|
||
$this->form->group('Security');
|
||
|
||
$this->form->input('security_password_length')
|
||
->label('Minimal password length')
|
||
->rules('required|valid_numeric')
|
||
->rules('required|valid_digit')
|
||
->class('increase_decrease_buttons')
|
||
->style('width:30px')
|
||
->value(Settings::get('security_password_length'));
|
||
... | ... | |
|
||
$this->form->input('membership_interrupt_minimum')
|
||
->label('Minimum membership interrupt period (months)')
|
||
->rules('valid_numeric')
|
||
->rules('valid_digit')
|
||
->value(Settings::get('membership_interrupt_minimum'));
|
||
|
||
$this->form->input('membership_interrupt_maximum')
|
||
->label('Maximum membership interrupt period (months)')
|
||
->rules('valid_numeric')
|
||
->rules('valid_digit')
|
||
->value(Settings::get('membership_interrupt_maximum'));
|
||
}
|
||
|
Také k dispozici: Unified diff
refs #957: minimal main user age validator fix (valid::numeric accepts decimal numbers)