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

<oneit:dynIncluded>
<%
    ObjectTransaction   objTran = (process == null ? ObjectTransaction.getTransaction () : process.getTransaction ());
    Job                 job     = (Job) process.getAttribute("Job");
    String              jobID   = request.getParameter("jobID");

    if(jobID!=null)
    {
        job = Job.getJobByID(objTran, Long.parseLong(jobID));
    }
    
    if(job!=null)
    {
        
%>
        <div class="main-position-overview">
            <div class="aust-logo"><img src="images/australia-post.png"></div>
            <div class="overview-title"><oneit:toString value="<%= job.getJobTitle() %>"/></div>
            <div class="ref-number">Ref: 002341</div>

            <table class="table table-responsive pos-table">
                <tbody>
                    <tr>
                        <td class="pos-tabel-td">Level: </td>        
                        <td class="pos-tabel-second"><oneit:toString value="<%= job.getLevel() %>"  nullValue="-"/></td>
                    </tr>
                    <tr>
                        <td class="pos-tabel-td">Location:</td>
                        <td class="pos-tabel-second">Perth, Western Australia</td>
                    </tr>
                    <tr>
                        <td class="pos-tabel-td">Type:</td>
                        <td class="pos-tabel-second"><oneit:toString value="<%= job.getAssessmentType() %>" nullValue="-"/></td>
                    </tr>
                    <tr>
                        <td class="pos-tabel-td">Apply by:</td>
                        <td class="pos-tabel-second"><oneit:toString value="<%= job.getApplyBy() %>"    mode="MidDate"  nullValue="-"/></td>
                    </tr>
                </tbody>
            </table>

            <div class="job-detail-title">
              Job Details
            </div>

            <p class="pos-content">
                <oneit:toString value="<%= job.getJobDescription() %>"  nullValue="-"/>
            </p>

            <div class="apply-job-btn">
                <a href="#">Apply Now</a>
            </div>
        </div>
<%
    }
    else
    {
%>
        <div class="main-position-overview">
            <p class="overview-title" align="center">Invalid application path</p>
        </div>
<%
    }
%>
</oneit:dynIncluded>
