<%@ 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>
<%
    ObjectTransaction   objTran         =   process.getTransaction ();
    String              nextPage        =   WebUtils.getSamePageInRenderMode(request, "SelectionCriteria");
    JobApplication      jobApplication  =   (JobApplication) process.getAttribute("JobApplication");
    Job                 job             =   jobApplication.getJob();
    String              exitPage        =   WebUtils.getArticleLink(request, objTran, WebUtils.APPLY_JOB, "Page") + "&id=" + job.getID() + "&key=" + job.getRandomKey();
%>
    <script>
        $(document.body).addClass('bg-color');
    </script>
    
    <div class="main-application-outline">
        <div class="selection-aust-logo">
            <img src="images/australia-post.png" />
            <span><oneit:toString value="<%= job.getPageTitle() %>"  mode="EscapeHTML"/></span>
        </div>    
        <div class="mobile-successfull-show display-none">Application Successfully Submitted</div>            
        <div class="section-page-area complete-back">
            <div class="job-post-complete">
                <div class="big-right-sy"><span><img src="images/big-right-symbol.svg" /></span></div>
                <div class="app-complete-title m-hide">Thank you</div>
                <div class="app-complete-text">
                    Your application for 
                    <oneit:toString value="<%= job.getJobTitle() %>"  mode="EscapeHTML"/>
                    has been submitted for review.
                </div>
                <oneit:form name="applyJob" method="post" enctype="multipart/form-data">
                    <div class="section-btn text-center">
                        <oneit:button   value="Return to Job Details"   name="gotoPage" cssClass="box-btn"
                                        requestAttribs="<%= CollectionUtils.mapEntry("nextPage", exitPage)
                                                                        .mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
                                                                        .toMap() %>"/>
                    </div>
                </oneit:form>
            </div>                                
        </div>        
    </div>
</oneit:dynIncluded>