Commit 25b91b81 by Nilu

S12535397 # Client - Incoming Issues (raised by Client) #COnfusing messaging

parent 54034132
...@@ -481,7 +481,7 @@ public class Job extends BaseJob ...@@ -481,7 +481,7 @@ public class Job extends BaseJob
public Boolean isEmailFound() public Boolean isEmailFound()
{ {
if(getEmail()!=null) if(getEmail()!= null)
{ {
SecUser user = SecUser.searchNAME(getTransaction(), getEmail().toLowerCase()); SecUser user = SecUser.searchNAME(getTransaction(), getEmail().toLowerCase());
...@@ -494,6 +494,16 @@ public class Job extends BaseJob ...@@ -494,6 +494,16 @@ public class Job extends BaseJob
return Boolean.FALSE; return Boolean.FALSE;
} }
public Boolean hasHiringTeamAccount()
{
if(getEmail()!= null)
{
return Utils.emailExists(getTransaction(), getEmail());
}
return Boolean.FALSE;
}
public Boolean isClientAvailable() public Boolean isClientAvailable()
{ {
......
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
</div> </div>
</oneit:recalcClass> </oneit:recalcClass>
<oneit:recalcClass htmlTag="div" classScript="job.getEmail()==null || job.isEmailFound() ? 'hide': 'show'" job="<%= job %>"> <oneit:recalcClass htmlTag="div" classScript="job.getEmail() == null || job.isEmailFound() || job.hasHiringTeamAccount() ? 'hide': 'show'" job="<%= job %>">
<div class="form-group"> <div class="form-group">
<p>We don't recognize that email address yet, so we'll send a link so that you can create an account.</p> <p>We don't recognize that email address yet, so we'll send a link so that you can create an account.</p>
</div> </div>
...@@ -191,6 +191,11 @@ ...@@ -191,6 +191,11 @@
.toMap() %>"/> .toMap() %>"/>
</div> </div>
</oneit:recalcClass> </oneit:recalcClass>
<oneit:recalcClass htmlTag="div" classScript="job.hasHiringTeamAccount() ? 'show': 'hide'" job="<%= job %>">
<div class="form-group">
<p style="color:#F9623D">This email address is already in use by a Hiring Team account.</p>
</div>
</oneit:recalcClass>
</oneit:form> </oneit:form>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment