bug fix on submit button in add employee

This commit is contained in:
vadivel J 2024-09-19 10:17:09 +05:30
parent 15292d82d7
commit 430b601382
3 changed files with 4 additions and 3 deletions

View File

@ -1472,7 +1472,8 @@
});
if (!isValid) {
console.log('Validation failed. Please fill all required fields.');
alert('Validation failed. Please fill all required fields.');
return; // Stop the submission if validation fails
}

View File

@ -1024,14 +1024,14 @@ if (!empty($EmpDetails)) {
</div>
<div class="col-md-1" style="margin-top: 25px;">
<div class="col-md-1" style="margin-top: 32px;">
<a href="<?php echo base_url() . 'public/uploads/images/emp_files/' . $value['emp_file']; ?>"
download>
<i class="fa fa-download" aria-hidden="true"
style="font-size: 25px;"></i>
</a>
</div>
<div class="col-md-4" align="left" style="margin-top: 23px;">
<div class="col-md-4" align="left" style="margin-top: 32px;">
<button type="button" class="btn btn-danger btn-sm"
id="<?= $value['id']; ?>"
onclick="removeContact(this)">Delete

0
deletableFile.php Normal file → Executable file
View File