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
09631cf3
Commit
09631cf3
authored
Jun 20, 2017
by
Nilu
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
job details
parent
0ff47fea
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
274 additions
and
5 deletions
+274
-5
Job.java
cmsWebApp/src/performa/orm/Job.java
+12
-0
WebUtils.java
cmsWebApp/src/performa/utils/WebUtils.java
+40
-0
style-admin.css
cmsWebApp/webroot/css/style-admin.css
+5
-5
GeneralConfig_adminPortal.xml
...root/extensions/adminportal/GeneralConfig_adminPortal.xml
+13
-0
assessment_criteria.jsp
...pp/webroot/extensions/adminportal/assessment_criteria.jsp
+16
-0
job_detail.jsp
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
+134
-0
20170619_Update_CMSExtract_CreateJob.cms.xml
...tal/upgrades/20170619_Update_CMSExtract_CreateJob.cms.xml
+52
-0
GeneralConfig_performa.xml
...pp/webroot/extensions/performa/GeneralConfig_performa.xml
+2
-0
No files found.
cmsWebApp/src/performa/orm/Job.java
View file @
09631cf3
package
performa
.
orm
;
package
performa
.
orm
;
import
oneit.utils.BusinessException
;
public
class
Job
extends
BaseJob
public
class
Job
extends
BaseJob
{
{
...
@@ -10,4 +12,13 @@ public class Job extends BaseJob
...
@@ -10,4 +12,13 @@ public class Job extends BaseJob
{
{
// Do not add any code to this, always put it in initialiseNewObject
// Do not add any code to this, always put it in initialiseNewObject
}
}
@Override
protected
void
postInitNewObj
()
throws
BusinessException
{
super
.
postInitNewObj
();
setLevel
(
Level
.
createLevel
(
getTransaction
()));
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/utils/WebUtils.java
0 → 100644
View file @
09631cf3
package
performa
.
utils
;
import
oneit.business.content.Article
;
import
oneit.business.content.jsp.ContentDF
;
import
oneit.servlets.jsp.BaseJSP
;
import
oneit.utils.CollectionUtils
;
import
javax.servlet.http.*
;
import
oneit.business.content.jsp.ShortcutFilter
;
import
oneit.objstore.BaseBusinessClass
;
import
oneit.objstore.ObjectTransaction
;
import
oneit.servlets.jsp.ORMSimpleAssocTag
;
import
oneit.servlets.orm.DataMap
;
public
class
WebUtils
{
public
static
String
getSamePageInRenderMode
(
HttpServletRequest
request
,
String
renderMode
)
{
BaseJSP
theJSP
=
(
BaseJSP
)
request
.
getAttribute
(
BaseJSP
.
JSP_SERVLET
);
Article
article
=
(
Article
)
theJSP
.
getData
(
request
,
ContentDF
.
ARTICLE
);
String
newURI
=
article
.
getLink
(
request
,
CollectionUtils
.
mapEntry
(
"cms.rm"
,
renderMode
).
toMap
());
return
newURI
;
}
public
static
String
getRadioSingleAssocKey
(
HttpServletRequest
request
,
BaseBusinessClass
bbc
,
String
singleAssocName
)
{
DataMap
dataMap
=
DataMap
.
getDataMap
(
request
,
true
);
ORMSimpleAssocTag
.
SimpleAssocHandler
dih
=
new
ORMSimpleAssocTag
.
SimpleAssocHandler
(
bbc
,
singleAssocName
);
return
dataMap
.
storeORMHandler
(
dih
,
bbc
,
singleAssocName
);
}
public
static
Article
getArticleByShortCut
(
ObjectTransaction
objTran
,
String
shortCut
)
{
return
ShortcutFilter
.
doShortcutSearch
(
objTran
,
shortCut
);
}
}
\ No newline at end of file
cmsWebApp/webroot/css/style-admin.css
View file @
09631cf3
...
@@ -651,7 +651,7 @@ input:checked + .slider:before {-webkit-transform: translateX(18px);-ms-transfor
...
@@ -651,7 +651,7 @@ input:checked + .slider:before {-webkit-transform: translateX(18px);-ms-transfor
margin-bottom
:
28px
;
margin-bottom
:
28px
;
font-weight
:
800
;
font-weight
:
800
;
}
}
input
.btn.btn-primary
{
.btn.btn-primary
{
border-radius
:
100px
;
border-radius
:
100px
;
background-color
:
#03a0e7
;
background-color
:
#03a0e7
;
font-size
:
15px
;
font-size
:
15px
;
...
@@ -661,7 +661,7 @@ input.btn.btn-primary{
...
@@ -661,7 +661,7 @@ input.btn.btn-primary{
height
:
60px
;
height
:
60px
;
margin-top
:
10px
;
margin-top
:
10px
;
}
}
input
.btn.btn-primary
:hover
{
.btn.btn-primary
:hover
{
background-color
:
#0e87be
;
background-color
:
#0e87be
;
}
}
.btn.active
,
.btn
:active
{
.btn.active
,
.btn
:active
{
...
@@ -774,7 +774,7 @@ span.skill-label {
...
@@ -774,7 +774,7 @@ span.skill-label {
display
:
inline-block
;
display
:
inline-block
;
width
:
100%
;
width
:
100%
;
}
}
input
.btn.btn-primary.top-margin-25
{
.btn.btn-primary.top-margin-25
{
margin-top
:
25px
;
margin-top
:
25px
;
}
}
.delete-qualification
{
.delete-qualification
{
...
@@ -1021,7 +1021,7 @@ span.rate-label {
...
@@ -1021,7 +1021,7 @@ span.rate-label {
.create-job-btn
{
padding
:
9.5px
0
7.5px
15px
;
height
:
60px
;}
.create-job-btn
{
padding
:
9.5px
0
7.5px
15px
;
height
:
60px
;}
.profile-dropdown
li
a
{
padding
:
17.2px
0
15px
22px
;}
.profile-dropdown
li
a
{
padding
:
17.2px
0
15px
22px
;}
.search-bar
img
{
top
:
22px
;}
.search-bar
img
{
top
:
22px
;}
input
.btn.btn-primary
{
height
:
54px
;
width
:
64.4%
;}
.btn.btn-primary
{
height
:
54px
;
width
:
64.4%
;}
.create-job-btn
a
{
padding
:
10px
0
;}
.create-job-btn
a
{
padding
:
10px
0
;}
.main-menu
ul
{
padding
:
30px
0
;}
.main-menu
ul
{
padding
:
30px
0
;}
}
}
...
@@ -1096,7 +1096,7 @@ span.rate-label {
...
@@ -1096,7 +1096,7 @@ span.rate-label {
@media
screen
and
(
max-width
:
580px
){
@media
screen
and
(
max-width
:
580px
){
.notification-bar
{
width
:
55px
;}
.notification-bar
{
width
:
55px
;}
.notification-label
{
right
:
10px
;}
.notification-label
{
right
:
10px
;}
input
.btn.btn-primary
{
height
:
54px
;
width
:
90%
;}
.btn.btn-primary
{
height
:
54px
;
width
:
90%
;}
}
}
@media
screen
and
(
max-width
:
520px
){
@media
screen
and
(
max-width
:
520px
){
...
...
cmsWebApp/webroot/extensions/adminportal/GeneralConfig_adminPortal.xml
View file @
09631cf3
...
@@ -16,6 +16,19 @@
...
@@ -16,6 +16,19 @@
</MAP>
</MAP>
<MAP
value=
"CREATE_JOB"
description=
"Create Job"
TemplatePage=
"dynamic_content_form.jsp"
>
<NODE
name=
"Config"
factory=
"Participant"
class=
"oneit.business.content.ArticleConfiguration"
>
<INHERITS
nodename=
"StandardJSP"
/>
<RenderMode
name=
"Page"
preIncludeJSP=
"extensions/adminportal/job_detail.jsp"
/>
<RenderMode
name=
"AssessmentCriteria"
preIncludeJSP=
"extensions/adminportal/assessment_criteria.jsp"
/>
</NODE>
</MAP>
</NODE>
</NODE>
</OBJECTS>
</OBJECTS>
cmsWebApp/webroot/extensions/adminportal/assessment_criteria.jsp
0 → 100644
View file @
09631cf3
<%@ page extends="oneit.servlets.jsp.JSPInclude" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="inc/stdimports.jsp" %>
<oneit:dynIncluded>
<%
String nextPage = WebUtils.getSamePageInRenderMode(request, "AssessmentCriteria");
%>
<oneit:form name="editJob" method="post" enctype="multipart/form-data" action="<%= nextPage %>">
Assessment Criteria
</oneit:form>
</oneit:dynIncluded>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
0 → 100644
View file @
09631cf3
<%@ page extends="oneit.servlets.jsp.JSPInclude" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="inc/stdimports.jsp" %>
<oneit:dynIncluded>
<%
ObjectTransaction objTran = (process == null ? ObjectTransaction.getTransaction () : process.getTransaction ());
Job job = (Job) process.getAttribute("Job");
String assessmentCriteriaPage = WebUtils.getSamePageInRenderMode(request, "AssessmentCriteria");
Article bookingArticle = WebUtils.getArticleByShortCut(objTran, "CreateJob");
String nextPage = bookingArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", "AssessmentCriteria").toMap());
if(job == null)
{
job = Job.createJob(objTran);
process.setAttribute("Job", job);
%><%@include file="/saferedirect.jsp" %><%
}
Level[] levels = Level.SearchByAll().search(objTran);
%>
<oneit:form name="editJob" method="post" enctype="multipart/form-data">
<div class="container-fluid">
<%
oneit.servlets.jsp.FormInformation fi = oneit.servlets.jsp.FormJSP.getFormInformation (request);
if (fi != null && fi.hasErrors ())
{
%>
<div class="alert alert-danger">
<oneit:multifieldtext prefixTextName="pageHeader_errorPrefix" suffixTextName="pageHeader_errorSuffix" fieldTextName="pageHeader_errorText" deriveAllFields="true"/>
</div>
<%
}
%>
<div class="row content">
<div class="main-content-area">
<div class="">
<h1 class="page-title">Create a job <span class="active-time">(Active for 30 days)</span> </h1>
<div class="main-tab-form">
<ul class="nav nav-pills nav-justified">
<li class="active"><a href="#"><span>1</span>Job Detail</a></li>
<li class="complate"><a href="#"><span><img src="images/right-mark.png" /></span>Assessment Criteria</a></li>
<li><a href="#"><span>3</span>Workplace Culture</a></li>
<li><a href="#"><span>4</span>Job Match Assessment</a></li>
<li><a href="#"><span>5</span>Review and Submit</a></li>
</ul>
</div>
<div class="form-page-area">
<div class="create-job">
<div class="form-group">
<select class="form-control">
<option>Optional: Use a previously created Job as a template</option>
<option>One 1</option>
<option>One 2</option>
<option>One 3</option>
</select>
</div>
<div class="form-group">
<label>Job Title</label>
<oneit:ormInput obj="<%= job %>" type="text" attributeName="JobTitle" cssClass="form-control" />
</div>
<div class="form-group">
<label>Job Description</label>
<oneit:ormtextarea obj="<%= job %>" attributeName="JobDescription" cssClass="form-control textarea-box"/>
</div>
<div class="form-group">
<label>Job Type</label>
<%
FormTag jobForm = FormTag.getActiveFormTag(request);
FormBuilder formBuilder = jobForm.getFormBuilder();
String optionKey = WebUtils.getRadioSingleAssocKey(request, job, Job.SINGLEREFERENCE_Level);
String formValue = formBuilder.fieldValue (optionKey, job.getLevel() == null ? "" : job.getLevel().getID().toString());
int index = 0;
for (Level level : levels)
{
String id = String.valueOf(level.getID().longID());
String selectedStr = (CollectionUtils.equals(id, formValue) ? "checked" : "");
%>
<div class="<%= index == 0 ? "main-job-type" : "" %>">
<div class="radio radio-primary job-detail-radio">
<input type="radio" name="<%= optionKey %>" id="<%= id %>" <%= selectedStr %> value="<%= id %>">
<label for="<%= id %>">
<oneit:toString value="<%= level.getLevelDescription() %>" mode="EscapeHTML" /> <br />
<span class="sub-radio-title">
<oneit:toString value="<%= level.getLevelNotes() %>" mode="EscapeHTML" />
</span>
</label>
</div>
</div>
<%
index++;
}
%>
</div>
<div class="form-brack-line"></div>
<div class="">
<div class="optional-title">OPTIONAL</div>
<div class="row">
<div class="col-sm-6 col-xs-12 form-group">
<label>Client</label>
<select class="form-control">
<option>Please Select or Add New</option>
<option>One 1</option>
<option>One 2</option>
<option>One 3</option>
</select>
</div>
<div class="col-sm-6 col-xs-12 form-group">
<label>Reference Number</label>
<input type="text" class="form-control" />
</div>
</div>
</div>
<div class="text-center">
<oneit:button value="Proceed to Assessment Criteria" name="gotoPage" cssClass="btn btn-primary"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", WebUtils.getSamePageInRenderMode(request, "AssessmentCriteria"))
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap()).toMap() %>"/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</oneit:form>
</oneit:dynIncluded>
cmsWebApp/webroot/extensions/adminportal/upgrades/20170619_Update_CMSExtract_CreateJob.cms.xml
0 → 100644
View file @
09631cf3
<?xml version="1.0" encoding="UTF-8"?>
<OBJECTS
xmlns:oneit=
"http://www.1iT.com.au"
name=
""
>
<NODE
factory=
"Vector"
name=
"Script"
><NODE
class=
"oneit.appservices.upgrade.cms.CMSArticleUpdateOperation"
factory=
"Participant"
name=
"CreateJob"
>
<createSpecificIdentifier
factory=
'String'
value=
'OFK4TSIJ48H2GCI2B2QFNJWON57Y99'
/>
<articleIdentifiers
factory=
"Array"
class=
"java.lang.String"
>
<NODE
factory=
"String"
value=
"OFK4TSIJ48H2GCI2B2QFNJWON57Y99"
/>
</articleIdentifiers>
<createdLabel
factory=
"String"
value=
"OFK4TSIJ48H2GCI2B2QFNJWON57Y99"
/>
<articleAttributeChanges
factory=
"Map"
>
<NODE
name=
"Exclude From Search"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"Exclude From Sitemap"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"Exclude from SEO Indexing"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"On Left Menu"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"On Top Menu"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"On Footer Left"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"Shortcuts"
factory=
"String"
value=
"AdminHome"
/>
<NODE
name=
"Menu Title"
factory=
"Null"
/>
<NODE
name=
"On Footer Menu"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"Exclude From Navigation"
factory=
"Boolean"
value=
"false"
/>
<NODE
name=
"On Footer Right"
factory=
"Boolean"
value=
"false"
/>
</articleAttributeChanges>
<ormAttributeChanges
factory=
"Map"
>
<NODE
name=
"PublishDate"
factory=
"Date"
value=
"2017-06-18 00:00:00"
/>
<NODE
name=
"WithdrawDate"
factory=
"Date"
value=
"2067-06-18 22:00:00"
/>
<NODE
name=
"Title"
factory=
"String"
value=
"CreateJob"
/>
<NODE
name=
"ShortTitle"
factory=
"String"
value=
"AdminHome"
/>
<NODE
name=
"SortOrder"
factory=
"Integer"
value=
"-36830629"
/>
<NODE
name=
"Type"
factory=
"Enumerated"
class=
"oneit.business.content.ArticleType"
value=
"ARTICLE"
/>
<NODE
name=
"Template"
factory=
"Enumerated"
class=
"oneit.business.content.ArticleTemplate"
value=
"CREATE_JOB"
/>
</ormAttributeChanges>
<content
factory=
"Map"
>
<NODE
name=
"Body"
factory=
"Map"
>
<NODE
name=
"Content"
factory=
"String"
>
<![CDATA[
<p>
</p>
]]>
</NODE>
<NODE
name=
"IncludeContent"
factory=
"Boolean"
value=
"true"
/>
</NODE>
<NODE
name=
"Synopsis"
factory=
"Map"
>
<NODE
name=
"Content"
factory=
"String"
>
<![CDATA[
<p>
</p>
]]>
</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 @
09631cf3
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
<NODE
name=
"StorageMappings::Performa"
>
<NODE
name=
"StorageMappings::Performa"
>
<MAP
code=
"TestInput"
class=
"performa.orm.TestInput"
/>
<MAP
code=
"TestInput"
class=
"performa.orm.TestInput"
/>
<MAP
code=
"JobApplication"
class=
"performa.orm.JobApplication"
/>
</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