<div class="row">
    <div class="col-xs-12 col-md-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title"><?php echo lang('create_user_heading');?></h3>
                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
                    <i class="fa fa-minus"></i></button>
                    <button type="button" class="btn btn-box-tool" onclick="location.reload()" title="Collapse">
                    <i class="fa fa-refresh"></i></button>
                </div>
            </div>

            <!-- /.box-header -->
            <div class="box-body">
            <p><?php echo lang('create_user_subheading');?></p>
              <?php if($message != "") { ?>
              <div id="infoMessage" class="callout callout-danger"><?php echo $message;?></div>
              <?php } ?>
            <?php echo form_open("auth/create_user");?>
              <p>
                <?php echo lang('create_user_fname_label', 'full_name');?> <span style="color:red;">*</span><br />
                <?php echo form_input($full_name);?>
              </p>
              <p>
                <?php echo lang('create_user_company_label', 'company');?> <br />
                <?php echo form_input($company);?>
              </p> 
              <p>
                <?php echo lang('create_user_phone_label', 'phone');?> <span style="color:red;">*</span><br />
                <?php echo form_input($phone);?>
              </p>    
              <p>
                <?php echo lang('create_user_email_label', 'email');?> <span style="color:red;">*</span><br />
                <?php echo form_input($email);?>
              </p>  
            <?php if ($this->config->item('identity', 'ion_auth') !== 'email') { ?>                                              
              <p>
                <?php echo lang('create_user_username_label', 'username');?> <span style="color:red;">*</span><br />
                <?php echo form_input($identity);?>
              </p>
            <?php } else { ?>
              <p>
                <?php echo lang('create_user_username_label', 'username');?> <span style="color:red;">*</span><span class="label bg-green">Username diisi dengan email</span><br />
                <?php echo form_input($username);?>
              </p>
            <?php } ?>                                                                
              <p>
                <?php echo lang('create_user_password_label', 'password');?> <span style="color:red;">*</span><br />
                <?php echo form_input($password);?>
              </p>
              <p>
                <?php echo lang('create_user_password_confirm_label', 'password_confirm');?> <span style="color:red;">*</span><br />
                <?php echo form_input($password_confirm);?>
              </p>
              <p><?php echo form_submit('submit', lang('create_user_submit_btn'), 'class="'.$this->config->item('botton').'"');?>
              <a href="<?php echo site_url('users') ?>" class="btn btn-default btn-flat">Batal</a>
              </p>
            <?php echo form_close();?>
            
            </div>
        </div>
    </div>
</div>