<?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('update') . ' - ' . ucwords(strtolower($input['profilename']));

$this->load->add_map($this->lang->line('users'), 'backoffice/users/index');

$this->load->add_map($this->load->title);

$error = validation_errors();

?>

<?php if ($error) : ?>

    <div class="alert alert-danger">

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

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

    </div>

<?php endif; ?>

<?php echo form_open('backoffice/admins/update/' . $id) ?>

<div class="row">

    <div class="col-md-6 ">

        <!-- BEGIN SAMPLE FORM PORTLET-->

        <div class="portlet light bordered">

            <div class="portlet-body form">

                <div class="form-body">

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('username') ?></label>

                        <?php

                        echo form_input(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'username',

                            'value' => $input['username']

                        ));

                        ?>

                    </div>

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('useremail') ?></label>

                        <?php

                        echo form_input(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'useremail',

                            'value' => $input['useremail']

                        ));

                        ?>

                    </div>

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('userpassword') ?></label>

                        <?php

                        echo form_password(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'userpassword',

                            'autocomplete' => 'off',

                            'value' => null

                        ));

                        ?>

                    </div>

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('confirm') ?></label>

                        <?php

                        echo form_password(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'confirm',

                            'autocomplete' => 'off',

                            'value' => null

                        ));

                        ?>

                    </div>

                </div>

                <div class="form-actions">

                    <button type="submit" class="btn green">Submit</button>

                </div>



            </div>

        </div>

        <!-- END SAMPLE FORM PORTLET-->

    </div>

    <div class="col-md-6 ">

        <!-- BEGIN SAMPLE FORM PORTLET-->

        <div class="portlet light bordered">

            <div class="portlet-body form">

                <div class="form-body">

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('profilename') ?></label>

                        <?php

                        echo form_input(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'profilename',

                            'value' => $input['profilename']

                        ));

                        ?>

                    </div>

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('profilemobile') ?></label>

                        <?php

                        echo form_input(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'profilemobile',

                            'value' => $input['profilemobile']

                        ));

                        ?>

                    </div>

                    <div class="form-group">

                        <label class="control-label"><?php echo $this->lang->line('profileaddress') ?></label>

                        <?php

                        echo form_textarea(array(

                            'class' => 'form-control input-circle-right',

                            'name' => 'profileaddress',

                            'value' => $input['profileaddress']

                        ));

                        ?>

                    </div>

                </div>

            </div>

        </div>

        <!-- END SAMPLE FORM PORTLET-->

    </div>

</div>

<?php echo form_close(); ?>