Team4 (Mother Forum Final Change)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m42s Details

This commit is contained in:
zeeshan 2026-08-10 11:17:24 +05:30
parent 284c2034f7
commit 46d2d566b8
1 changed files with 126 additions and 113 deletions

View File

@ -73,7 +73,7 @@
} }
@endphp @endphp
@if(count($submissions) < 1) @if(count($submissions) < 2)
<form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data"> <form method="POST" action="/form/submit" id="report-form" enctype="multipart/form-data">
<input type="hidden" name="form_id" value="{{$form_id}}"> <input type="hidden" name="form_id" value="{{$form_id}}">
@ -310,7 +310,7 @@
speciality="{{ $option->contact->speciality ?? '' }}"> speciality="{{ $option->contact->speciality ?? '' }}">
{{$option->display}} {{$option->display}}
</option> </option>
@endforeach @endforeach
</select> </select>
@break @break
@endswitch @endswitch
@ -326,7 +326,7 @@
<button class="btn btn-primary" type="submit" id="submit-btn"> Submit </button> <button class="btn btn-primary" type="submit" id="submit-btn"> Submit </button>
</div> </div>
{{-- @endif --}} {{-- @endif --}}
</form> </form>
@else @else
<div class="alert alert-warning text-center mt-3"> <div class="alert alert-warning text-center mt-3">
@ -431,6 +431,10 @@
} }
}) })
$('#field-month').val('August');
$('#field-month').css({'pointer-events': 'none','background-color': '#e9ecef'}).attr('tabindex', '-1');
// $('#field-contact_id').append('<option value="others">Others</option>'); // $('#field-contact_id').append('<option value="others">Others</option>');
@ -539,7 +543,7 @@
var plandateField = document.getElementById('field-record_date'); var plandateField = document.getElementById('field-record_date');
plandateField.setAttribute('max', today); //plandateField.setAttribute('max', today);
}); });
</script> </script>
@if(!$id) @if(!$id)
@ -629,6 +633,11 @@ for (let i = 2; i <= 3; i++) { // numbering starts at 2
// 👉 Append clone // 👉 Append clone
$clone.insertAfter($('.doctor-wrapper').last()); $clone.insertAfter($('.doctor-wrapper').last());
$('#field-month_2').val('August');
$('#field-month_3').val('August');
$('#field-month_2, #field-month_3').css({'pointer-events': 'none','background-color': '#e9ecef'}).attr('tabindex', '-1');
} }
// 👉 Remove add button completely // 👉 Remove add button completely
@ -885,6 +894,10 @@ $(document).on('change', '[id^=field-contact_id]', function () {
$wrapper.find('[id^=field-legacy_code]').val(''); $wrapper.find('[id^=field-legacy_code]').val('');
} }
}); });
</script> </script>
@endif @endif
</body> </body>