Bug Fixes Edit Leave balance label : ps

This commit is contained in:
VE10-Sanjeev 2024-04-05 12:33:41 +05:30
parent a1606f58b3
commit 3300e42a01

View File

@ -141,9 +141,9 @@
</div>
<label class="control-label col-md-1 col-sm-1 " for="first-name"> Balance</label>
<label class="control-label col-md-1 col-sm-1 balance"> Balance</label>
<div class="col-md-1 col-sm-1 ">
<input type="text" id="leave_bal" name="" value="<?php echo $leave->leave_bal; ?>" style="width:90px;" class="form-control " readonly>
<input type="text" id="leave_bal" name="" value="<?php echo $leave->leave_bal; ?>" style="width:90px;" class="form-control balance" readonly>
</div>
</div>
@ -445,9 +445,8 @@ function calculateDateDifference() {
if( id === 'permission' ){
$('#hidedate').hide()
$('#balance').hide()
$('#leave_bal').hide()
$('#hidedate').hide();
$('.balance').hide();
$('#fromdate').removeAttr('required');
$('#todate').removeAttr('required');
$('#showtime').show();
@ -461,8 +460,8 @@ function calculateDateDifference() {
$('#hidedate').show();
$('#showtime').hide();
$('#showdate').hide();
$('#balance').show()
$('#leave_bal').show()
$('.balance').show();
}
@ -482,8 +481,7 @@ function calculateDateDifference() {
if( selectedOptionId === 'permission'){
$('#hidedate').hide();
$('#balance').hide();
$('#leave_bal').hide();
$('.balance').hide();
$('#fromdate').removeAttr('required');
$('#todate').removeAttr('required');
$('#myDatepicker').prop('required', true);
@ -500,8 +498,7 @@ function calculateDateDifference() {
$('#hidedate').show();
$('#showtime').hide();
$('#showdate').hide();
$('#balance').show();
$('#leave_bal').show();
$('.balance').show();
$('#fromdate').prop('required', true);
$('#todate').prop('required', true);
}