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
630174f5
Commit
630174f5
authored
Oct 24, 2017
by
chenith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: HT012 - Invite button enabled for valid email addr.
parent
b7132697
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
Company.java
cmsWebApp/src/performa/orm/Company.java
+9
-0
manage_users.jsp
cmsWebApp/webroot/extensions/adminportal/manage_users.jsp
+1
-1
No files found.
cmsWebApp/src/performa/orm/Company.java
View file @
630174f5
...
...
@@ -5,6 +5,7 @@ import oneit.objstore.ObjectStatus;
import
oneit.objstore.ValidationContext
;
import
oneit.security.SecUser
;
import
oneit.utils.CollectionUtils
;
import
oneit.utils.StringUtils
;
import
oneit.utils.parsers.FieldException
;
...
...
@@ -59,4 +60,11 @@ public class Company extends BaseCompany
super
.
validate
(
context
);
}
public
Boolean
isEmailCorrect
()
{
return
StringUtils
.
isEmailAddress
(
getUserEmail
());
}
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/manage_users.jsp
View file @
630174f5
...
...
@@ -208,7 +208,7 @@
<label><oneit:label GUIName="Role" /></label>
<oneit:ormEnum obj="<%= company %>" attributeName="RoleType" cssClass="form-control"/>
</div>
<oneit:recalcClass htmlTag="div" classScript="company.
getUserEmail()== null? 'invite-btn disabled': 'invite-btn en
abled'" company="<%= company %>">
<oneit:recalcClass htmlTag="div" classScript="company.
isEmailCorrect() ? 'invite-btn enabled': 'invite-btn dis
abled'" company="<%= company %>">
<oneit:button value="Invite" name="sendUserInvites" cssClass="btn btn-invite"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", currentPage)
.mapEntry ("restartProcess", Boolean.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