Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Muhammad Usman
PERFORMA_REPLICA
Commits
bafa58d8
Commit
bafa58d8
authored
Apr 08, 2019
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S28813350 # Client - Incoming Issues (raised by Client) #Location to be mandatory
parent
a1cb6437
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
2 deletions
+20
-2
SendVerificationMailFP.java
cmsWebApp/src/performa/form/SendVerificationMailFP.java
+3
-0
BaseCandidate.java
cmsWebApp/src/performa/orm/BaseCandidate.java
+0
-0
Candidate.xml
cmsWebApp/src/performa/orm/Candidate.xml
+1
-0
verify_identity.jsp
...pp/webroot/extensions/applicantportal/verify_identity.jsp
+7
-2
google_address.js
cmsWebApp/webroot/scripts/google_address.js
+9
-0
No files found.
cmsWebApp/src/performa/form/SendVerificationMailFP.java
View file @
bafa58d8
...
...
@@ -62,6 +62,9 @@ public class SendVerificationMailFP extends SaveFP
BusinessObjectParser
.
assertFieldCondition
(
jobApplication
.
getCV
()
!=
null
,
jobApplication
,
JobApplication
.
FIELD_CV
,
"uploadCV"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
jobApplication
.
getCoverLetter
()
!=
null
,
jobApplication
,
JobApplication
.
FIELD_CoverLetter
,
"uploadCover"
,
exceptions
,
true
,
request
);
}
BusinessObjectParser
.
assertFieldCondition
(
candidate
.
getGoogleAddressText
()
!=
null
,
candidate
,
Candidate
.
FIELD_GoogleAddressText
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
candidate
.
isTrue
(
candidate
.
getHasValidAddress
()),
candidate
,
Candidate
.
FIELD_GoogleAddressText
,
"invalid"
,
exceptions
,
true
,
request
);
}
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
...
...
cmsWebApp/src/performa/orm/BaseCandidate.java
View file @
bafa58d8
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Candidate.xml
View file @
bafa58d8
...
...
@@ -13,6 +13,7 @@
<TRANSIENT
name=
"PrivacyPolicyAgreed"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"ConditionsAgreed"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TRANSIENT
name=
"HasValidAddress"
type=
"Boolean"
defaultValue=
"Boolean.FALSE"
/>
<TABLE
name=
"oneit_sec_user_extension"
tablePrefix=
"object"
polymorphic=
"TRUE"
>
...
...
cmsWebApp/webroot/extensions/applicantportal/verify_identity.jsp
View file @
bafa58d8
...
...
@@ -54,7 +54,9 @@
{
response.sendRedirect(candidate.isFalse(candidate.getIsAccountVerified()) ? successPage : nextPage +"&JobApplicationID="+ jobApplication.getID().toString());
}
candidate.setHasValidAddress(candidate.getGoogleAddressText() != null);
process.setAttribute("JobApplication", jobApplication);
%>
<oneit:script>
...
...
@@ -243,7 +245,10 @@
<hr class="seperate-line">
<div class="form-group text-left">
<label>Location</label>
<oneit:ormInput obj="<%= candidate %>" type="text" attributeName="GoogleAddressText" class="autoAddress" id="<%= "gAddress_"+candidate.getObjectID() %>" placeholder="Enter your address" cssClass="form-control" />
<div class="googleAddress">
<oneit:ormInput obj="<%= candidate %>" class="has-valid-address" attributeName="HasValidAddress" type="checkbox"/>
<oneit:ormInput obj="<%= candidate %>" type="text" attributeName="GoogleAddressText" class="autoAddress" id="<%= "gAddress_"+candidate.getObjectID() %>" placeholder="Enter your address" cssClass="form-control" />
</div>
</div>
<div class="form-group text-left" style="margin-top: 30px;">
<div class="styled_checkboxes">
...
...
cmsWebApp/webroot/scripts/google_address.js
View file @
bafa58d8
...
...
@@ -30,6 +30,12 @@ function addGoogleAddressListener(domSelector)
parentDiv
.
find
(
"."
+
component
).
val
(
''
);
}
}
if
(
$
(
this
).
val
()
&&
trim
(
$
(
this
).
val
()))
{
var
parentDiv
=
$
(
domSelector
).
closest
(
'.googleAddress'
);
parentDiv
.
find
(
".has-valid-address"
).
prop
(
"checked"
,
false
);
}
})
$
(
domSelector
).
keypress
(
function
(
e
)
{
...
...
@@ -43,6 +49,9 @@ function addGoogleAddressListener(domSelector)
place
=
autocomplete
.
getPlace
();
googleAutoComplete
[
domSelector
]
=
place
;
placeChanged
(
domSelector
);
var
parentDiv
=
$
(
domSelector
).
closest
(
'.googleAddress'
);
parentDiv
.
find
(
".has-valid-address"
).
prop
(
"checked"
,
true
);
});
}
...
...
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