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
a741e3fc
Commit
a741e3fc
authored
Oct 15, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding occupations in a tree structure for saliya's reference
parent
8c2dd2b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
16 deletions
+41
-16
occupation_selector.jsp
...pp/webroot/extensions/adminportal/occupation_selector.jsp
+41
-16
No files found.
cmsWebApp/webroot/extensions/adminportal/occupation_selector.jsp
View file @
a741e3fc
...
...
@@ -20,25 +20,50 @@
<div>
<ul>
<%
for (Occupation occupation : Occupation.SearchByAll().andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1)).search(transaction))
Occupation[] firstLevelOccupations = Occupation.SearchByAll()
.andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1))
.search(transaction);
for (Occupation firstLevel : firstLevelOccupations)
{
%>
<li>
<%= occupation%>
</li>
<%
}
%>
</ul>
</div>
<div>
<ul>
<%
for (Occupation occupation : Occupation.SearchByAll().andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1)).search(transaction))
{
%>
<li>
<%= occupation%>
<%= firstLevel%>
<ul>
<%
for (Occupation secondLevel : firstLevel.getChildOccupationsSet())
{
%>
<li style="margin-left:30px;">
<%= secondLevel%>
<ul>
<%
for (Occupation thirdLevel : secondLevel.getChildOccupationsSet())
{
%>
<li style="margin-left:30px;">
<%= thirdLevel%>
<ul>
<%
for (Occupation fourthLevel : thirdLevel.getChildOccupationsSet())
{
%>
<li style="margin-left:30px;">
<%= fourthLevel%>
</li>
<%
}
%>
</ul>
</li>
<%
}
%>
</ul>
</li>
<%
}
%>
</ul>
</li>
<%
}
...
...
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