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
c4cd5585
Commit
c4cd5585
authored
Apr 10, 2018
by
chenith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remaining job count displayed in Job review.
parent
daaf829c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
10 deletions
+49
-10
Company.java
cmsWebApp/src/performa/orm/Company.java
+21
-2
common.css
cmsWebApp/webroot/css/common.css
+1
-0
job_review_submit.jsp
...bApp/webroot/extensions/adminportal/job_review_submit.jsp
+27
-8
No files found.
cmsWebApp/src/performa/orm/Company.java
View file @
c4cd5585
...
...
@@ -147,11 +147,30 @@ public class Company extends BaseCompany
public
boolean
canCreateJob
()
{
Job
[]
openJobs
=
Job
.
SearchByCompany
().
andJobStatus
(
new
EqualsFilter
<>(
JobStatus
.
OPEN
))
Job
[]
openJobs
=
getOpenJobs
();
return
getPaymentPlan
()
!=
null
&&
getPaymentPlan
().
getActiveJobCount
()
>
openJobs
.
length
;
}
public
Job
[]
getOpenJobs
()
{
return
Job
.
SearchByCompany
()
.
andJobStatus
(
new
EqualsFilter
<>(
JobStatus
.
OPEN
))
.
byCompany
(
this
)
.
search
(
getTransaction
());
}
return
getPaymentPlan
()
!=
null
&&
getPaymentPlan
().
getActiveJobCount
()
>
openJobs
.
length
;
public
Integer
getOpenJobsCount
()
{
return
getOpenJobs
().
length
;
}
public
Card
getCard
()
throws
FieldException
{
return
StripeUtils
.
retrieveCard
(
this
);
}
...
...
cmsWebApp/webroot/css/common.css
View file @
c4cd5585
...
...
@@ -1159,6 +1159,7 @@ span.skill-label span{
font-size
:
16px
;
top
:
-2px
;
position
:
relative
;
padding-top
:
12px
;
}
.plan-link
a
{
text-decoration
:
underline
;
...
...
cmsWebApp/webroot/extensions/adminportal/job_review_submit.jsp
View file @
c4cd5585
...
...
@@ -21,6 +21,9 @@
process.setAttribute("Job", job);
}
CompanyUser companyUser = job.getCompanyUser();
Company company = companyUser.getCompany();
Debug.assertion(job != null, "Job is null in admin portal create job");
%>
<oneit:form name="editJob" method="post" enctype="multipart/form-data">
...
...
@@ -29,11 +32,27 @@
<oneit:dynInclude page="/extensions/applicantportal/inc/multifieldtext.jsp" data="<%= CollectionUtils.EMPTY_MAP%>"/>
<h1 class="page-title">Review Job</h1>
<!-- <div class="page-subtitle-">
<span class="pull-right plan-link"> Post multiple jobs per month? <a href="#">See our plans</a></span>
</div>-->
<h1 class="page-title">Review Job
<%
if(company.getPaymentPlan()!=null)
{
Integer activeCount = company.getOpenJobsCount();
Integer totCount = company.getPaymentPlan().getActiveJobCount();
Integer remCount = (totCount - activeCount) > 0 ? (totCount - activeCount) : 0;
%>
<div style="float:right;">
<span class="pull-right plan-link">
<oneit:toString value="<%= remCount %>" mode="EscapeHTML" />
/
<oneit:toString value="<%= totCount %>" mode="EscapeHTML" />
Jobs remaining this month
</span>
</div>
<%
}
%>
</h1>
<oneit:dynInclude page="/extensions/adminportal/inc/job_main_tabs.jsp" PageNumber="5" data="<%= CollectionUtils.EMPTY_MAP%>"/>
...
...
@@ -73,11 +92,11 @@
</div>
</div>
<%
SecUser txUser = SecUser.getTXUser(process.getTransaction());
CompanyUser companyUser = txUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
Company company = companyUser.getCompany();
//
SecUser txUser = SecUser.getTXUser(process.getTransaction());
//
CompanyUser companyUser = txUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
//
Company company = companyUser.getCompany();
if(company
User.getCompany()
.showHasClientSupport())
if(company.showHasClientSupport())
{
%>
<div class="row main-review-label">
...
...
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