bugs solving
This commit is contained in:
@@ -195,17 +195,9 @@
|
||||
}
|
||||
})
|
||||
|
||||
$(document).ready(function(){
|
||||
// Get today's date
|
||||
var today = new Date();
|
||||
var dd = String(today.getDate()).padStart(2, '0');
|
||||
var mm = String(today.getMonth() + 1).padStart(2, '0'); // January is 0!
|
||||
var yyyy = today.getFullYear();
|
||||
|
||||
today = yyyy + '-' + mm + '-' + dd;
|
||||
// alert(today1);
|
||||
// $("#latest_valuation_date").attr('maxDate',today1);
|
||||
document.getElementById("latest_valuation_date").setAttribute("max", today);
|
||||
$(function() {
|
||||
let today = new Date().toISOString().split('T')[0];
|
||||
$('#latest_valuation_date').attr('max', today);
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label>Annual Rental Yield Earned</label>
|
||||
<input type="number" name="annual_rental_yield_earned"
|
||||
<input type="text" name="annual_rental_yield_earned"
|
||||
value="{{ $freProduct->annual_rental_yield_earned }}">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
@@ -89,7 +89,7 @@
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label>Date Of Investment</label>
|
||||
<input type="date" name="date_of_investment" value="{{ $freProduct->date_of_investment }}">
|
||||
<input type="date" name="date_of_investment" id="date_of_investment" value="{{ $freProduct->date_of_investment }}">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label>Original Amount Invested</label>
|
||||
@@ -106,7 +106,7 @@
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label>Latest Valuation Date</label>
|
||||
<input type="date" name="latest_valuation_date">
|
||||
<input type="date" id="latest_valuation_date" name="latest_valuation_date">
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<h4>Declaration</h4>
|
||||
@@ -229,5 +229,15 @@
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
$(function() {
|
||||
let today = new Date().toISOString().split('T')[0];
|
||||
$('#date_of_investment').attr('max', today);
|
||||
});
|
||||
|
||||
$(function() {
|
||||
let today = new Date().toISOString().split('T')[0];
|
||||
$('#latest_valuation_date').attr('max', today);
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user