<%@ 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  tabNumber       =   (String)  getData(request, "TabNumber");
    String  firstTab        =   WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
    String  secondTab       =   WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
    String  editJobPage     =   WebUtils.getSamePageInRenderMode(request, WebUtils.EDIT_JOB);
    int     closingInDays   =   DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), job.getApplyBy());

%>

<oneit:dynIncluded>

    <div class="dashboard-content-area first-part">
        <div class="officer-box">
            <div class="officer-name">
                <div class="chief-officer"><img src="images/post-p.png" />
                    <oneit:toString value="<%= job.getJobTitle() %>"    mode="EscapeHTML" />
                </div>
                <div class="off-name">
                    <span class="austr-post">Australia Post</span> by Dan Moore <span class="ex-management">&bull;&nbsp;
                        <oneit:toString value="<%= job.getLevel() %>"   mode="EscapeHTML" />
                    </span>
                </div>
            </div>
            <div class="applicant-right-status">
                <span class="light-calendar">
                    Closing in <oneit:toString  value="<%= closingInDays %>"    mode="Integer"/> days
                </span>
                <span class="job-status-appli"><span class="active-status-icon"></span>this job is active</span>
                <span class="edit-btn-dropdown"><a href="#">edit <img src="images/edit-dropdown-arrow.png" /></a></span>
                <oneit:button   value="EDIT"   name="gotoPage" cssClass="add-more-btn review-edit-btn pull-right"   skin="link"
                                requestAttribs="<%= CollectionUtils.mapEntry("nextPage", editJobPage)
                                                                    .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                    .toMap() %>"/>
            </div>
        </div>
        <div class="int-timeline">
            <ul>
                <li class="<%= tabNumber == "1" ? "active" : "" %>">
                    <oneit:button   value=" "   name="gotoPage" skin="link"
                                    requestAttribs="<%= CollectionUtils.mapEntry("nextPage", firstTab)
                                                                    .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                    .toMap() %>">
                        <span>
                            <oneit:toString value="<%= job.getJobApplicationsCount() %>"    mode="Integer" />
                        </span>
                        Applicants
                    </oneit:button>
                </li>
                <li class="<%= tabNumber == "2" ? "active" : "" %>">
                    <oneit:button   value=" "   name="gotoPage" skin="link"
                                    requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
                                                                    .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                                    .toMap() %>">
                        <span>
                            5
                        </span>
                        Shortlist
                    </oneit:button>
                </li>
                <li>
                    <a href="#"><span>3</span>Interview</a>
                </li>
                <li class="interview-tran-btn">
                    <a href="#"><span></span>Interview</a>
                </li>          
            </ul>
        </div>      
        <div class="unsutable">
            <a href="#">
                <span>6</span>Unsuitable
            </a>
        </div>      
    </div>
                            
</oneit:dynIncluded>

