<%@ 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>
<%
    SecUser     loggedInUser    =   SecUser.getTXUser(transaction);
    CompanyUser companyUser     =   loggedInUser.getExtension(CompanyUser.REFERENCE_CompanyUser);

    Debug.assertion(companyUser != null , "Invalid user in admin portal my details");
    
    String      nextPage        =   WebUtils.getSamePageInRenderMode(request, "Page");
%>
    <div class="container-fluid">
        <div class="row content">
            <div class="main-content-area">
                <h1 class="page-title">My Details</h1>        
                <oneit:form name="editUser" method="post"    enctype="multipart/form-data">
                    <div style="padding-left: 15px; padding-right: 15px;">
                        <oneit:dynInclude   page="/extensions/applicantportal/inc/multifieldtext.jsp"   data="<%= CollectionUtils.EMPTY_MAP%>"/>
                    </div>
                    <div class="form-page-area">
                        <div class="create-job">
                            <div class="assessment-criteria">
                                <div class="form-group">
                                    <label class="label-16">Personal Details</label>                
                                </div>              
                                <div class="form-group">
                                    <oneit:label GUIName="Email Address" />
                                    <oneit:ormInput obj="<%= loggedInUser %>" type="text" attributeName="Email"   cssClass="form-control" />                                
                                </div>
                                <div class="form-group row">
                                    <div class="col-md-6">
                                        <label><oneit:label GUIName="First Name" /></label>
                                        <oneit:ormInput obj="<%= loggedInUser %>" type="text" attributeName="FirstName"   cssClass="form-control" />                                
                                    </div>
                                    <div class="col-md-6">
                                        <label><oneit:label GUIName="Last Name" /></label>
                                        <oneit:ormInput obj="<%= loggedInUser %>" type="text" attributeName="LastName"   cssClass="form-control" />                                
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label><oneit:label GUIName="Phone" /></label>
                                    <oneit:ormInput obj="<%= companyUser %>" type="text" attributeName="Phone"   cssClass="form-control" />                                
                                </div>
                                <div class="form-brack-line-sub"></div>
                                <div class="form-group">
                                    <label><oneit:label GUIName="Confirm Password" /></label>
                                    <oneit:ormInput obj="<%= loggedInUser %>" type="text" attributeName="LastName"   cssClass="form-control" />                                
                                </div>
                                <div class="text-center form-group">
                                    <oneit:button   value="Save Updates"    name="save" cssClass="btn btn-primary largeBtn"
                                                    requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage).toMap() %>" />
                                </div> 
                            </div>
                        </div>
                    </div>
                </oneit:form>
            </div>
        </div>
    </div>
</oneit:dynIncluded>
