<?php
/*
 * *************************************************
 * Copyright (C) 2021 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');
Ci::set_title(lang('change_password'));
Ci::set_map(Ci::$title);
?>
<?= form_open(current_url() . '?redir=' . urlencode(base_url('dashboard').url_query()), ['class' => 'mini-form', 'style' => 'margin:0px auto !important;padding:0px 15px;']) ?>
<div class="modal-body">
    <p style="font-size:18px;max-width:420px;">Dear <strong><?= $user['profile']['name'] ?></strong>,</p>
    <p style="font-size:18px;max-width:420px;">
        Please enter a new password for your account.
    </p>
    <p style="font-size:18px;max-width:420px;">
       This new password will be used the next time you log in to your account.
    </p>
    <!--<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
<!--    <div class="form-group">
        <?=
        form_password('old_password', null, [
            'class' => 'form-control',
            'autocomplete' => 'off',
            'placeholder' => lang('old_password')
        ]);
        ?>
    </div>-->
    <div class="form-group">
        <?=
        form_password('new_password', null, [
            'class' => 'form-control',
            'autocomplete' => 'off',
            'placeholder' => lang('new_password')
        ]);
        ?>
    </div>
    <div class="form-group">
        <?=
        form_password('confirm_password', null, [
            'class' => 'form-control',
            'autocomplete' => 'off',
            'placeholder' => lang('confirm_password')
        ]);
        ?>
    </div>
    <div class="form-group text-right">
        <button type="submit" class="btn btn-submit btn-block"> <?= lang('change_password') ?> </button>
        <!--<a href="<?= base_url('login/register') ?>"  class="btn btn-link btn-block"><?= lang('create_new_accout') ?></a>-->
    </div>
</div>
<?= form_close(); ?>