Titans (Core HCP)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 38s Details

This commit is contained in:
zeeshan 2026-09-30 18:24:32 +05:30
parent 5a14d8393f
commit 861c70abf2
1 changed files with 29 additions and 23 deletions

View File

@ -197,8 +197,8 @@
@break
@case('number')
<input type="{{ $question->type }}" min="0.1" max="9999999999"
step="any" id="field-{{ $question->code }}"
<input type="{{ $question->type }}" min="0" max="9999999999"
step="1" id="field-{{ $question->code }}"
name="{{ $question->code }}" class="form-control"
{{ $question->required == 'yes' ? 'required' : '' }}
value="{{ isset($question->value) ? $question->value : 0 }}">
@ -299,8 +299,8 @@
@break
@case('number')
<input type="{{ $question->type }}" min="0.1" max="9999999999"
step="any" id="execution-{{ $question->code }}"
<input type="{{ $question->type }}" min="0" max="9999999999"
step="1" id="execution-{{ $question->code }}"
name="{{ $question->code }}" class="form-control"
{{ $question->required == 'yes' ? 'required' : '' }}
value="{{ isset($question->value) ? $question->value : 0 }}">
@ -444,6 +444,8 @@
$('#execution-core_value').parent().hide();
$('#execution-core_value').prop('required',false);
$('#execution-core_value').prop('min',"0.1");
let selected = JSON.parse($(this).attr('plan_details'));
@ -593,6 +595,8 @@
$('#execution-speciality').prop('readonly', true);
$('#execution-core_value').parent().hide();
$('#execution-core_value').prop('required',false);
$('#execution-core_value').prop('min',"0.1");
@ -619,28 +623,28 @@
}); */
$('#execution-plan_date').on('change', function () {
const monthNames = [
"Oct-26", // Index 0 (10 व्या महिन्यासाठी)
"Nov-26", // Index 1 (11 व्या महिन्यासाठी)
"Dec-26" // Index 2 (12 व्या महिन्यासाठी)
];
const monthNames = [
"Oct-26", // Index 0 (10 व्या महिन्यासाठी)
"Nov-26", // Index 1 (11 व्या महिन्यासाठी)
"Dec-26" // Index 2 (12 व्या महिन्यासाठी)
];
const selectedDateVal = $(this).val(); // e.g. "2026-10-15"
const selectedDateVal = $(this).val(); // e.g. "2026-10-15"
if (selectedDateVal) {
const parts = selectedDateVal.split('-');
const monthNumber = parseInt(parts[1], 10); // 10, 11, किंवा 12
// 10 वजा करून 0, 1, 2 इंडेक्स मिळवणे
const targetMonth = monthNames[monthNumber - 10] || '';
if (selectedDateVal) {
const parts = selectedDateVal.split('-');
const monthNumber = parseInt(parts[1], 10); // 10, 11, किंवा 12
// 10 वजा करून 0, 1, 2 इंडेक्स मिळवणे
const targetMonth = monthNames[monthNumber - 10] || '';
// Dropdown madhe targetMonth select karne
$('#execution-month_of_engagement').val(targetMonth).trigger('change');
} else {
// Jar user ne date clear keli tar dropdown reset karne
$('#execution-month_of_engagement').val('').trigger('change');
}
});
// Dropdown madhe targetMonth select karne
$('#execution-month_of_engagement').val(targetMonth).trigger('change');
} else {
// Jar user ne date clear keli tar dropdown reset karne
$('#execution-month_of_engagement').val('').trigger('change');
}
});
})
@ -678,6 +682,8 @@
$('#field-core_value').parent().hide();
$('#field-core_value').prop('required',false);
$('#field-core_value').prop('min',"0.1");
$('#field-contact_id').change(function() {