<?php
$input_pass = array(
        'name'          => 'password',
        'id'            => 'password',
        'type'			=> 'password',
        'value'			=> '',
        'placeholder'   => 'Contraseña',
        'autofocus'   => 'autofocus',
        'class'         => 'form-control'
);
$input_pass_conf = array(
        'name'          => 'password_conf',
        'id'            => 'password_conf',
        'type'			=> 'password',
        'value'			=> '',
        'placeholder'   => 'Confirmar Contraseña',
        'class'         => 'form-control'
);

?>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <h1><b>Servimos</b> S.A.S</h1>
  </div>
  <div class="card">
    <div class="card-body login-card-body">
    <?php if ($error){ ?>
    <div class="alert alert-error msg-err-login center">
            <a class="close" data-dismiss="alert" href="#">×</a><?php echo $error ?>
          </div>
    <?php
    }
    ?>
    <a class="link-back" href="<?=site_url('login')?>"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i> Login</a>
    <h2 class="text-center">Recuperar contraseña...</h2>
    <h4>
      Completa este formulario con tu nueva contraseña.
    </h4>
    <?php echo form_open('login/reset_pass_update') ?>
    <div class="form-group">
        <?php   echo form_input(array('name'=>'id', 'id'=>'id', 'type'=>'hidden',
                            'value'=>$id, 'class'=>'form-control'))
        ?>
        <?php   echo form_input(array('name'=>'email_code', 'id'=>'email_code', 'type'=>'hidden',
                            'value'=>$email_code, 'class'=>'form-control'))
        ?>

        <?php   echo form_label('Nueva Contraseña', 'password');
                echo form_input($input_pass);
        ?>
        <?php   echo form_label('Confirmar Contraseña', 'password_conf');
                echo form_input($input_pass_conf);
        ?>
    </div>
      <button type="submit" name="actualizar" id="actualizar" class="btn btn-primary btn-action-rclave" data-loading-text="<i class='fa fa-spin fa-spinner'></i> Comprobando datos...">
        <i class="fa fa-check"></i>
        Actualizar
      </button>
    </form>
    </div>
  </div
