<%@ 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 class="my-company-area">
                        
                        <oneit:dynInclude   page="/extensions/adminportal/inc/my_details_tabs.jsp"    TabNumber="1"    data="<%= CollectionUtils.EMPTY_MAP%>"/>

                        <div style="padding-left: 15px; padding-right: 15px;">
                            <oneit:dynInclude   page="/extensions/applicantportal/inc/multifieldtext.jsp"   data="<%= CollectionUtils.EMPTY_MAP%>"/>
                        </div>
                        <div class="company-content-area">
                        <!-- Tab panes -->
                        <div class="tab-content">
                            <div class="tab-pane active" id="company-detail">
                                <div class="tabpage-title">
                                    My Detials
                                </div>
                                <div class="form-group">
                                    <label><oneit:label GUIName="Email Address" /></label>
                                    <oneit:ormInput obj="<%= loggedInUser %>" type="text" attributeName="UserName"  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="text-center form-group">
                                    <oneit:button   value="Save Updates"    name="saveUserDetails"  cssClass="btn btn-primary largeBtn"
                                                    requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
                                                                                        .mapEntry("CompanyUser", companyUser)
                                                                                        .toMap() %>" />
                                </div> 
                            </div>
                        </div>
                    </div>
                    </div>
                </oneit:form>
            </div>
        </div>
    </div>
</oneit:dynIncluded>
