CHANGE : file download : GWM
This commit is contained in:
parent
957d5685ac
commit
99987910e9
@ -570,7 +570,7 @@ $routes->group("employeeRest", ["filter" => "authJWT"], function ($routes) {
|
||||
$routes->post("updateHrFileUploadData", "EmployeeRestController::updateHrFileUploadData");
|
||||
|
||||
});
|
||||
$routes->get("hrFileUploadMasters", "EmployeeRestController::hrFileUploadMasters");
|
||||
$routes->get("hrFileDownload", "EmployeeRestController::hrFileDownload");
|
||||
$routes->post("hrFileList", "EmployeeRestController::hrFileList");
|
||||
$routes->get("getEmployeeActiveOrInactivePolicy", "EmployeeRestController::getEmployeeActiveOrInactivePolicy");
|
||||
$routes->get("sendPushNotification", "EmployeeRestController::sendPushNotification");
|
||||
|
||||
@ -4003,7 +4003,7 @@ class EmployeeRestController extends AdminController
|
||||
{
|
||||
try {
|
||||
//for inception upload
|
||||
$data['actions'] = ['inception' => 'Inception (Employee + Dependents)', 'missed_inception' => 'Missed Inception (Employee + Dependents)', 'addition' => 'Addition (Employee + Dependents)', 'dependent_addition' => 'Dependent Addition (Only Dependents)', 'deletion' => 'Deletion', 'correction' => 'Correction', 'si_enhancement' => 'SI Enhancement'];
|
||||
$data['actions'] = ['addition' => 'Addition (Employee + Dependents)', 'missed_inception' => 'Missed Inception (Employee + Dependents)', 'dependent_addition' => 'Dependent Addition (Only Dependents)', 'deletion' => 'Deletion', 'correction' => 'Correction', 'si_enhancement' => 'SI Enhancement'];
|
||||
|
||||
return $this->respond([
|
||||
'status' => true,
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label>Policy</label> <br />
|
||||
<select name="client_policy_id" class="form-control" id="policy2" >
|
||||
<select name="policy_id" class="form-control" id="policy2" >
|
||||
<option value="">Select</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -193,7 +193,7 @@
|
||||
e.preventDefault(); // stop normal form submit
|
||||
|
||||
let formData = $(this).serialize(); // serialize form with csrf
|
||||
|
||||
var baseurl = `<?= base_url() ?>`;
|
||||
$.ajax({
|
||||
url: "<?= base_url('hrFileList') ?>",
|
||||
type: "POST",
|
||||
@ -221,6 +221,16 @@
|
||||
<td>${file.created_at} by <strong>${file.first_name ?? ""}</strong></td>
|
||||
<td>${file.status}</td>
|
||||
<td>
|
||||
|
||||
|
||||
<div class="btn-group dropdown">
|
||||
<a href="javascript: void(0);" class="dropdown-toggle arrow-none btn btn-light btn-sm"
|
||||
data-toggle="dropdown" aria-expanded="false"><i class="mdi mdi-dots-horizontal"></i></a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a href="${baseurl}/hrFileDownload?id=${file.id}" class="dropdown-item" style="color: #000;" aria-hidden="true" target="_blank" ><i class="mdi mdi-download mr-2 text-muted font-18 vertical-middle"></i>Download</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@ -242,14 +252,6 @@
|
||||
});
|
||||
});
|
||||
|
||||
// <div class="btn-group dropdown">
|
||||
// <a href="javascript: void(0);" class="dropdown-toggle arrow-none btn btn-light btn-sm"
|
||||
// data-toggle="dropdown" aria-expanded="false"><i class="mdi mdi-dots-horizontal"></i></a>
|
||||
|
||||
// <div class="dropdown-menu dropdown-menu-right">
|
||||
// <a href="${baseUrl}/hrFileUploadMasters?id=${file.id}" class="dropdown-item" style="color: #000;" aria-hidden="true" target="_blank" ><i class="mdi mdi-download mr-2 text-muted font-18 vertical-middle"></i>Download</a>
|
||||
// </div>
|
||||
// </div>
|
||||
|
||||
//featch client and branch and policy
|
||||
function getClientAndBranchAndPolicy()
|
||||
@ -342,7 +344,7 @@
|
||||
|
||||
$.each(data, function(index, item) {
|
||||
var option = $('<option>', {
|
||||
value: item.policy_no,
|
||||
value: item.policy_id,
|
||||
text: item.policy_type + '-' + item.policy_no,
|
||||
});
|
||||
$('#policy2').append(option);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user