        <?php
            /*action = 'usuario/add', */
            echo form_open('usuario/add',array('class'=>'form-app' , 'id'=>'form-usuario'));
        ?>
            <div class="row">

                <div class="col-md-3">
                    <div class="form-group">
                        <?php   echo form_label('Documento', 'documento');
                                echo form_input(array('name'=>'documento', 'id'=>'documento', 'type'=>'text',
                                            'value'=>set_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'=>set_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'=>set_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'=>set_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, set_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, set_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, set_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'=>set_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'=>set_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'=>set_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'=>set_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('guardar', 'Guardar',"class='btn btn-success'") ?>
                    <?php echo form_reset('cancelar', 'Cancelar',"class='btn btn-default'") ?>
                </div>
            </div>

        </form>