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
3448b7f9
Commit
3448b7f9
authored
Aug 02, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated grid view in Application shortlist.
parent
a21537de
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
7 deletions
+56
-7
common.css
cmsWebApp/webroot/css/common.css
+6
-2
application_sorting_bar.jsp
...ot/extensions/adminportal/inc/application_sorting_bar.jsp
+3
-1
view_applicants_shortlist_grid.jsp
...extensions/adminportal/view_applicants_shortlist_grid.jsp
+47
-4
No files found.
cmsWebApp/webroot/css/common.css
View file @
3448b7f9
...
...
@@ -3350,6 +3350,10 @@ input.add-note-btn:hover{
.expand-btn
>
img
{
margin-left
:
15px
;
}
.expand-btn
a
{
color
:
#ffffff
;
}
.app-line-br
{
float
:
left
;
width
:
100%
;
...
...
@@ -3754,9 +3758,9 @@ span.right-img {
position
:
relative
;
top
:
-4px
;
}
.grid-box-view
{
/*
.grid-box-view {
margin-bottom: 195px;
}
}
*/
/*View Applicants HT005 - Shortlist End*/
...
...
cmsWebApp/webroot/extensions/adminportal/inc/application_sorting_bar.jsp
View file @
3448b7f9
...
...
@@ -10,6 +10,7 @@
String currentPage = (String) getData(request, "currentPage");
AppSortOption appSortOpt = (AppSortOption) getData(request, "sortOption");
String tabNumber = (String) getData(request, "tabNumber");
Boolean expand = getData(request, "expand")!=null ? (Boolean) getData(request, "expand") : Boolean.FALSE;
%>
...
...
@@ -63,7 +64,8 @@
<%
for (AppSortOption sortOption : AppSortOption.getAppSortOptionArray())
{
String optionLink = currentPage + "&JobID=" + job.getID() + "&AppSortOption=" + sortOption.getName() ;
String optionLink = currentPage + "&JobID=" + job.getID() + "&AppSortOption=" + sortOption.getName()
+ (expand ? "&Expand=Y" : "");
%>
<option <%= (appSortOpt != null && appSortOpt == sortOption ? "selected" : "" )%> value="<%= optionLink %>">
<oneit:toString value="<%= sortOption.getDescription() %>" mode="EscapeHTML"/>
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicants_shortlist_grid.jsp
View file @
3448b7f9
...
...
@@ -16,6 +16,19 @@
process.setAttribute("Job", job);
}
Boolean isExpand = (Boolean) process.getAttribute("IsExpand");
if(request.getParameter("Expand") != null)
{
isExpand = CollectionUtils.equals((String) request.getParameter("Expand"), "Y");
}
if(isExpand == null)
{
isExpand = Boolean.FALSE;
}
System.out.println(isExpand);
Debug.assertion(job != null, "Job is null in admin portal view applicants");
...
...
@@ -45,6 +58,7 @@
List<JobApplication> sortedApplications = applications!=null ? Utils.getApplicationsSorted(applications, appSortOpt) : new ArrayList<JobApplication>();
process.setAttribute("AppSortOption", appSortOpt);
process.setAttribute("IsExpand", isExpand);
%>
<script type="text/javascript">
...
...
@@ -102,8 +116,13 @@
sortOption="<%= appSortOpt %>"
currentPage="<%= currentPage %>"
tabNumber="2"
expand="<%= isExpand %>"
data="<%= CollectionUtils.EMPTY_MAP%>"/>
<%
if(!isExpand)
{
%>
<div class="five-boxs">
<%
int index = 0;
...
...
@@ -155,14 +174,25 @@
<div class="app-border-bottom"></div>
</div>
<div class="main-expand-btn">
<div class="expand-btn">Expand shortlist <img src="images/arrow-white-icon.svg"></div>
<div class="expand-btn">
<oneit:button value=" " name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", currentPage+"&Expand=Y")
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).mapEntry("AppSortOption", appSortOpt).toMap())
.toMap() %>">
Expand shortlist <img src="images/arrow-white-icon.svg">
</oneit:button>
</div>
</div>
<div class="five-boxs grid-box-view">
<%
}
else
{
%>
<div class="five-boxs grid-box-view" style="">
<%
int i = 0;
for(JobApplication jobApplication : job.getShortlistedApplications()
)
for(JobApplication jobApplication : sortedApplications
)
{
%>
<div class="<%= "appl-c-box " + (i == 0 ? " cb-one" : "")%> ">
...
...
@@ -248,6 +278,19 @@
}
%>
</div>
<div class="main-expand-btn">
<div class="expand-btn">
<oneit:button value=" " name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", currentPage+"&Expand=N")
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).mapEntry("AppSortOption", appSortOpt).toMap())
.toMap() %>">
Collapse shortlist <img src="images/select-top-arrow.svg">
</oneit:button>
</div>
</div>
<%
}
%>
</div>
</div>
</oneit:form>
...
...
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