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
42cdf297
Commit
42cdf297
authored
Nov 02, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
invite button visibility issue
parent
0b56da0c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
5 deletions
+26
-5
SendUserInvitationFP.java
cmsWebApp/src/performa/form/SendUserInvitationFP.java
+1
-0
BaseCompany.java
cmsWebApp/src/performa/orm/BaseCompany.java
+0
-1
Company.java
cmsWebApp/src/performa/orm/Company.java
+1
-1
Company.xml
cmsWebApp/src/performa/orm/Company.xml
+1
-1
manage_users.jsp
cmsWebApp/webroot/extensions/adminportal/manage_users.jsp
+22
-1
workplace_culture.jsp
...bApp/webroot/extensions/adminportal/workplace_culture.jsp
+1
-1
No files found.
cmsWebApp/src/performa/form/SendUserInvitationFP.java
View file @
42cdf297
...
...
@@ -40,6 +40,7 @@ public class SendUserInvitationFP extends SaveFP
else
{
BusinessObjectParser
.
assertFieldCondition
(
company
.
getUserEmail
()!=
null
,
company
,
Company
.
FIELD_UserEmail
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
StringUtils
.
isEmailAddress
(
company
.
getUserEmail
()),
company
,
Company
.
FIELD_UserEmail
,
"invalidEmail"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(!
Utils
.
isCompanyUserEmailFound
(
process
.
getTransaction
(),
company
.
getUserEmail
()),
company
,
Company
.
FIELD_UserEmail
,
"emailExists"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
company
.
getRoleType
()!=
null
,
company
,
Company
.
FIELD_RoleType
,
"mandatory"
,
exceptions
,
true
,
request
);
}
...
...
cmsWebApp/src/performa/orm/BaseCompany.java
View file @
42cdf297
...
...
@@ -240,7 +240,6 @@ public abstract class BaseCompany extends BaseBusinessClass
metaInfo
.
put
(
"name"
,
"UserEmail"
);
metaInfo
.
put
(
"type"
,
"String"
);
metaInfo
.
put
(
"validators"
,
"Email"
);
LogMgr
.
log
(
BUSINESS_OBJECTS
,
LogLevel
.
DEBUG2
,
"Metadata for Company.UserEmail:"
,
metaInfo
);
ATTRIBUTES_METADATA_Company
.
put
(
FIELD_UserEmail
,
Collections
.
unmodifiableMap
(
metaInfo
));
...
...
cmsWebApp/src/performa/orm/Company.java
View file @
42cdf297
...
...
@@ -64,7 +64,7 @@ public class Company extends BaseCompany
public
Boolean
isEmailCorrect
()
{
return
StringUtils
.
isEmailAddress
(
getUserEmail
(
));
return
StringUtils
.
isEmailAddress
(
StringUtils
.
subBlanks
(
getUserEmail
()
));
}
...
...
cmsWebApp/src/performa/orm/Company.xml
View file @
42cdf297
...
...
@@ -11,7 +11,7 @@
<MULTIPLEREFERENCE
name=
"Users"
type=
"CompanyUser"
backreferenceName=
"Company"
/>
<MULTIPLEREFERENCE
name=
"Clients"
type=
"Client"
backreferenceName=
"Company"
/>
<TRANSIENT
name=
"UserEmail"
type=
"String"
validators=
"Email"
/>
<TRANSIENT
name=
"UserEmail"
type=
"String"
/>
<TRANSIENT
name=
"FirstName"
type=
"String"
/>
<TRANSIENT
name=
"LastName"
type=
"String"
/>
<TRANSIENT
name=
"RoleType"
type=
"RoleType"
defaultValue=
"RoleType.STANDARD"
attribHelper=
"EnumeratedAttributeHelper"
/>
...
...
cmsWebApp/webroot/extensions/adminportal/manage_users.jsp
View file @
42cdf297
...
...
@@ -64,7 +64,24 @@
validate();
$('input[name$=UserEmail]').keyup(function() {
addPostRecalcHandler(function ($fieldThatChanged)
{
if (! $fieldThatChanged)
{
return;
}
var name = $fieldThatChanged.attr('name');
if (typeof name !== typeof undefined && name !== false)
{
if ( name.indexOf('UserEmail') >= 0 )
{
validate();
recalcFunction();
}
}
});
$('input[name$=UserEmail]').on("keyup", function() {
recalcFunction();
validate();
});
...
...
@@ -208,6 +225,10 @@
<label><oneit:label GUIName="Role" /></label>
<oneit:ormEnum obj="<%= company %>" attributeName="RoleType" cssClass="form-control"/>
</div>
<div class="correctEmail" >
<oneit:recalc mode="Boolean" script="company.isEmailCorrect()" company="<%= company %>" />
</div>
<oneit:recalcClass htmlTag="div" classScript="company.isEmailCorrect() ? 'invite-btn enabled': 'invite-btn disabled'" company="<%= company %>">
<oneit:button value="Invite" name="sendUserInvites" cssClass="btn btn-invite"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", currentPage)
...
...
cmsWebApp/webroot/extensions/adminportal/workplace_culture.jsp
View file @
42cdf297
...
...
@@ -160,7 +160,7 @@
<div class="rate-background">
<span class="arrow-up-gray"></span>
<span class="rate-label">
<oneit:
ormlabel obj="<%= criteria %>" field="
Importance" />
<oneit:
label GUIName="Rate
Importance" />
</span>
<span class="rate-toggle">
<ul class="nav nav-pills nav-justified">
...
...
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