<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ 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.getSamePageInRenderMode(request, "Page") + "&JobID=" + job.getObjectID(); //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">
        <%
            BinaryContent   logo    =   job.getLogo();

            if(logo != null)
            {
                int logoHeight  =   45;
        %>
                <tagfile:img src="<%= ThumbnailUtils.filterImage(DiskFileBinaryContent.getRelativeURL(logo), "KEEP", new ScaleWithin (0, logoHeight)) %>" />
        <%
            }
        %>
            <span><oneit:toString value="<%= job.getJobTitle() %>"  mode="EscapeHTML"/></span>
            <div class="clearfix no-height"></div>
        </div>    
        <div class="mobile-successfull-show display-none">Thank you 😀</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="text-center">
                        <oneit:button   value="Return to Job Details"   name="gotoPage" cssClass="box-btn btn-gotojob"
                                        requestAttribs="<%= CollectionUtils.mapEntry("nextPage", exitPage)
                                                                        .mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
                                                                        .toMap() %>"/>
                    </div>
                </oneit:form>
            </div>                                
        </div>        
    </div>
</oneit:dynIncluded>