<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>
            <div class="content-wrapper">
                <section class="content-header">
                    <?php echo $pagetitle; ?>
                    <?php echo $breadcrumb; ?>
                </section>

                <section class="content">
                    <div class="row">
                        <div class="col-md-12">
                             <div class="box">
                                <div class="box-header with-border">
                                    <h3 class="box-title"><?php echo lang('users_edit_user'); ?></h3>
                                </div>
                                <div class="box-body">
                                    <?php echo $message;?>

                                    <?php echo form_open(uri_string(), array('class' => 'form-horizontal', 'id' => 'form-edit_vistas')); ?>
                                        <div class="form-group">
                                            <?php echo lang('vistas_nombre_vista', 'nombre_vista', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php echo form_input($nombre_vista);?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('vistas_url', 'url', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php echo form_input($url);?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('vistas_c_tipo', 'tipo', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <select id="concepto_tipo" name="concepto_tipo" class="selectpicker form-control">
                                                    <?php
                                                    foreach ($ddl_tipovista as $row) {
                                                         if ($tipo['value'] == $row->concepto) {
                                                             echo '<option value="'.$row->concepto.'" selected>'.$row->concepto. ' - ' .$row->nombre.'</option>';
                                                        }else{
                                                             echo '<option value="'.$row->concepto.'">'.$row->concepto. ' - ' .$row->nombre.'</option>';    
                                                        }                                                        
                                                    }
                                                ?>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('vistas_c_modulo', 'modulo', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                 <select id="concepto_modulo" name="concepto_modulo" class="selectpicker form-control">
                                                    <?php
                                                    foreach ($ddl_modulos as $row) {
                                                         if ($modulo['value'] == $row->concepto) {
                                                             echo '<option value="'.$row->concepto.'" selected>'.$row->concepto. ' - ' .$row->nombre.'</option>';
                                                        }else{
                                                             echo '<option value="'.$row->concepto.'">'.$row->concepto. ' - ' .$row->nombre.'</option>';    
                                                        }                                                        
                                                    }
                                                ?>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <?php echo form_hidden('id', $vistas->id);?>
                                               
                                                <div class="btn-group">
                                                    <?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => lang('actions_submit'))); ?>
                                                    <?php echo form_button(array('type' => 'reset', 'class' => 'btn btn-warning btn-flat', 'content' => lang('actions_reset'))); ?>
                                                    <?php echo anchor('vistas/vistas', lang('actions_cancel'), array('class' => 'btn btn-default btn-flat')); ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php echo form_close();?>
                                </div>
                            </div>
                         </div>
                    </div>
                </section>
            </div>