        <?php
            /*action = 'usuario/update', */
            echo form_open('usuario/update',array('class'=>'form-app' , 'id'=>'form-usuario'));
            foreach ($usuario as $value) {   /*echo var_dump($usuario);*/ ?>
            <div class="row">
                <div class="col-md-3">
                    <div class="form-group">
                        <?php
                                echo form_input(array('name'=>'id', 'id'=>'id', 'type'=>'hidden',
                                            'value'=>$value->id));
                                echo form_label('Documento', 'documento');
                                echo form_input(array('name'=>'documento', 'id'=>'documento', 'type'=>'text',
                                            'value'=>$value->documento, 'placeholder'=>'Documento*',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>

                <div class="col-md-5">
                    <div class="form-group">
                        <?php   echo form_label('Email', 'email');
                                echo form_input(array('name'=>'email', 'id'=>'email', 'type'=>'email',
                                            'value'=>$value->email, 'placeholder'=>'Email de Usuario*',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php   echo form_label('Password', 'password');
                                echo form_input(array('name'=>'password', 'id'=>'password', 'type'=>'password',
                                            'value'=>set_value('password'), 'placeholder'=>'Password*',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>




            </div>



            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <?php   echo form_label('Nombre', 'nombre');
                                echo form_input(array('name'=>'nombre', 'id'=>'nombre', 'type'=>'text',
                                            'value'=>$value->nombre, 'placeholder'=>'Nombre*',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="form-group">
                        <?php   echo form_label('Apellido', 'apellido');
                                echo form_input(array('name'=>'apellido', 'id'=>'apellido', 'type'=>'text',
                                            'value'=>$value->apellido, 'placeholder'=>'Apellido*',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>


            </div>
            <div class="row">
                <div class="col-md-4">
                    <div class="form-group">
                        <?php
                                $genero = array(
                                        ''         => 'Seleccione el Genero*',
                                        'M'         => 'Masculino',
                                        'F'         => 'Femenino'
                                );
                                echo form_label('Genero*', 'genero');
                                echo form_dropdown('genero', $genero, $value->genero, array('id'=>'genero',
                                            'class'=>'form-control' ));
                        ?>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <?php   echo form_label('Rol*', 'rol');
                                echo form_dropdown('rol', $roles, $value->rol, array('id'=>'rol',
                                            'class'=>'form-control ', 'placeholder'=>'Rol*'  ));
                        ?>
                    </div>
                </div>


                <div class="col-md-4">
                    <div class="form-group">
                        <?php
                                $estado = array(
                                        '1'         => 'Activo',
                                        '0'         => 'Inactivo',

                                );
                                echo form_label('Estado', 'estado');
                                echo form_dropdown('estado', $estado, $value->estado, array('id'=>'estado',
                                            'class'=>'form-control' ));
                        ?>
                    </div>
                </div>

                <div class="col-md-6 ss">
                    <div class="form-group">
                        <?php   echo form_label('EPS', 'eps');
                                echo form_input(array('name'=>'eps', 'id'=>'eps', 'type'=>'text',
                                            'value'=>$value->eps, 'placeholder'=>'EPS',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>
                <div class="col-md-6 ss">
                    <div class="form-group">
                        <?php   echo form_label('AFP', 'afp');
                                echo form_input(array('name'=>'afp', 'id'=>'afp', 'type'=>'text',
                                            'value'=>$value->afp, 'placeholder'=>'AFP',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>
                <div class="col-md-6 ss">
                    <div class="form-group">
                        <?php   echo form_label('ARL', 'arl');
                                echo form_input(array('name'=>'arl', 'id'=>'arl', 'type'=>'text',
                                            'value'=>$value->arl, 'placeholder'=>'ARL',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>
                <div class="col-md-6 ss">
                    <div class="form-group">
                        <?php   echo form_label('Caja de Compensación Familiar', 'ccf');
                                echo form_input(array('name'=>'ccf', 'id'=>'ccf', 'type'=>'text',
                                            'value'=>$value->ccf, 'placeholder'=>'Caja de Compensación Familiar',
                                            'autofocus'=>'autofocus', 'class'=>'form-control'))
                        ?>
                    </div>
                </div>

            </div>

            <div class="row">
                <div class="col-md-12 center">
                    <?php echo form_submit('actualizar', 'Actualizar',"class='btn btn-success'") ?>
                    <a href="<?=site_url('usuario')?>" class="btn btn-default" >Cancelar</a>
                </div>
            </div>
           <?php } ?>
        </form>