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
4f3f7568
Commit
4f3f7568
authored
Oct 16, 2018
by
Saliya Randunu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui changes and jquery coding for occupation selection popup and page
parent
52e649a2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
1 deletions
+106
-1
common.css
cmsWebApp/webroot/css/common.css
+17
-0
job_detail.jsp
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
+89
-1
No files found.
cmsWebApp/webroot/css/common.css
View file @
4f3f7568
...
...
@@ -6386,3 +6386,19 @@ input{
.create-job-selector.checked
h3
{
color
:
#FFFFFF
;
}
.occupation_content
{
position
:
relative
;}
.occupation_content_list
{
width
:
25%
;
overflow-y
:
scroll
;
max-height
:
400px
;}
.occupation_content_list
ul
{
display
:
none
;
width
:
25%
;
position
:
absolute
;
top
:
0
}
.occupation_content_list
li
{
cursor
:
pointer
;
font-weight
:
500
;
background
:
#F4F7F8
;
border-bottom
:
solid
1px
#e5e8eb
;
border-right
:
solid
1px
#e5e8eb
;
padding
:
0
;}
.occupation_content_list
li
span
{
display
:
block
;
padding
:
15px
20px
;
}
.occupation_content_list
>
li
{
font-weight
:
700
;}
.occupation_content_list
li
.clicked
{
border-right
:
0
}
.occupation_content_list
li
.clicked
>
span
{
background
:
#fff
;
color
:
#03a0e7
;
font-weight
:
700
;}
.occupation_content_list
li
.clicked
>
ul
{
display
:
block
;}
#occupation-list
.jBox-container
{
border-radius
:
3px
;
padding
:
0
}
#occupation-list
.jBox-content
{
padding
:
0
;
font-size
:
13px
;}
#occupation-list
.jBox-container
.jBox-title
{
background-color
:
#4E5258
;
color
:
#fff
;
font-size
:
17px
;
border-radius
:
3px
3px
0
0
;
height
:
70px
;
line-height
:
40px
}
.occupation_select_button
{
height
:
100px
;
padding
:
20px
;
text-align
:
right
;
border-top
:
solid
1px
#e5e8eb
;}
.occupation_select_button
.btn.btn-primary.largeBtn
{
margin
:
0
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
View file @
4f3f7568
...
...
@@ -33,6 +33,36 @@
});
// $(".occupation_content ul").css('width', $(".occupation_content").width()/4);
var popup_width = 1040;
new jBox('Modal', {
id : "occupation-list",
attach: '.select-occupation',
title: 'Select the occupation classification for this job',
content : $("#occupation_content"),overlay : true,
closeButton: "title",
minWidth : popup_width, height : 500,
onCreated : function(){
var menu_item_width = popup_width/4;
$(".occupation_content_list ul").css("width",menu_item_width);
$(".occupation_content_list ul.first-child").css("left",menu_item_width);
$(".occupation_content_list ul.second-child").css("left",menu_item_width);
$(".occupation_content_list ul.third-child").css("left",menu_item_width);
}
});
$(".occupation_content_list li").click(function(){
$(this).siblings('li').removeClass("clicked");
$(this).addClass("clicked");
});
});
</script>
...
...
@@ -169,7 +199,8 @@
</div>
<div class="col-md-6">
<label><oneit:label GUIName="Job Occupation Classification" /></label>
<tagfile:ormsingleasso_select obj="<%= job %>" assocName="Occupation" options="<%= Occupation.searchAll(transaction) %>"/>
<input type="text" class="form-control select-occupation" value="Select Occupation"></input>
<!--<tagfile:ormsingleasso_select obj="<%= job %>" assocName="Occupation" options="<%= Occupation.searchAll(transaction) %>"/>-->
</div>
</div>
<div class="form-group row">
...
...
@@ -283,5 +314,62 @@
</div>
</div>
</div>
<div class="occupation_content" id="occupation_content" style="display: none;">
<ul class="occupation_content_list">
<%
Occupation[] firstLevelOccupations = Occupation.SearchByAll()
.andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1))
.search(transaction);
for (Occupation firstLevel : firstLevelOccupations)
{
%>
<li class="main-item">
<span> <%= firstLevel%> </span>
<ul class="first-child">
<%
for (Occupation secondLevel : firstLevel.getChildOccupationsSet())
{
%>
<li >
<span> <%= secondLevel%></span>
<ul class="second-child">
<%
for (Occupation thirdLevel : secondLevel.getChildOccupationsSet())
{
%>
<li >
<span> <%= thirdLevel%></span>
<ul class="third-child">
<%
for (Occupation fourthLevel : thirdLevel.getChildOccupationsSet())
{
%>
<li >
<span> <%= fourthLevel%></span>
</li>
<%
}
%>
</ul>
</li>
<%
}
%>
</ul>
</li>
<%
}
%>
</ul>
</li>
<%
}
%>
</ul>
<div class="occupation_select_button">
<button type="button" value="Save Job Occupation" class="btn btn-primary largeBtn" style="" >Save Job Occupation</button>
</div>
</div>
</oneit:form>
</oneit:dynIncluded>
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