diff --git a/public/frontend/css/style.css b/public/frontend/css/style.css index 7bdafd6..1bc7327 100644 --- a/public/frontend/css/style.css +++ b/public/frontend/css/style.css @@ -1071,7 +1071,9 @@ Responsive Codes line-height: 2.6rem; color: #FFFFFF; } -.form-sec .form-control::placeholder{ +.form-sec .form-control::placeholder, +.enquiry-form-section .form-control::placeholder, +.enquiry-form-section .form-select{ font-weight: 400; font-size: 14px; line-height: 26px; @@ -1697,7 +1699,7 @@ table.lightgrey-weekends tbody td:nth-child(n+6) { transition: background-color 1s ease-out 100ms; } .form-select .select-placeholder{ - color: #7B8792; + color: #4e545a; } .enquiry-form-row h3{ font-weight: 600; diff --git a/public/frontend/icons/career-counselling.png b/public/frontend/icons/career-counselling.png new file mode 100644 index 0000000..b3429fa Binary files /dev/null and b/public/frontend/icons/career-counselling.png differ diff --git a/public/frontend/icons/noto_graduation-cap.png b/public/frontend/icons/noto_graduation-cap.png new file mode 100644 index 0000000..50e8584 Binary files /dev/null and b/public/frontend/icons/noto_graduation-cap.png differ diff --git a/public/frontend/icons/noto_graduation-cap.svg b/public/frontend/icons/noto_graduation-cap.svg new file mode 100644 index 0000000..9cd1f58 --- /dev/null +++ b/public/frontend/icons/noto_graduation-cap.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/resources/views/enquiry-form.blade.php b/resources/views/enquiry-form.blade.php index de560da..d59201e 100644 --- a/resources/views/enquiry-form.blade.php +++ b/resources/views/enquiry-form.blade.php @@ -46,9 +46,9 @@
@@ -106,47 +106,54 @@
- + +
- + +
- + +
- + +
- + +
- + +
+
@@ -220,24 +227,26 @@
- + +
- + +
@@ -258,6 +267,15 @@ addressError = document.getElementById('error-address'); emailError = document.getElementById('error-email'); phoneNumberError = document.getElementById('error-phone'); + qualificationError = document.getElementById('error-qualification'); + streamError = document.getElementById('error-stream'); + gpaError = document.getElementById('error-gpa'); + graduateYearError = document.getElementById('error-graduate_year'); + gapError = document.getElementById('error-gap'); + currentStatusError = document.getElementById('error-currentStatus'); + workExperienceError = document.getElementById('error-workExperience'); + ImmigrationHistoryError = document.getElementById('error-immigration-history'); + StudyFieldError = document.getElementById('error-studyfield'); function maritalStatus(){ var marriedDate = document.getElementById('spouse-married-date'); @@ -291,6 +309,7 @@ salaryMode = document.getElementById('work-salary-mode'); if(workExperience.length == 0){ $('#work-experience').focus(); + workExperienceError.innerHTML = "This field cannot be empty !" return false; }if(workExperience == "yes"){ workDetail.classList.add('married'); @@ -299,6 +318,8 @@ workDetail.classList.remove('married'); salaryMode.classList.remove('married'); } + workExperienceError.innerHTML = ""; + return true; } function validatefName(){ @@ -326,25 +347,25 @@ } function validateDob(){ - var dob = document.getElementById('dob').value; - if(dob == ""){ - $('#dob').focus(); - dobError.innerHTML = "Date of birth is required!"; - return false; - } - dobError.innerHTML = ''; - return true; + var dob = document.getElementById('dob').value; + if(dob == ""){ + $('#dob').focus(); + dobError.innerHTML = "Date of birth is required !"; + return false; + } + dobError.innerHTML = ''; + return true; } function eCob(){ - var cob = document.getElementById('e-cob').value; - if(cob == ""){ - $('#e-cob').focus(); - cobError.innerHTML = "Country of birth is required!"; - return false; - } - cobError.innerHTML = ''; - return true; + var cob = document.getElementById('e-cob').value; + if(cob == ""){ + $('#e-cob').focus(); + cobError.innerHTML = "Country of birth is required !"; + return false; + } + cobError.innerHTML = ''; + return true; } function eGender(){ @@ -361,54 +382,144 @@ GenderError.innerHTML = ''; return true; }else{ - GenderError.innerHTML = "Please select your gender!"; + GenderError.innerHTML = "Please select your gender !"; return false; } } function validateAddress(){ - var address = document.getElementById('address').value; - if(address.length == 0){ - $('#address').focus(); - addressError.innerHTML = "Address field is required!"; - return false; + var address = document.getElementById('address').value; + if(address.length == 0){ + $('#address').focus(); + addressError.innerHTML = "Address field is required !"; + return false; + } + addressError.innerHTML = ''; + return true; + } + + function validateEmail(){ + var email = document.getElementById('email').value; + if(email.length == 0){ + emailError.innerHTML = "Email is required !"; + return false; + } + if(!email.match(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(.\w{2,3})+$/)){ + emailError.innerHTML = "Invalid email address"; + return false; + } + emailError.innerHTML = ''; + return true; + } + + function validatePhone(){ + var phone = document.getElementById('phone').value; + if(phone.length == 0){ + $('#phone').focus(); + phoneNumberError.innerHTML = "Mobile number is required !"; + return false; + } + if(!phone.match(/^\d{10}$/)){ + phoneNumberError.innerHTML = "Invalid mobile number"; + return false; + } + phoneNumberError.innerHTML = ''; + return true; + } + + function validateQualification(){ + var qualification = document.getElementById('highest_qualification').value; + if(qualification.length == 0){ + $('#highest_qualification').focus(); + qualificationError.innerHTML = "Highest Qualification field is required !"; + return false; + } + qualificationError.innerHTML = ''; + return true; } - addressError.innerHTML = ''; - return true; - } - function validateEmail(){ - var email = document.getElementById('email').value; - if(email.length == 0){ - emailError.innerHTML = "Email is required!"; - return false; + function validateStream(){ + var stream = document.getElementById('stream').value; + if(stream.length == 0){ + $('#stream').focus(); + streamError.innerHTML = "Stream field is required !"; + return false; + } + streamError.innerHTML = ''; + return true; } - if(!email.match(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(.\w{2,3})+$/)){ - emailError.innerHTML = "Invalid email address"; - return false; + + function validateGpa(){ + var gpa = document.getElementById('gpa').value; + if(gpa.length == 0){ + $('#gpa').focus(); + gpaError.innerHTML = "GPA or % is required !"; + return false; + } + gpaError.innerHTML = ''; + return true; } - emailError.innerHTML = ''; - return true; - } - function validatePhone(){ - var phone = document.getElementById('phone').value; - if(phone.length == 0){ - $('#phone').focus(); - phoneNumberError.innerHTML = "Mobile number is required!"; - return false; + function validatePassout(){ + var graduateYear = document.getElementById('graduate_year').value; + if(graduateYear.length == 0){ + $('#graduate_year').focus(); + graduateYearError.innerHTML = "Graduate year is required !"; + return false; + } + graduateYearError.innerHTML = ''; + return true; } - if(!phone.match(/^\d{10}$/)){ - phoneNumberError.innerHTML = "Invalid mobile number"; - return false; + + function validateGap(){ + var gap = document.getElementById('gap').value; + if(gap.length == 0){ + $('#gap').focus(); + gapError.innerHTML = "Gap field is required !"; + return false; + } + gapError.innerHTML = ''; + return true; + } + + function validateCurrent(){ + var currentStatus = document.getElementById('current_status').value; + if(currentStatus.length == 0){ + $('#current_status').focus(); + currentStatusError.innerHTML = "Current Status is required !"; + return false; + } + currentStatusError.innerHTML = ''; + return true; + } + + function validateImmigrationHistory(){ + var ImmigrationHistory = document.getElementById('immigration-history').value; + if(ImmigrationHistory.length == 0){ + $('#immigration-history').focus(); + ImmigrationHistoryError.innerHTML = "Immigration History is required !"; + return false; + } + ImmigrationHistoryError.innerHTML = ''; + return true; + } + + function validateStudyField(){ + var StudyField = document.getElementById('desired-study-field').value; + if(StudyField.length == 0){ + $('#desired-study-field').focus(); + StudyFieldError.innerHTML = "Desired Study Field is required !"; + return false; + } + StudyFieldError.innerHTML = ''; + return true; } - phoneNumberError.innerHTML = ''; - return true; - } function submitEnquiry(){ if(!validatefName() || !validatelName() || !validateDob() || !eCob() || !eGender() || - !validateAddress() || !validateEmail() || !validatePhone()){ + !validateAddress() || !validateEmail() || !validatePhone() || !validateQualification() || + !validateStream() || !validateGpa() || !validatePassout() || !validateGap() || !validateCurrent() || + !wExperience() || !validateImmigrationHistory() || !validateStudyField()){ return false; }else{ diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 239e5ba..67873c4 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -96,7 +96,7 @@
- +

Job Ready Program

Get into the job market with a correct set of skills.

@@ -106,7 +106,7 @@
- +

Career Counselling

Get the right guidance to leap through your career.