You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
7.9 KiB
113 lines
7.9 KiB
<div class="sub">
|
|
<div id="inline-btn">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12">
|
|
<div id="user_accounts_list">
|
|
<div class="">
|
|
<table id="user_account_list" class="table-responsive table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th><?=$this->lang->line("employee")?></th>
|
|
<th><?=$this->lang->line("email_address")?></th>
|
|
<th><?=$this->lang->line("username")?></th>
|
|
<th><?=$this->lang->line("role")?></th>
|
|
<th><?=$this->lang->line("status")?></th>
|
|
<th><?=$this->lang->line("actions")?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>#</th>
|
|
<th><?=$this->lang->line("employee")?></th>
|
|
<th><?=$this->lang->line("email_address")?></th>
|
|
<th><?=$this->lang->line("username")?></th>
|
|
<th><?=$this->lang->line("role")?></th>
|
|
<th><?=$this->lang->line("status")?></th>
|
|
<th><?=$this->lang->line("actions")?></th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modals -->
|
|
|
|
<!-- Modal for Add City Location -->
|
|
<div id="usersAccountModal" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
|
|
<div class="modal-dialog">
|
|
<!-- Modal content-->
|
|
<form role="form" data-toggle="validator" novalidate="novalidate" action="javascript:;" id="userAccountForm">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title" id="userAccountModalTitle"></h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group">
|
|
<label for="first_name" class="control-label"><?=$this->lang->line("first_name")?></label>
|
|
<input type="text" class="form-control" id="first_name" name="first_name" placeholder="<?=$this->lang->line("first_name")?>" data-error="Please fill out this field." required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="last_name" class="control-label"><?=$this->lang->line('last_name')?></label>
|
|
<input type="text" class="form-control" id="last_name" name="last_name" placeholder="<?=$this->lang->line('last_name')?>" data-error="Please fill out this field." required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="email_address" class="control-label"><?=$this->lang->line('email_address')?></label>
|
|
<input type="email" class="form-control" id="email_address" name="email_address" placeholder="<?=$this->lang->line('email_address')?>" data-error="Please fill out this field." required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="username" class="control-label"><?=$this->lang->line('username')?></label>
|
|
<input type="text" class="form-control" id="username" name="username" placeholder="<?=$this->lang->line('username')?>" data-error="Please fill out this field." required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="password" class="control-label"><?=$this->lang->line('pwd')?></label>
|
|
<input type="password" class="form-control" id="password" name="password" placeholder="**********" data-error="Please fill out this field." required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="confirm_password" class="control-label"><?=$this->lang->line('confirm_pwd')?></label>
|
|
<input type="password" class="form-control" id="confirm_password" name="confirm_password" placeholder="**********" data-error="Please fill out this field." required>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="user_role" class="control-label"><?=$this->lang->line("user_role")?><span class="font-required"> *</span></label>
|
|
<select class="form-control" id="user_role" name="user_role">
|
|
<?php
|
|
echo "<option disabled value='' selected>- {$this->lang->line("user_role")} -</option>";
|
|
foreach($user_roles as $role) {
|
|
echo "<option value='{$role->role_id}'>{$role->name}</option>";
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default close-button" data-dismiss="modal"><?=$this->lang->line('js')["btn"]["_close"]?></button>
|
|
<button type="button" class="btn btn-primary" id="addNewUserAccountBtn" onclick="users_account._validate('add');"><?=$this->lang->line('add_new_user')?></button>
|
|
<button type="button" class="btn btn-primary" style="display:none;" id="updateUserAccountBtn" onclick="users_account._validate('edit');"><?=$this->lang->line('btn')["save_changes"]?></button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|