From 861c70abf256c551fcca1b5a5103f483ecd607ce Mon Sep 17 00:00:00 2001 From: zeeshan Date: Wed, 30 Sep 2026 18:24:32 +0530 Subject: [PATCH] Titans (Core HCP) --- ...5bd1-442d-4226-bacf-5f12e647373d.blade.php | 52 +++++++++++-------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php index 429bb05a..ff2498a0 100644 --- a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php +++ b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php @@ -197,8 +197,8 @@ @break @case('number') - required == 'yes' ? 'required' : '' }} value="{{ isset($question->value) ? $question->value : 0 }}"> @@ -299,8 +299,8 @@ @break @case('number') - 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() {