<%@ 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>
<%
    Job     job         = (Job) process.getAttribute("Job");
%>
    <oneit:form name="editJob" method="post" enctype="multipart/form-data">
        
        <div class="container-fluid">

            <h1 class="page-title review-title">Review Job</h1>
            
            <div class="page-subtitle-">
                <span class=""> Executive Role $599.00 &nbsp;&nbsp;&nbsp;&nbsp; Available for 30 days </span>
                <span class="pull-right plan-link"> Post multiple jobs per month? <a href="#">See our plans</a></span>
            </div>
            
            <oneit:dynInclude   page="/extensions/adminportal/inc/job_main_tabs.jsp"    PageNumber="5"    data="<%= CollectionUtils.EMPTY_MAP%>"/>

            <div class="form-page-area">
                <div class="create-job">
                  <div class="assessment-criteria">
                    <div class="form-group">
                        <label class="label-16">Detail</label>
                        <div class="add-more-btn review-edit-btn pull-right">EDIT</div>
                    </div>              
                    <div class="form-group">
                        <div class="review-medium-title">
                            <oneit:ormlabel  obj="<%= job %>"    field="JobTitle" />
                            <span class="skill-label">
                                <oneit:toString value="<%= job.getJobTitle() %>"    mode="EscapeHTML" />
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="review-medium-title">
                          <oneit:ormlabel  obj="<%= job %>"    field="JobDescription" />
                            <span class="skill-label">
                                <oneit:toString value="<%= job.getJobDescription() %>"    mode="EscapeHTML" />
                            </span>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="row main-review-label">
                            <div class="col-sm-3 col-xs-12 review-label">Role Type</div>
                            <div class="col-sm-9 col-xs-12 review-data">Executive Management</div>
                        </div>
                        <div class="row main-review-label">
                            <div class="col-sm-3 col-xs-12 review-label">Client</div>
                            <div class="col-sm-9 col-xs-12 review-data">Australia Post</div>
                        </div>
                        <div class="row main-review-label">
                            <div class="col-sm-3 col-xs-12 review-label">Reference Number</div>
                            <div class="col-sm-9 col-xs-12 review-data">00589</div>
                        </div>
                    </div>
                    <div class="form-brack-line-sub"></div>
                    
                    <div class="form-group">
                        <label class="label-16">Assessment Criteria</label>
                        <div class="add-more-btn review-edit-btn pull-right">EDIT</div>
                    </div>
                    <%
                        for(CriteriaType criteria : CriteriaType.getCriteriaTypeArray())
                        {
                            Collection<AssessmentCriteria>  assessmentCriterias =   job.getAssessmentCriteraByType(criteria);

                            if(assessmentCriterias.size() == 0)
                            {
                                continue;
                            }
                    %>
                            <div class="form-group">
                                <div class="beloning">
                                    <oneit:toString value="<%= criteria.getName() %>" mode="EscapeHTML"/>
                                </div>
                            </div>
                            <%
                                for (AssessmentCriteria assessmentCriteria : assessmentCriterias)
                                {
                            %>
                                    <div class="form-group">
                                        <div class="row main-review-label">
                                            <div class="col-sm-3 col-xs-12 review-label">
                                                <oneit:toString value="<%= assessmentCriteria.getName() %>" mode="EscapeHTML"/>
                                            </div>
                                            <div class="col-sm-9 col-xs-12 review-data">Description (Rating)</div>
                                        </div>
                                    </div>
                    <%
                                }
                        }
                    %>
                    <div class="form-brack-line-sub"></div>
                    
                    <div class="form-group">
                      <label class="label-16">Workplace Culture</label>
                      <div class="add-more-btn review-edit-btn pull-right">EDIT</div>
                    </div>
                    <div class="form-group">
                        <div class="beloning">Beloning</div>
                    </div>
                    <div class="form-group">
                        <div class="row main-review-label">
                            <div class="col-sm-3 col-xs-12 review-label">TEAMWORK</div>
                            <div class="col-sm-9 col-xs-12 review-data">Some teamwork is involved (Desirable)</div>
                        </div>
                        <div class="row main-review-label">
                            <div class="col-sm-3 col-xs-12 review-label">LOYALTY</div>
                            <div class="col-sm-9 col-xs-12 review-data">We are a very loyal ogranisation to employees (Highly Desirable)</div>
                        </div>
                        <div class="row main-review-label">
                            <div class="col-sm-3 col-xs-12 review-label">FRIENDLINESS</div>
                            <div class="col-sm-9 col-xs-12 review-data">It is important to be friendly (Highly Desirable)</div>
                        </div>
                    </div>
                    
                    <div class="form-brack-line-sub"></div>
                    <div class="form-group">
                      <label class="label-16">Job Match Assessment</label>
                      <div class="add-more-btn review-edit-btn pull-right">EDIT</div>
                    </div>
                    <div class="form-group">              
                      <div class="beloning job-match-ass">Comprehensive Assessment (250 Questions ? 20 Minutes)</div>
                    </div>
                    <div class="text-center">
                      <input type="button" class="btn btn-primary top-margin-25" value="Confirm and make payment" />
                    </div>
                    <div class="job-active-time">Your job will be active for 30 days from being published</div>
                  </div>
                </div>
            </div>
        </div>    
    </oneit:form>
</oneit:dynIncluded>