<?php

/*

 * Copyright (c) 2018 Earworks.

 * Codeigniter Project Template Modification

 * Please contact our email for more information :

 * contact@earworks.co.id

 */



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

$error = validation_errors();

?>



<!-- BEGIN FORGOT PASSWORD FORM -->

<?php echo form_open('backoffice/user/reset?code='.$code, array('class' => 'login-form')) ?>

<?php echo form_hidden('code', $userid) ?>

<h3 class="font-green"><?php echo $this->lang->line('reset_password') ?></h3>

<p> <?php echo $this->lang->line('reset_description') ?></p>

<?php if ($error) : ?>

    <div class="alert alert-danger">

        <button class="close" data-close="alert"></button>

        <span><?php echo $error ?></span>

    </div>

<?php endif; ?>

<div class="form-group">

    <?php echo form_password(array('class' => 'form-control placeholder-no-fix', 'autocomplete' => 'off', 'placeholder' => $this->lang->line('new_password'), 'name' => 'new_password')); ?>

</div>

<div class="form-group">

    <?php echo form_password(array('class' => 'form-control placeholder-no-fix', 'autocomplete' => 'off', 'placeholder' => $this->lang->line('confirm'), 'name' => 'confirm')); ?>

</div>

<div class="form-actions">

    <a href="<?php echo base_url('backoffice/user/login') ?>" class="btn green btn-outline"><?php echo $this->lang->line('back') ?></a>

    <?php echo form_submit('submit', $this->lang->line('submit'), array('class' => 'btn btn-success uppercase pull-right')) ?>

</div>

<?php echo form_close(); ?>



<!-- END FORGOT PASSWORD FORM -->