// construct the form
$form = \Fieldset::forge('form');
$form->form()->add_csrf();
$form->add('company_name', __('registration.step2.company_name'), array('class' => 'medium'));
$form->add('company_contact', __('registration.step2.company_contact'), array('class' => 'medium'));
$form->add('company_address', __('registration.step2.company_address'), array('class' => 'medium'));
$form->add('company_zipcode', __('registration.step2.company_zipcode'), array('class' => 'small'))->add_rule('strtoupper')->add_rule('valid_zipcode');
$form->add('company_city', __('registration.step2.company_city'), array('class' => 'medium'));
$form->add('person_initials', __('registration.step2.person_initials'), array('class' => 'small'))->add_rule('required')->add_rule('valid_initials');
$form->add('person_prefix', __('registration.step2.person_prefix'), array('class' => 'small'));
$form->add('person_surname', ('registration.step2.person_surname'), array('class' => 'medium'))->add_rule('required');
$form->add('person_gender', __('registration.step2.person_gender'), array('type' => 'select', 'options' => __('global.gender')))->add_rule('required');
$form->add('person_birthdate', __('registration.step2.person_birthdate'), array('class' => 'datepicker birthdate dateonly'))->add_rule('required')->add_rule('valid_birthdate');
$form->add('person_birthplace', __('registration.step2.person_birthplace'), array('class' => 'medium'))->add_rule('required');
$form->add('person_address', __('registration.step2.person_address'), array('class' => 'medium'))->add_rule('required');
$form->add('person_zipcode', __('registration.step2.person_zipcode'), array('class' => 'small'))->add_rule('required')->add_rule('strtoupper')->add_rule('valid_zipcode');
$form->add('person_city', __('registration.step2.person_city'), array('class' => 'medium'))->add_rule('required');
$form->add('person_email', __('registration.step2.person_email'), array('class' => 'medium'))->add_rule('required')->add_rule('valid_email');
$form->add('person_phone', __('registration.step2.person_phone'), array('class' => 'small'))->add_rule('required');
$form->validation()->add_callable('\\Validationrules');
It looks like you're new here. If you want to get involved, click one of these buttons!