Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LaMartin-Webomagic
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Deep Dey
LaMartin-Webomagic
Commits
50b8b16b
Commit
50b8b16b
authored
Jan 27, 2025
by
Sneha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add validation & classDropdown in admin_portal form
parent
c4bd9e55
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
28 deletions
+92
-28
lamartinDashboard/admission_portal.html
lamartinDashboard/admission_portal.html
+50
-28
lamartinDashboard/js/admission_portal.js
lamartinDashboard/js/admission_portal.js
+42
-0
No files found.
lamartinDashboard/admission_portal.html
View file @
50b8b16b
This diff is collapsed.
Click to expand it.
lamartinDashboard/js/admission_portal.js
View file @
50b8b16b
...
...
@@ -150,9 +150,51 @@ $(document).ready(function () {
$
(
'
#application-form
'
).
validate
({
rules
:
{
school
:
'
required
'
,
//
category
:
'
required
'
,
//
fullName
:
'
required
'
,
//
admissionClass
:
'
required
'
,
//
dateOfBirth
:
'
required
'
,
//
homeAddress
:
'
required
'
,
//
correspondenceAddress
:
'
required
'
,
//
fatherName
:
'
required
'
,
//
fatherEmail
:
'
required
'
,
//
fatherMobile
:
{
required
:
true
,
regex
:
/^
[
0-9
]{10}
$/
,
},
//
candidateImage
:
{
extension
:
[
'
jpg
'
,
'
png
'
,
'
jpeg
'
,
'
svg
'
],
fileSize
:
1
*
1024
*
1024
,
},
fatherImage
:
{
extension
:
[
'
jpg
'
,
'
png
'
,
'
jpeg
'
,
'
svg
'
],
fileSize
:
1
*
1024
*
1024
,
},
formSubmitCheck
:
'
required
'
,
},
messages
:
{
school
:
'
Please select your school
'
,
category
:
'
Please specify the category
'
,
fullName
:
'
Please enter your full name
'
,
admissionClass
:
'
Please specify the class
'
,
dateOfBirth
:
'
Please enter the date of birth
'
,
homeAddress
:
'
Please enter the home address
'
,
correspondenceAddress
:
'
Please enter the correspondence address
'
,
fatherName
:
"
Please enter father's name
"
,
fatherEmail
:
"
Please enter father's email
"
,
fatherMobile
:
{
required
:
"
Please enter father's phone number
"
,
regex
:
'
Please enter a valid phone number
'
,
},
candidateImage
:
{
extension
:
'
Only jpg, jpeg, png, svg files are allowed.
'
,
fileSize
:
'
Please upload a file smaller than 1 MB
'
,
},
fatherImage
:
{
extension
:
'
Only jpg, jpeg, png, svg files are allowed.
'
,
fileSize
:
'
Please upload a file smaller than 1 MB
'
,
},
formSubmitCheck
:
'
Please check this box to submit the form
'
,
},
errorPlacement
:
function
(
error
,
element
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment