<%@ 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  editJobPage =   WebUtils.getSamePageInRenderMode(request, WebUtils.EDIT_JOB);
%>

<oneit:dynIncluded>

    <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 <oneit:toString   value="<%= SecUserToNameTransform.INSTANCE.transform(job.getSecUser()) %>"  mode="EscapeHTML"/><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">
                <oneit:toString    value="<%= job.getClosingInText() %>"   mode="EscapeHTML"/>
            </span>
            <span class="job-status-appli">
                <span class="<%= job.getJobStatus()==JobStatus.OPEN ? "active-status-icon" : "complete-status-icon" %>"></span>
                <oneit:toString  value="<%= job.getJobStatusText() %>"    mode="EscapeHTML"/>
            </span>
            <span class="edit-btn-dropdown">
                <oneit:button   value=" "   name="gotoPage" skin="link"
                            requestAttribs="<%= CollectionUtils.mapEntry("nextPage", editJobPage)
                                                            .mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
                                                            .toMap() %>">
                    EDIT
                    <span><img src="images/edit-dropdown-arrow.png" /></span>
                </oneit:button>
            </span>

        </div>
    </div>
</oneit:dynIncluded>