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
1e28b427
Commit
1e28b427
authored
Sep 14, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Application specific error page
parent
38d44cc4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
391 additions
and
54 deletions
+391
-54
small_content_post.jspf
...webroot/editor/skin/oneit/include/small_content_post.jspf
+23
-0
small_content_pre.jspf
.../webroot/editor/skin/oneit/include/small_content_pre.jspf
+8
-0
small_head_pre.jspf
...App/webroot/editor/skin/oneit/include/small_head_pre.jspf
+30
-0
forgot_password.jsp
cmsWebApp/webroot/extensions/adminportal/forgot_password.jsp
+66
-0
htmlfooter_nopriv.jsp
.../webroot/extensions/adminportal/inc/htmlfooter_nopriv.jsp
+14
-0
htmlheader_nopriv.jsp
.../webroot/extensions/adminportal/inc/htmlheader_nopriv.jsp
+17
-0
reset_password.jsp
cmsWebApp/webroot/extensions/adminportal/reset_password.jsp
+118
-0
sign_in.jsp
cmsWebApp/webroot/extensions/adminportal/sign_in.jsp
+51
-52
20170831_Update_HomeArticle.cms.xml
.../adminportal/upgrades/20170831_Update_HomeArticle.cms.xml
+64
-0
GeneralConfig_performa.xml
...pp/webroot/extensions/performa/GeneralConfig_performa.xml
+0
-2
No files found.
cmsWebApp/webroot/editor/skin/oneit/include/small_content_post.jspf
0 → 100644
View file @
1e28b427
<div class="small_footer">
<div style="float: left" class="cms_footer_annotation">
<%
String footerAnnotation = (String)request.getAttribute("cms.small_footer.annotation");
%>
<%= footerAnnotation == null ? "" : footerAnnotation %>
</div>
<div class="clear"> </div>
</div>
</div>
</div>
<footer class="power-footer">
<div class="footer-link text-center">
<ul>
<li><a href="#">© <%= Calendar.getInstance().get(Calendar.YEAR) %> Talentology</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
</div>
</footer>
</div>
</div>
</div>
cmsWebApp/webroot/editor/skin/oneit/include/small_content_pre.jspf
0 → 100644
View file @
1e28b427
<div class="container">
<div class="row">
<div class="main-verify-identity">
<div class="login-logo"><img src="<%= request.getContextPath() %>/images/logo.svg" /></div>
<div class="main-box-layout login-box">
<div class="small_error_box ">
\ No newline at end of file
cmsWebApp/webroot/editor/skin/oneit/include/small_head_pre.jspf
0 → 100644
View file @
1e28b427
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
></meta>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
></meta>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
></meta>
<
%@
taglib
uri=
"/WEB-INF/oneit_tags.tld"
prefix=
"oneit"
%
>
<
%@
include
file=
"/inc/std_imports.jsp"
%
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"body"
).
addClass
(
"bg-color"
);
});
</script>
<style>
.small_error_box
{
background-color
:
inherit
!important
;
padding
:
0
!important
;
}
.small_error_box
.login_desc
{
color
:
#f05128
;
font-size
:
13px
;
font-weight
:
300
;
line-height
:
16px
;
text-align
:
center
;
}
</style>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/forgot_password.jsp
0 → 100644
View file @
1e28b427
<%@ page extends="oneit.servlets.jsp.FormJSP" %>
<%@ include file="/setuprequest.jsp" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%! protected String getName (ServletConfig config) { return "forgot_password_jsp"; } %>
<%@ include file="inc/htmlheader_nopriv.jsp" %>
<script type="text/javascript">
$(document).ready(function() {
validate();
$('input').on('change keyup', function() { validate() });
});
function validate() {
var empty = false;
$('input[required]').each(function() {
if ( $.trim($( this ).val()) == '') {
empty = true;
if ($( this ).css('background-color') == 'rgb(250, 255, 189)') {
empty = false;
}
}
});
if (empty) {
$('.send-btn').attr('disabled', 'disabled');
} else {
$('.send-btn').removeAttr('disabled');
}
}
</script>
<style>
button[disabled] {
opacity: 0.6;
background-color: #0582ba;
}
</style>
<oneit:form name="forgotPassword" method="post">
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div class="main-box-layout login-box">
<div class="text-left">
<p >
Enter your email address below. If we find a matching account, then you'll receive an email with a password reset link.
</p>
</div>
<div> </div>
<div class="form-group text-left">
<label>Email Address</label>
<input type="email" class="form-control" name="email" required>
</div>
<div class="form-group">
<oneit:button value="Send" name="forgotPassword" cssClass="box-btn send-btn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", "sign_in.jsp?sent=true")
.mapEntry(NotificationUtils.NOTIFICATION_MSG_PARAM, "resetPasswordEmailSent")
.toMap() %>"/>
</div>
</div>
</oneit:form>
<%@ include file="inc/htmlfooter_nopriv.jsp" %>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/inc/htmlfooter_nopriv.jsp
0 → 100644
View file @
1e28b427
<footer class="power-footer">
<div class="footer-link text-center">
<ul>
<li><a href="#">© <%= Calendar.getInstance().get(Calendar.YEAR) %> Talentology</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
</div>
</footer>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/inc/htmlheader_nopriv.jsp
0 → 100644
View file @
1e28b427
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
></meta>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
></meta>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
></meta>
<title>
Talentology
</title>
<
%@
include
file=
"/inc/std_imports.jsp"
%
>
</head>
<body
class=
"bg-color"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"main-verify-identity"
>
<div
class=
"login-logo"
><img
src=
"<%= request.getContextPath() %>/images/logo.svg"
/></div>
cmsWebApp/webroot/extensions/adminportal/reset_password.jsp
0 → 100644
View file @
1e28b427
<%@ page extends="oneit.servlets.jsp.FormJSP" %>
<%@ include file="/setuprequest.jsp" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%! protected String getName (ServletConfig config) { return "reset_password_jsp"; } %>
<%
ORMProcessState process = (ORMProcessState)ProcessDecorator.getDefaultProcess(request);
String companyUserID = (String) process.getAttribute("companyUserID"); //request.getParameter("id");
String forgotpasswordCode = (String) process.getAttribute("forgotpasswordCode"); //request.getParameter("key");
SecUser user = (SecUser) process.getAttribute("SecUser");
Article home = WebUtils.getArticleByShortCut(process.getTransaction(), WebUtils.ADMIN_HOME);
String nextPage = home.getLink(request);
if(request.getParameter("id")!=null)
{
companyUserID = request.getParameter("id");
process.setAttribute("companyUserID", companyUserID);
}
if(request.getParameter("key")!=null)
{
forgotpasswordCode = request.getParameter("key");
process.setAttribute("forgotpasswordCode", forgotpasswordCode);
}
if(StringUtils.subBlanks(companyUserID) != null)
{
CompanyUser companyUser = CompanyUser.getCompanyUserForForgotPassword(process.getTransaction(), companyUserID, forgotpasswordCode);
if(companyUser != null)
{
user = companyUser.getUser();
// if(StringUtils.subBlanks(forgotpasswordCode) != null)
// {
// RandomStringGen random = new RandomStringGen();
//
// user.setAttribute("md5:Password", random.generateAlphaNum(8));
// }
process.setAttribute("SecUser", user);
}
}
%>
<%@ include file="inc/htmlheader_nopriv.jsp" %>
<script type="text/javascript">
$(document).ready(function() {
validate();
$('input').on('change keyup', function() { validate() });
});
function validate() {
var empty = false;
$('.password-field').each(function() {
if ( $.trim($( this ).val()) == '') {
empty = true;
}
});
if (empty) {
$('.reset-btn').attr('disabled', 'disabled');
} else {
$('.reset-btn').removeAttr('disabled');
}
}
</script>
<style>
button[disabled] {
opacity: 0.6;
background-color: #0582ba;
}
</style>
<oneit:form name="resetPassword" method="post">
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<%
if(user!=null)
{
String key = Utils.getPwdKeyOfSecUser(request, user, true);
%>
<div class="main-box-layout login-box">
<div class="text-left">
<p >
Please enter a new password below.
</p>
</div>
<div> </div>
<div class="form-group text-left">
<label>Password *</label>
<oneit:input type="password" name="<%= key %>" class="form-control password-field"/>
</div> <!-- form-group -->
<div class="form-group text-left">
<label>Confirm Password *</label>
<oneit:input type="password" name="<%= key + 2 %>" class="form-control password-field"/>
</div> <!-- form-group -->
<div class="col-sm-12">
<oneit:button value="Set New Password" name="resetPassword" cssClass="box-btn reset-btn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage).toMap() %>"/>
</div>
</div>
<%
}
else
{
%>
<h3 class="text-danger">Invalid User or this link has been expired, generate new link to access this page.</h3>
<%
}
%>
</oneit:form>
<%@ include file="inc/htmlfooter_nopriv.jsp" %>
cmsWebApp/webroot/extensions/adminportal/sign_in.jsp
View file @
1e28b427
...
@@ -5,16 +5,13 @@
...
@@ -5,16 +5,13 @@
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%! protected String getName (ServletConfig config) { return "signin_jsp"; } %>
<%! protected String getName (ServletConfig config) { return "signin_jsp"; } %>
<%
ORMProcessState process = (ORMProcessState) ProcessDecorator.getDefaultProcess(request);
ObjectTransaction objTran = process.getTransaction ();
String nextPage = WebUtils.getArticleByShortCut(objTran, WebUtils.ADMIN_HOME).getLink(request);
%>
<html
lang=
"en"
>
<%@ include file="inc/htmlheader_nopriv.jsp" %>
<head>
<meta
charset=
"utf-8"
></meta>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
></meta>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
></meta>
<title>
Talentology
</title>
<
%@
include
file=
"/inc/std_imports.jsp"
%
>
</head>
<body class="bg-color">
<body class="bg-color">
<script type="text/javascript">
<script type="text/javascript">
...
@@ -51,48 +48,51 @@
...
@@ -51,48 +48,51 @@
background-color: #0582ba;
background-color: #0582ba;
}
}
</style>
</style>
<div
class=
"container"
>
<div class="main-box-layout login-box">
<div
class=
"row"
>
<oneit:form name="login" method="post">
<div
class=
"main-verify-identity"
>
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<div
class=
"login-logo"
><img
src=
"<%= request.getContextPath() %>/images/logo.svg"
/></div>
<oneit:form
name=
"login"
method=
"post"
>
<oneit:dynInclude
page=
"/extensions/applicantportal/inc/multifieldtext.jsp"
data=
"<%= CollectionUtils.EMPTY_MAP%>"
/>
<div
class=
"main-box-layout login-box"
>
<div
class=
"form-group text-left"
>
<label>
Email Address
</label>
<input
type=
"text"
class=
"form-control"
name=
"username"
required
>
</div>
<div
class=
"form-group text-left"
>
<label>
Password
</label>
<input
type=
"password"
class=
"form-control"
name=
"password"
required
>
</div>
<div
class=
"form-group"
>
<a
href=
"#"
class=
"forgot-pass"
style=
"display: none"
>
Forgot password?
</a>
<div class="form-group text-left">
<label>Email Address</label>
<input type="text" class="form-control" name="username" required>
</div>
<div class="form-group text-left">
<label>Password</label>
<input type="password" class="form-control" name="password" required>
</div>
<div class="form-group">
<oneit:button
value=
"Sign in"
name=
"login"
cssClass=
"box-btn login-btn"
<oneit:button value="Forgot password?" name="gotoPage" cssClass="forgot-pass" skin="link"
requestAttribs=
"<%= CollectionUtils.EMPTY_MAP%>"
/>
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", "forgot_password.jsp")
</div>
.toMap() %>"></oneit:button>
<div
class=
"box-br-line"
><span></span></div>
<oneit:button value="Sign in" name="login" cssClass="box-btn login-btn"
<div
class=
"box-label"
>
Sign in using your social network of choice
</div>
requestAttribs="<%= CollectionUtils.EMPTY_MAP%>"/>
<ul
class=
"social-login"
>
<li><a
href=
"#"
><img
src=
"<%= request.getContextPath() %>/images/login-linkedin-icon.svg"
/></a></li>
<li><a
href=
"#"
><img
src=
"<%= request.getContextPath() %>/images/login-facebok-icon.svg"
/></a></li>
<li><a
href=
"#"
><img
src=
"<%= request.getContextPath() %>/images/login-google.png"
/></a></li>
</ul>
</div>
</oneit:form>
<footer
class=
"power-footer"
>
<div
class=
"footer-link text-center"
>
<ul>
<li><a
href=
"#"
>
©
<
%=
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
)
%
>
Talentology
</a></li>
<li><a
href=
"#"
>
Privacy Policy
</a></li>
</ul>
</div>
</footer>
</div>
</div>
</div>
</div>
</body>
</oneit:form>
</html>
<div class="box-br-line"><span></span></div>
\ No newline at end of file
<div class="box-label">Sign in using your social network of choice</div>
<oneit:form name="socialLogin" method="post">
<ul class="social-login">
<li>
<oneit:button value=" " name="linkedinOAuthLogin" skin="link" cssClass="social_login_btn"
requestAttribs="<%= CollectionUtils.mapEntry ("nextPage", nextPage).toMap() %>">
<img src="<%= request.getContextPath() %>/images/login-linkedin-icon.svg" />
</oneit:button>
</li>
<li>
<oneit:button value=" " name="facebookOAuthLogin" skin="link" cssClass="social_login_btn"
requestAttribs="<%= CollectionUtils.mapEntry ("nextPage", nextPage).toMap() %>">
<img src="<%= request.getContextPath() %>/images/login-facebok-icon.svg" />
</oneit:button>
</li>
<li>
<oneit:button value=" " name="googleOAuthLogin" skin="link" cssClass="social_login_btn"
requestAttribs="<%= CollectionUtils.mapEntry ("nextPage", nextPage).toMap() %>">
<img src="<%= request.getContextPath() %>/images/login-google.png" />
</oneit:button>
</li>
</ul>
</oneit:form>
</div>
<%@ include file="inc/htmlfooter_nopriv.jsp" %>
cmsWebApp/webroot/extensions/adminportal/upgrades/20170831_Update_HomeArticle.cms.xml
0 → 100644
View file @
1e28b427
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS
xmlns:oneit=
"http://www.1iT.com.au"
name=
""
>
<NODE
factory=
"Vector"
name=
"Script"
><NODE
class=
"oneit.appservices.upgrade.cms.CMSArticleUpdateOperation"
factory=
"Participant"
name=
"Home"
>
<createSpecificIdentifier
factory=
'String'
value=
'HOME'
/>
<articleIdentifiers
factory=
"Array"
class=
"java.lang.String"
>
<NODE
factory=
"String"
value=
"HOME"
/>
</articleIdentifiers>
<createdLabel
factory=
"String"
value=
"HOME"
/>
<articleAttributeChanges
factory=
"Map"
>
<NODE
name=
"OnLeftMenu"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"Shortcuts"
factory=
"Null"
/>
</articleAttributeChanges>
<ormAttributeChanges
factory=
"Map"
>
<NODE
name=
"PublishDate"
factory=
"Date"
value=
"2000-01-01 00:00:00"
/>
<NODE
name=
"WithdrawDate"
factory=
"Date"
value=
"3000-01-01 00:00:00"
/>
<NODE
name=
"Title"
factory=
"String"
value=
"Home"
/>
<NODE
name=
"ShortTitle"
factory=
"String"
value=
"Home"
/>
<NODE
name=
"SortOrder"
factory=
"Integer"
value=
"-200203"
/>
<NODE
name=
"Type"
factory=
"Enumerated"
class=
"oneit.business.content.ArticleType"
value=
"ARTICLE"
/>
<NODE
name=
"Template"
factory=
"Enumerated"
class=
"oneit.business.content.ArticleTemplate"
value=
"ADMIN_PORTAL_HOME"
/>
</ormAttributeChanges>
<content
factory=
"Map"
>
<NODE
name=
"Body"
factory=
"Map"
>
<NODE
name=
"Content"
factory=
"String"
>
<![CDATA[<html>
<head>
<META
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<title></title>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"css/cms_style.css"
>
</head>
<body
class=
"CMS_GENERIC_EDITOR CMS_${oneit.Template} CMS_${oneit.Template}_${oneit.ContentType} CMS_${oneit.ContentType}"
>
<p>
This is some content that should sit within the Home page.
</p>
<br>
</body>
</html>
]]>
</NODE>
<NODE
name=
"TransformedContent"
factory=
"String"
>
<![CDATA[<p>
This is some content that should sit within the Home page.
</p>
<br>
]]>
</NODE>
<NODE
name=
"IncludeContent"
factory=
"Boolean"
value=
"true"
/>
</NODE>
<NODE
name=
"Synopsis"
factory=
"Map"
>
<NODE
name=
"Content"
factory=
"String"
>
<![CDATA[
<html>
<head>
<meta
name=
'author'
content=
'Cougar Content by 1iT www.1it.com.au'
>
<link
href=
"css/cms_style.css"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
<p>
</p>
<br>
</body>
</html>
]]>
</NODE>
<NODE
name=
"IncludeContent"
factory=
"Boolean"
value=
"true"
/>
</NODE>
</content>
</NODE>
</NODE>
</OBJECTS>
\ No newline at end of file
cmsWebApp/webroot/extensions/performa/GeneralConfig_performa.xml
View file @
1e28b427
...
@@ -22,5 +22,4 @@
...
@@ -22,5 +22,4 @@
<NODE
name=
"CONFIG.GLOBAL::Performa"
>
<NODE
name=
"CONFIG.GLOBAL::Performa"
>
<PARAM
name=
"HasWebsite"
factory=
"Boolean"
value=
"true"
/>
<PARAM
name=
"HasWebsite"
factory=
"Boolean"
value=
"true"
/>
</NODE>
</NODE>
</OBJECTS>
</OBJECTS>
\ No newline at end of file
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