finished alignment in view igr -vadivel J
This commit is contained in:
parent
8af23ede12
commit
7b6d45f25c
@ -306,9 +306,7 @@
|
||||
[10, 20, 30, 50, "All"]
|
||||
], // Rows per page options
|
||||
responsive: true, // Responsive table
|
||||
order: [
|
||||
[0, 'desc']
|
||||
],
|
||||
order: false,
|
||||
language: {
|
||||
paginate: {
|
||||
next: '<i class="fas fa-angle-right"></i>', // Next button icon
|
||||
@ -488,4 +486,24 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#fromDate , #toDate').change(function() {
|
||||
|
||||
let fromDate = $('#fromDate').val();
|
||||
let toDate = $('#toDate').val();
|
||||
|
||||
let fromDateObj = new Date(fromDate.split('-').reverse().join('-'));
|
||||
let toDateObj = new Date(toDate.split('-').reverse().join('-'));
|
||||
if (fromDateObj > toDateObj) {
|
||||
alert('Incorrect Date Applied For Filter..!!');
|
||||
$('#toDate').attr('min', fromDate);
|
||||
$('#toDate').val('');
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -455,8 +455,12 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="existingContainer"></div>
|
||||
<div id="filesContainer"></div>
|
||||
<div class="form-row">
|
||||
<div class="col-md-12" id="existingContainer"></div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-md-12" id="filesContainer"></div>
|
||||
</div>
|
||||
</div><br>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@ -703,8 +707,8 @@
|
||||
|
||||
$.each(parsedData['details'], function(i, item) {
|
||||
if (igr == item.IGRNO) {
|
||||
console.log(item);
|
||||
$('#IgrshowTitle').text(" ( " + item.IGRNO + " ) ");
|
||||
console.log(item);
|
||||
$('#IgrshowTitle').text(" ( " + item.IGRNO + " ) ");
|
||||
$("#IGRNO1").val(item.IGRNO);
|
||||
$("#PONO1").val(item.PONO);
|
||||
$("#txtIGRLineItem").val(item.IGRItemNo);
|
||||
@ -1542,25 +1546,25 @@
|
||||
var billNo = data != null && data != '' ? data.BillNo : '';
|
||||
var downloadUrl = `${base_url}public/uploads/Igrfiles/${filePath}`;
|
||||
|
||||
var newRowHtml = `<div class="col-md-12 pad ">
|
||||
<div class="col-md-4">
|
||||
<span>File Name</span>
|
||||
<input type="text" maxlength="255" class="form-control"
|
||||
value="${fileName}" readonly>
|
||||
</div>
|
||||
<div class="col-md-1" style="margin-top: 25px;">
|
||||
|
||||
<a href="${downloadUrl}" download>
|
||||
|
||||
<i class="fa fa-download" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-5" style="margin-top: 23px;">
|
||||
<button type="button" class="btn btn-danger btn-sm"
|
||||
value="${billNo}" onclick="removeContact(this)">Delete</button>
|
||||
</div>
|
||||
</div>`;
|
||||
var newRowHtml = `<div class="form-row mt-2 ">
|
||||
<div class="col-md-4">
|
||||
<span>File Name</span>
|
||||
<input type="text" maxlength="255" class="form-control"
|
||||
value="${fileName}" readonly>
|
||||
</div>
|
||||
<div class="col-md-1" style="margin-top: 25px;">
|
||||
|
||||
<a href="${downloadUrl}" download>
|
||||
|
||||
<i class="fa fa-download" aria-hidden="true"
|
||||
style="font-size: 25px;"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-md-5" style="margin-top: 23px;">
|
||||
<button type="button" class="btn btn-danger btn-sm"
|
||||
value="${billNo}" onclick="removeContact(this)">Delete</button>
|
||||
</div>
|
||||
</div>`;
|
||||
|
||||
$('#existingContainer').append(newRowHtml);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user