<?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');
$this->load->title = $this->lang->line('change_password');
$this->load->add_map($this->load->title);
$error = validation_errors();
?>
<div class="portlet light bordered">
    <div class="portlet-title">
        <?php if ($error) : ?>
            <div class="alert alert-danger">
                <button class="close" data-close="alert"></button>
                <span><?php echo $error ?></span>
            </div>
        <?php endif; ?>
    </div>
    <div class="portlet-body form">
        <?php echo form_open('backoffice/dashboard/password', array('class' => 'form-horizontal')) ?>
        <div class="form-body">
            <div class="form-group">
                <label class="col-md-3 control-label"><?php echo $this->lang->line('old_password_title') ?></label>
                <div class="col-md-9">
                    <?php echo form_password(array('class' => 'form-control input-inline input-medium', 'autocomplete' => 'off', 'name' => 'old_password')); ?>
                    <span class="help-inline"><?php echo $this->lang->line('old_password_tooltip') ?></span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label"><?php echo $this->lang->line('new_password_title') ?></label>
                <div class="col-md-9">
                    <?php echo form_password(array('class' => 'form-control input-inline input-medium', 'autocomplete' => 'off', 'name' => 'new_password')); ?>
                    <span class="help-inline"><?php echo $this->lang->line('new_password_tooltip') ?></span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-3 control-label"><?php echo $this->lang->line('confirm_title') ?></label>
                <div class="col-md-9">
                    <?php echo form_password(array('class' => 'form-control input-inline input-medium', 'autocomplete' => 'off', 'name' => 'confirm')); ?>
                    <span class="help-inline"><?php echo $this->lang->line('confirm_tooltip') ?></span>
                </div>
            </div>
        </div>
        <div class="form-actions">
            <div class="row">
                <div class="col-md-offset-3 col-md-9">
                    <button type="submit" class="btn green">Submit</button>
                </div>
            </div>
        </div>
        <?php echo form_close(); ?>
    </div>
</div>