FIX_user module nhance partner manager data only (filter)
This commit is contained in:
parent
454428733f
commit
206d6d28d3
@ -585,11 +585,11 @@ class UserController extends AdminController
|
||||
try{
|
||||
// Listing
|
||||
if ($method === 'get') {
|
||||
$types = $this->partnerStaffModel->findAll();
|
||||
if (empty($types)) {
|
||||
return $this->response->setJSON(['status' => 'error','message' => 'No Staff found'])->setStatusCode(404);
|
||||
$manager = $this->partnerStaffModel->where('role_id',1)->findAll();
|
||||
if (empty($manager)) {
|
||||
return $this->response->setJSON(['status' => 'error','message' => 'No Manager found'])->setStatusCode(404);
|
||||
}
|
||||
return $this->response->setJSON(['status' => 'success','data' => $types])->setStatusCode(200);
|
||||
return $this->response->setJSON(['status' => 'success','data' => $manager])->setStatusCode(200);
|
||||
}
|
||||
|
||||
// add/update
|
||||
|
||||
@ -489,9 +489,9 @@ table.dataTable tbody td {
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="nhance_branch_id">NHance Branch<span class="text-danger">*</span></label>
|
||||
<label for="nhance_branch_id">Nhance Branch<span class="text-danger">*</span></label>
|
||||
<select class="form-control" id="nhance_branch_id" name="nhance_branch_id" required>
|
||||
<option value="">Select NHance Branch</option>
|
||||
<option value="">Select Nhance Branch</option>
|
||||
<?php foreach($NHanceBranchData as $value) { ?>
|
||||
<option value="<?= $value['id'] ?>"><?= $value['branch_name'] ?></option>
|
||||
<?php } ?>
|
||||
@ -594,7 +594,7 @@ table.dataTable tbody td {
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Add Nhance Partner </h4>
|
||||
<h4 class="modal-title">Add Nhance Partner Manager </h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
</div>
|
||||
|
||||
@ -632,9 +632,9 @@ table.dataTable tbody td {
|
||||
<div class="form-row">
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
<label for="partner_nhance_branch_id">NHance Branch<span class="text-danger">*</span></label>
|
||||
<label for="partner_nhance_branch_id">Nhance Branch<span class="text-danger">*</span></label>
|
||||
<select class="form-control" id="partner_nhance_branch_id" name="nhance_branch_id" required>
|
||||
<option value="">Select NHance Branch</option>
|
||||
<option value="">Select Nhance Branch</option>
|
||||
<?php foreach($NHanceBranchData as $value) { ?>
|
||||
<option value="<?= $value['id'] ?>"><?= $value['branch_name'] ?></option>
|
||||
<?php } ?>
|
||||
@ -1182,7 +1182,7 @@ table.dataTable tbody td {
|
||||
.trigger('change.select2'); // ✅ correct trigger
|
||||
}
|
||||
// $('#btnPartnerSubmit').html('Update');
|
||||
$('.modal-title').html('Update Nhance Partner');
|
||||
$('.modal-title').html('Update Nhance Partner Manager');
|
||||
let myModal = new bootstrap.Modal(document.getElementById('nhance-partner-modal'));
|
||||
myModal.show(); // open modal
|
||||
});
|
||||
@ -1891,7 +1891,7 @@ table.dataTable tbody td {
|
||||
// $('#locn').val('');
|
||||
$('#retention_rate').val('');
|
||||
$('#partner_nhance_branch_id').val('0');
|
||||
$('.modal-title').html('Add Nhance Partner');
|
||||
$('.modal-title').html('Add Nhance Partner Manager');
|
||||
$('#PartnerForm').attr('action', '<?php echo base_url('/user/partner');?>');
|
||||
let myModal = new bootstrap.Modal(document.getElementById('nhance-partner-modal'));
|
||||
myModal.show(); // open modal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user