<?php $this->load->view('template/head.php'); ?>
<?php $this->load->view('template/header_admin.php'); ?>
<div class="row">
    <h3 class="text-center">Cambiar mi contraseña</h3>
    <div class="col-lg-4 col-md-4 change-password-container">
        <?php
         $form_data         = array(
           'name'  => 'change_password',
           'id'    => 'change-password',
           'class' => 'create-form-vie'
         );
        ?>
        <?php echo form_open('usuarios/change_password', $form_data); ?>
        <?php
//Definiciones
         $attributes_labels = array(
           'class' => 'control-label',
         );
         $password          = array(
           'name'  => 'TEX_CONTRASENA',
           'id'    => 'TEX_CONTRASENA',
           'class' => 'form-control',
         );
         $new_password      = array(
           'name'  => 'NEW_TEX_CONTRASENA',
           'id'    => 'NEW_TEX_CONTRASENA',
           'class' => 'form-control',
         );
         $re_new_password   = array(
           'name'  => 'RE_NEW_TEX_CONTRASENA',
           'id'    => 'RE_NEW_TEX_CONTRASENA',
           'class' => 'form-control',
         );
        ?> 
        <div class="form-group input-type"> 
            <?php echo form_label('Contraseña Actual', 'password', $attributes_labels); ?>
            <div class="input-group">
                <div class="input-group-addon">
                    <i class="fa fa-key"></i>
                </div>
                <?php echo form_password($password) ?>   
                <span class="fa fa-times fa-2x form-control-feedback error-icon" aria-hidden="true"></span>
            </div>
        </div>
        <div class="form-group input-type"> 
            <?php echo form_label('Nueva Contraseña', 'new_password', $attributes_labels); ?>
            <div class="input-group">
                <div class="input-group-addon">
                    <i class="fa fa-key"></i>
                </div>
                <?php echo form_password($new_password) ?>   
                <span class="fa fa-times fa-2x form-control-feedback error-icon" aria-hidden="true"></span>
            </div>
        </div>
        <div class="form-group input-type"> 
            <?php echo form_label('Confirma Contraseña Actual', 're_new_password', $attributes_labels); ?>
            <div class="input-group">
                <div class="input-group-addon">
                    <i class="fa fa-key"></i>
                </div>
                <?php echo form_password($re_new_password) ?>   
                <span class="fa fa-times fa-2x form-control-feedback error-icon" aria-hidden="true"></span>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="boton-submit">
        <div class="input-group">
            <a href="<?php echo base_url('administrador') ?>" class="btn btn-danger" style="margin-right: 10px;">Regresar</a>
            <?php echo form_submit('submit', 'Cambiar', "class='btn btn-default'"); ?>
        </div>
    </div>
</div>
<?php echo form_close(); ?>

<?php $this->load->view('template/footer') ?>  

