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

<?= form_open(current_url() . '?redir=' . $redir, ['class' => 'form-horizontal']) ?>
<div class="row">
    <div class="col-sm-6">
        <div class="form-group">
            <?= lang('name', [], 'name', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_input('name', $data['name'], ['class' => 'form-control']) ?>
            </div>
        </div>
        <div class="form-group">
            <?= lang('email', [], 'email', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_input('email', $data['email'], ['class' => 'form-control']) ?>
            </div>
        </div>
        <div class="form-group">
            <?= lang('phone', [], 'phone', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <div class="input-group">
                    <div class="input-group-addon">+62</div>
                     <?= form_input('phone', $data['phone'], ['class' => 'form-control']) ?>
                </div>
            </div>
        </div>
        <div class="form-group">
            <?= lang('address', [], 'address', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_textarea('address', $data['address'], ['class' => 'form-control']) ?>
            </div>
        </div>
        <div class="form-group">
            <?= lang('city', [], 'city', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_input('city', $data['city'], ['class' => 'form-control']) ?>
            </div>
        </div>
         <div class="form-group">
            <?= lang('username', [], 'username', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_input('username', $data['username'], ['class' => 'form-control']) ?>
            </div>
        </div>
         <div class="form-group">
            <?= lang('password_default', [], 'password_default', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_input('password_default', $data['password_default'], ['class' => 'form-control']) ?>
            </div>
        </div>
        <div class="form-group">
            <?= lang('status', [], 'status', ['class' => 'col-sm-3 control-label']) ?>
            <div class="col-sm-9">
                <?= form_dropdown('status', User_model::status_label(), $data['status'], ['class' => 'form-control']) ?>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-9 col-sm-offset-3">
                <?= form_submit('submit', 'Submit', ['class' => 'btn blue']) ?>
            </div>
        </div>
    </div>
</div>
<?= form_close() ?>