| 17 | | <legend>New User:</legend> |
| 18 | | <?php echo $form->input('User.username', array("size" => 10, "maxlength" => 10, "between"=>": ", "onBlur"=>"this.value=this.value.toLowerCase()")); ?><span class="small">At least 5 characters, only lowercase. No spaces.</span> |
| 19 | | <br /> |
| | 18 | <legend><?php __('New user'); ?></legend> |
| | 19 | <?php echo $form->input('User.username', array("size" => 10, "maxlength" => 10, "between"=>": ", "onBlur"=>"this.value=this.value.toLowerCase()")); ?> |
| | 20 | <span class="small"><?php __('At least 5 characters, only lowercase. No spaces.');?></span> |
| | 21 | <div><br /></div> |
| | 22 | <?php echo $form->label('User.pwd', __('Password'.': ', true)) . $form->password('User.pwd', array('size'=>9,'maxlength'=>9)); ?> |
| | 23 | <span class="small"><?php __('At least 6 characters'); ?></span> |
| | 24 | <?php |
| | 25 | echo $html->div(null, '<br />'); |
| | 26 | echo $form->input('User.name', array('size' => 25, 'maxlength' => 50, 'between'=>': ', 'label'=>__('Name and last name', true))); |
| | 27 | |
| | 28 | echo $html->div(null, '<br />'); |
| | 29 | echo $form->input('User.email', array('size' => 20, 'maxlength' => 45, 'between'=>': ', 'label'=>__('Email', true))); |
| | 30 | |
| | 31 | echo $html->div(null, '<br />'); |
| | 32 | echo $form->label('User.group_id', __('Group'.': ', true)); |
| | 33 | |
| | 34 | $fieldName = 'User.group_id'; |
| | 35 | $selected = 3; |
| | 36 | $showEmpty = false; |
| | 37 | $return = true; |
| | 38 | |
| | 39 | echo $form->select($fieldName, $groups, $selected, null, null, $showEmpty, $return); |
| 24 | | <?php echo $form->input('User.name', array("size" => 25, "maxlength" => 50, "between"=>": ")); ?> |
| 25 | | <br /> |
| 26 | | <?php echo $form->label('User.group_id', 'Group:' );?> |
| 27 | | <?php |
| 28 | | $fieldName = 'User.group_id'; |
| 29 | | $selected = 3; |
| 30 | | $showEmpty = false; |
| 31 | | $return = true; |
| 32 | | |
| 33 | | echo $form->select($fieldName, $groups, $selected, null, null, $showEmpty, $return); |
| 34 | | ?> |
| 35 | | <br /> |
| 36 | | |
| 37 | | <?php echo $form->input('User.code', array("size" => 7, "maxlength" => 7)); ?> |
| 38 | | |
| 39 | | <?php echo $form->label('User.pwd', 'Password: ') . $form->password('User.pwd', array('size' => 9, 'maxlength' => 9)); ?> |
| 40 | | <span class="small">At least 6 characters</span> |
| 41 | | <br /><br /> |
| 42 | | <?php echo $form->label('User.description', 'About you and your interests:' );?><br /> |
| 43 | | <?php echo $form->textarea('User.description', array("rows"=>4, "cols"=>50)) ?> |
| 44 | | <br /><br /> |
| 45 | | <?php |
| | 44 | echo $html->div(null, '<br />'); |
| | 45 | echo $form->label('User.description', __('About you and your interests', true) ) . '<br />'; |
| | 46 | echo $form->textarea('User.description', array("rows"=>4, "cols"=>50)).'<br />'; |
| 50 | | echo $form->label('User.agree', $tmp); |
| 51 | | echo $form->checkbox('User.agree', array("value"=>1)); |
| 52 | | |
| 53 | | echo $ajax->submit('Send', array("url" => "/users/insert/", |
| | 51 | echo $form->label('User.agree', $tmp); |
| | 52 | echo $form->checkbox('User.agree', array('value'=>1)); |
| | 53 | |
| | 54 | echo $html->div(null, '<br />'); |
| | 55 | |
| | 56 | echo $ajax->submit(__('Send', true), array("url" => "/users/insert/", |