<?php use_helper('Validation') ?>
<?php use_stylesheet('/sf/sf_admin/css/main') ?>
<?php use_helper('I18N');?>
<div id="sf_admin_container" style="width:70%">
    <h1><?php echo __('Create user')?></h1>
    <?php echo form_tag('user/create', 'multipart=true')?><!--start form--> 
        <fieldset>
            <div class="form-row">
                 
                <label for="username" class="required"><?php echo __('Username')?></label>  
                <div class="content">
                    <?php echo form_error('username') ?>  
                    <input type="text" name="username" value="<?php echo $sf_params->get('username')?>"/>
                </div>
            </div>
            
            <div class="form-row">
                <label for="password" class="required"><?php echo __('Password')?></label>  
                <div class="content">
                    <?php echo form_error('password') ?>
                    <input type="password" name="password" value="<?php echo $sf_params->get('password')?>" size="30" />   
                </div>
            </div>
            
            <div class="form-row">
                
                <label for="confirm_password" class="required"><?php echo __('Confirm password')?></label>  
                <div class="content">
                    <?php echo form_error('confirm_password') ?>
                    <input type="password" name="confirm_password" value="<?php echo $sf_params->get('confirm_password')?>" size="30" />   
                </div>
            </div>
            
            <div class="form-row">
                <label for="email" class="required"><?php echo __('Email')?></label>  
                <div class="content">
                    <?php echo form_error('email') ?>
                    <input type="text" name="email" value="<?php echo $sf_params->get('email')?>" size="50" />   
                </div>
            </div>
            
            <div class="form-row">
                <label for="group"><?php echo __('Group')?></label>  
                <div class="content">
                    <select name="group">
                        <option value="3"><?php echo __('Normal user')?></option>
                        <option value="2"><?php echo __('Subject manager')?></option>
                    </select>  
                </div>
            </div>
            
            <div class="form-row">
                <label for="firtname"><?php echo __('Fullname')?></label>  
                <div class="content">
                    <input type="text" name="firstname" value="<?php echo $sf_params->get('firstname')?>" size="30" />   
                </div>
            </div>
            
            <div class="form-row">
                <label for="school"><?php echo __('School')?></label>  
                <div class="content">
                    <input type="text" name="school" value="<?php echo $sf_params->get('school')?>" size="100" />   
                </div>
            </div>
            
        </fieldset>
        
        <ul class="sf_admin_actions">
          <li><input type="submit" name="save" value="save" class="sf_admin_action_save" /></li>
          <li><input type="submit" name="save_and_add" value="save and add" class="sf_admin_action_save_and_add" /></li>
        </ul>
    </form>
</div> <!--"sf_admin_conterner"-->