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
Sneha
LaMartin-Webomagic
Commits
21808de3
Commit
21808de3
authored
Jul 06, 2024
by
Deep Dey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: allow duplicate father email for twin child
parent
3a861909
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
lamartinFrontend/index.html
lamartinFrontend/index.html
+8
-2
lamartinFrontend/main.js
lamartinFrontend/main.js
+8
-0
No files found.
lamartinFrontend/index.html
View file @
21808de3
...
...
@@ -185,6 +185,12 @@
<input
type=
"text"
name=
"fatherName"
class=
"la-form-control"
>
<div
class=
"la-invalid-feedback"
></div>
</div>
<div
class=
"la-form-group form-check"
>
<input
id=
"checkFatherEmail"
name=
"checkFatherEmail"
class=
"form-check-input"
type=
"checkbox"
value=
""
>
<label
class=
"form-check-label"
for=
"flexCheckDefault"
>
Please check this, If you have twins and already filled this form before with a email address and use the same email here.
</label>
</div>
<div
class=
"la-form-group"
>
<label
for=
"fatherEmail"
>
Email
<span>
*
</span></label>
<input
type=
"email"
name=
"fatherEmail"
class=
"la-form-control"
>
...
...
@@ -391,9 +397,9 @@
</div>
<!-- end of image section -->
<div
class=
"la-form-group form-check"
>
<input
class=
"form-check-input"
name=
"formSubmitCheck"
type=
"checkbox"
value=
""
id=
"formSubmitCheck"
>
<input
class=
"form-check-input"
name=
"formSubmitCheck"
type=
"checkbox"
id=
"formSubmitCheck"
>
<label
class=
"form-check-label text-justify"
for=
"flexCheckDefault"
>
Before submitting the form, Please
make sure that, the provided information is all correct because once submitted, it can't be changed.
Please check this before submitting the form, and
make sure that, the provided information is all correct because once submitted, it can't be changed.
</label>
</div>
<div
class=
"form-btn"
>
...
...
lamartinFrontend/main.js
View file @
21808de3
...
...
@@ -236,6 +236,14 @@ $(document).ready(function () {
var
formData
=
new
FormData
(
form
);
let
jsonData
=
{};
$
(
'
#checkFatherEmail
'
).
each
(
function
()
{
if
(
!
this
.
checked
)
{
formData
.
set
(
'
checkFatherEmail
'
,
true
);
}
else
{
formData
.
set
(
'
checkFatherEmail
'
,
false
);
}
});
//TODO: validate the form for custom validations
let
reconfiguredFormData
=
reconfigureFormData
(
formData
);
...
...
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