<?php echo form_open(current_url(), 'class="form-horizontal"');?>
   <div class="form-group">
      <label class="col-sm-3 control-label">
         Nama Pengguna
      </label>
      <div class="col-sm-8 col-md-9">
         <input type="text" name="user_username" value="<?php echo set_value('user_username');?>" class="form-control" required="required" maxlength="16"/>
      </div>
   </div>
   <div class="form-group">
      <label class="col-sm-3 control-label">
         Nomor HP
      </label>
      <div class="col-sm-8 col-md-9">
         <div class="input-group">
           <span class="input-group-addon"><input type="checkbox" name="phone_verified" value="1" <?php echo set_checkbox('phone_verified', 1);?>/></span>
           <input type="text"  name="user_phone" value="<?php echo set_value('user_phone');?>" class="form-control" required="required" maxlength="13"/>
         </div>
      </div>
   </div>
   <div class="form-group">
      <label class="col-sm-3 control-label">
         Email
      </label>
      <div class="col-sm-8 col-md-9">
         <div class="input-group">
           <span class="input-group-addon"><input type="checkbox" name="email_verified" value="1" <?php echo set_checkbox('email_verified', 1);?>/></span>
           <input type="email" name="user_email" value="<?php echo set_value('user_email');?>" class="form-control" required="required" maxlength="64"/>
         </div>
      </div>
   </div>
   <div class="form-group">
      <label class="col-sm-3 control-label">
         Kata Sandi
      </label>
      <div class="col-sm-8 col-md-9">
         <input type="text" name="user_password" value="" class="form-control" required="required" maxlength="12"/>
      </div>
   </div>
   <div class="form-group" style="margin-bottom:0">
      <div class="col-sm-offset-3 col-sm-9">
         <button type="submit" class="btn btn-primary">
            <i class="fa fa-check">
            </i>
            Simpan
         </button>
         &nbsp;
         <a href="<?php echo site_url('admin/users');?>" class="btn btn-default" data-dismiss="modal"><i class="fa fa-remove"></i> Batal</a>
      </div>
   </div>
   <input name="tos" type="hidden" value="1"/>
<?php form_close();?>