feat: Add required fields to forms for improved validation in contact and cost calculator pages

This commit is contained in:
2025-08-21 11:57:20 +05:45
parent 4848ef5b41
commit 7d80e01711
3 changed files with 22 additions and 21 deletions

View File

@@ -34,26 +34,26 @@
<form action="{{ route('counselor.store') }}" method="POST" id="counselor-form">
@csrf
<input class="w-full mb-10 rounded-6 py-15 text-14 px-10 border-bottom" type="text"
name="name" id="name" placeholder=" Name">
name="name" id="name" placeholder=" Name" required>
<input class="w-full mb-10 rounded-6 py-15 text-14 px-10 border-bottom" type="text"
name="address" id="address" placeholder=" Address">
name="address" id="address" placeholder=" Address" required>
<div class="flex justify-between items-center ">
<input class="w-60percent mb-10 rounded-6 py-15 text-14 px-10" type="email"
name="email" id="email" placeholder="Your Email">
name="email" id="email" placeholder="Your Email" required>
<input class="w-30percent mb-10 rounded-6 py-15 text-14 px-10" type="number"
inputmode="numeric" name="contact" id="contact" placeholder="Contact">
</div>
<input class="w-full mb-10 rounded-6 py-15 text-14 px-10" type="text"
name="test_score" id="test_score"
placeholder="Language Test Score (ilets overall: 7.0 )">
placeholder="Language Test Score (ilets overall: 7.0 )" required>
<input class="w-full mb-20 rounded-6 py-15 text-14 px-10" type="text"
name="qualification" id="qualification"
placeholder="Recent Education Qualification">
<input class="mb-20" type="checkbox">
<label class="text-14 mb-20" for="">I accept the terms & conditions</label>
name="qualification" id="qualification" placeholder="Recent Education Qualification"
required>
<input class="mb-20" type="checkbox" id="terms">
<label class="text-14 mb-20" for="terms">I accept the terms & conditions</label>
<button type="submit" id="counselor-submit-btn"
class=" w-full py-10 bg-sec text-white rounded-10 text-16 border-0 button-hover">
<i class="fa-solid fa-paper-plane text-white text-16 pr-5"></i>