<%@ 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" %>

<%
    Job     job         = (Job) process.getAttribute("Job");
    String  pageNumber  = (String)  getData(request, "PageNumber");
    String  firstPage   = WebUtils.getSamePageInRenderMode(request, "Page");
    String  secondPage  = WebUtils.getSamePageInRenderMode(request, WebUtils.ASSESSMENT_CRITERIA);
    String  thirdPage   = WebUtils.getSamePageInRenderMode(request, WebUtils.WORKPLACE_CULTURE);
    String  fourthPage  = WebUtils.getSamePageInRenderMode(request, WebUtils.JOB_MATCH);
    String  fifthPage   = WebUtils.getSamePageInRenderMode(request, WebUtils.JOB_REVIEW);
%>

<oneit:dynIncluded>

    <div class="main-tab-form">
        <ul class="nav nav-pills nav-justified">
            <li class="<%= pageNumber == "1" ? "active" : job.assessmentCompleted() ? "complate" : ""%>">
                <oneit:button   value=" "   name="gotoPage" skin="link"
                                requestAttribs="<%= CollectionUtils.mapEntry("nextPage", firstPage)
                                                                .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                .toMap() %>">
                    <span><%= job.jobDetailsCompleted() ? "<img src=\"images/right-mark.png\" />" : "1"%></span>
                    Job Detail
                </oneit:button>
            </li>
            <li class="<%= pageNumber == "2" ? "active" : job.assessmentCompleted() ? "complate" : ""%>">
                <oneit:button   value=" "   name="gotoPage" skin="link"
                                requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondPage)
                                                                .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                .toMap() %>">
                    <span><%= job.assessmentCompleted() ? "<img src=\"images/right-mark.png\" />" : "2"%></span>
                    Assessment Criteria
                </oneit:button>
            </li>
            <li class="<%= pageNumber == "3" ? "active" :  job.cultureCompleted() ? "complate" : ""%>">
                <oneit:button   value=" "   name="gotoPage" skin="link"
                                requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdPage)
                                                                .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                .toMap() %>">
                    <span><%= job.cultureCompleted() ? "<img src=\"images/right-mark.png\" />" : "3"%></span>
                    Workplace Culture
                </oneit:button>
            </li>
            <li class="<%= pageNumber == "4" ? "active" :  job.jobMatchCompleted() ? "complate" : ""%>">
                <oneit:button   value=" "   name="gotoPage" skin="link"
                                requestAttribs="<%= CollectionUtils.mapEntry("nextPage", fourthPage)
                                                                .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                .toMap() %>">
                    <span><%= job.jobMatchCompleted() ? "<img src=\"images/right-mark.png\" />" : "4"%></span>
                    Job Match Assessment
                </oneit:button>
            </li>
            <li class="<%= pageNumber == "5" ? "active" : ""%>">
                <oneit:button   value=" "   name="gotoPage" skin="link"
                                requestAttribs="<%= CollectionUtils.mapEntry("nextPage", fifthPage)
                                                                .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                .toMap() %>">
                    <span>5</span>
                    Review and Submit
                </oneit:button>
            </li>
        </ul>
    </div>
</oneit:dynIncluded>
