<?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();

if($this->session->flashdata('error')){

    $error .= '<br>' . $this->session->flashdata('error');

}

?>



<!-- BEGIN FORGOT PASSWORD FORM -->

<?php echo form_open('backoffice/user/forgot', array('class' => 'login-form')) ?>

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

<p> <?php echo $this->lang->line('forgot_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_input(array('class' => 'form-control placeholder-no-fix', 'autocomplete' => 'off', 'placeholder' => $this->lang->line('email'), 'name' => 'email')); ?>

</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 -->