<%@ page extends="oneit.servlets.jsp.JSPInclude" %>

<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%@ page import="oneit.security.SecUser"%>

<oneit:dynIncluded>
<%
    CompanyUser companyUser =   (CompanyUser) getData(request, "CompanyUser"); 

    Debug.assertion(companyUser != null, "Invalid CompanyUser in admin portal");

    SecUser     secUser     =   companyUser.getUser();
    Company     company     =   companyUser.getCompany();
    
    Boolean     readOnly    =   companyUser.getStatus()!=ObjectStatus.NEW;
%>
    
    <div class="form-group text-left">
        <label>Email Address</label>
        <oneit:ormInput obj="<%= secUser %>"    type="text" attributeName="Email"   cssClass="form-control"    style="text-transform: lowercase"    required="true" readOnly="<%= readOnly? "true" : "false"%>"/>
    </div>
    <div class="row">
        <div class="form-group text-left col-sm-6 col-xs-12">
            <label><oneit:ormlabel  obj="<%= secUser %>"    field="FirstName" /></label>
            <oneit:ormInput obj="<%= secUser %>"    type="text" attributeName="FirstName"   cssClass="form-control second-style"    required="true"   />
        </div>
        <div class="form-group text-left col-sm-6 col-xs-12">
            <label><oneit:ormlabel  obj="<%= secUser %>"    field="LastName" /></label>
            <oneit:ormInput obj="<%= secUser %>"    type="text" attributeName="LastName"    cssClass="form-control second-style"    required="true"/>
        </div>
    </div>
    <div class="form-group text-left">
        <label><oneit:ormlabel  obj="<%= companyUser %>"    field="Phone" /></label>
        <oneit:ormInput obj="<%= companyUser %>"    type="text" attributeName="Phone"       cssClass="form-control" required="true"/>
    </div>
    <div class="form-group text-left">
        <label>Company</label>
        <oneit:ormInput obj="<%= company %>"        type="text" attributeName="CompanyName" cssClass="form-control"  required="true"/>
    </div>
</oneit:dynIncluded>
