FIX_POLICY_ISSUE_MONTH_ISSUE
This commit is contained in:
parent
53326caf38
commit
1cd0e12fdb
@ -241,11 +241,6 @@
|
|||||||
<input id="policy_end_date" type="text" class="form-control" placeholder="DD/MM/YYYY" readonly>
|
<input id="policy_end_date" type="text" class="form-control" placeholder="DD/MM/YYYY" readonly>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="addon_policy">Policy Issue Month<span id="base_danger" class="text-danger">*</span></label>
|
|
||||||
<input type="text" class="form-control" id="month" name="month" placeholder="MM/YYYY" required>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="addon_policy"> Endorsement Type <span id="base_danger" class="text-danger">*</span></label>
|
<label for="addon_policy"> Endorsement Type <span id="base_danger" class="text-danger">*</span></label>
|
||||||
<select class="form-control" id="action_type" name="action_type" required>
|
<select class="form-control" id="action_type" name="action_type" required>
|
||||||
@ -275,6 +270,11 @@
|
|||||||
<input type="text" class="form-control" id="policy_issue_date" name="policy_issue_date" placeholder="DD/MM/YYYY" required>
|
<input type="text" class="form-control" id="policy_issue_date" name="policy_issue_date" placeholder="DD/MM/YYYY" required>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="month">Policy Issue Month<span id="base_danger" class="text-danger">*</span></label>
|
||||||
|
<input type="text" class="form-control readonly-select" id="month" name="month" placeholder="MM/YYYY" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="endorse_eff_date">Endorsement Effective Date<span id="base_danger" class="text-danger"></span></label>
|
<label for="endorse_eff_date">Endorsement Effective Date<span id="base_danger" class="text-danger"></span></label>
|
||||||
<input type="text" class="form-control" id="endorse_eff_date" name="endorse_eff_date" placeholder="DD/MM/YYYY" >
|
<input type="text" class="form-control" id="endorse_eff_date" name="endorse_eff_date" placeholder="DD/MM/YYYY" >
|
||||||
|
|||||||
@ -287,7 +287,6 @@ table.dataTable thead th {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -568,10 +567,24 @@ table.dataTable thead th {
|
|||||||
maxDate: today // Disallow future dates
|
maxDate: today // Disallow future dates
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var month = flatpickr("#month", {
|
||||||
|
dateFormat: "M/Y", // Format as month and year
|
||||||
|
allowInput: false, // Disable manual input
|
||||||
|
});
|
||||||
|
|
||||||
var closure_date = flatpickr("#policy_issue_date", {
|
var policy_issue_date = flatpickr("#policy_issue_date", {
|
||||||
dateFormat: "d/m/Y",
|
dateFormat: "d/m/Y", // Format as day-month-year
|
||||||
allowInput: false
|
allowInput: false, // Disable manual input
|
||||||
|
onChange: function(selectedDates, dateStr, instance) {
|
||||||
|
// Get the selected date
|
||||||
|
var selectedDate = new Date(selectedDates[0]);
|
||||||
|
|
||||||
|
// Format the selected date to "M-Y"
|
||||||
|
var formattedMonth = flatpickr.formatDate(selectedDate, "M/Y");
|
||||||
|
|
||||||
|
// Set the value of the #month input
|
||||||
|
month.setDate(formattedMonth);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var install_due_date = flatpickr("#install_due_date", {
|
var install_due_date = flatpickr("#install_due_date", {
|
||||||
@ -579,26 +592,11 @@ table.dataTable thead th {
|
|||||||
allowInput: false
|
allowInput: false
|
||||||
});
|
});
|
||||||
|
|
||||||
// var start_date = flatpickr("#policy_start_date", {
|
|
||||||
// dateFormat: "d/m/Y",
|
|
||||||
// allowInput: false
|
|
||||||
// });
|
|
||||||
|
|
||||||
// var end_date = flatpickr("#policy_end_date", {
|
|
||||||
// dateFormat: "d/m/Y",
|
|
||||||
// allowInput: false
|
|
||||||
// });
|
|
||||||
|
|
||||||
var endorse_eff_date = flatpickr("#endorse_eff_date", {
|
var endorse_eff_date = flatpickr("#endorse_eff_date", {
|
||||||
dateFormat: "d/m/Y",
|
dateFormat: "d/m/Y",
|
||||||
allowInput: false
|
allowInput: false
|
||||||
});
|
});
|
||||||
|
|
||||||
var month = flatpickr("#month", {
|
|
||||||
dateFormat: "M/Y",
|
|
||||||
allowInput: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function hide_list_show_add() {
|
function hide_list_show_add() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user