<%@ 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="/extensions/performa/inc/stdimports.jsp" %>

<oneit:dynIncluded>
<%
    String  nextPage    =   WebUtils.getSamePageInRenderMode(request, "Occupation");
    String  jobPage     =   WebUtils.getSamePageInRenderMode(request, "CreateJob");

%>  
    <oneit:form name="editJob" method="post"    enctype="multipart/form-data">

        <div class="container-fluid">
                        
            <h1 class="page-title">Create a job</h1>

            <div class="form-page-area">
                <div>
                    <ul>
                    <%
                        Occupation[]    firstLevelOccupations   =   Occupation.SearchByAll()
                                                                                .andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1))
                                                                                .search(transaction);
                        for (Occupation firstLevel : firstLevelOccupations)
                        {
                    %>
                            <li>
                                <%= 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>
                    <%
                        }
                    %>
                    </ul>
                </div>
            </div>
        </div>
    </oneit:form>
</oneit:dynIncluded>
