<%@ control language="VB" autoeventwireup="false" inherits="RCC_CRM_CC_EditCRMUser, MachSol.MachPanel.Web" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<script type="text/javascript" language="javascript">
    function CopyEditEmail() {

        var parent2 = document.getElementById("<%=TxBx_EditUserEmail.ClientID%>");
        var child2 = document.getElementById("<%=TxBx_SendSetupEmail.ClientID%>");

        if (parent2 != null && child2 != null) {
            if (document.getElementById('<%=ChBx_SendSetupEmail.ClientID%>').checked == true) {
                child2.value = parent2.value;
            }
            else {
                child2.value = '';
            }
        }
    }
</script>
<div class="row" id="Pnl_EditUser" runat="server" visible="false">
    <div class="col-xs-12">
        <div id="div_edit_user_wrapper" runat="server">
            <div class="header" id="div_edit_user_header" runat="server">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Literal43" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1209%>" />
                        <asp:Label ID="lbl_User" runat="server" /></h2>
                </div>
                <asp:LinkButton ID="lb_GoBack" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CssClass="btn btn-primary waves-effect pull-right m-t--4px btn-sm" />
            </div>
            <div id="div_edit_user_wrapper_body" runat="server">
                <div class="row" id="div_breadCrumbTrackingBox" runat="server">
                    <div class="col-xs-12">
                        <div id="tbl_productStepButtonContainer" class="products-step" runat="server">
                            <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                                <asp:LinkButton ID="lbtn_General" runat="server" Text='<%$ Resources:Content, GN00001466 %>' />
                            </span>
                            <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                                <asp:LinkButton ID="Lbtn_ChangePwd" runat="server" Text='<%$ Resources:Content, DGN1110442 %>' />
                            </span>
                            <span id="div1" runat="server" nowrap="true" class="label label-default">
                                <asp:LinkButton href="#home" ID="lb_Advanced1" runat="server" Text='' />
                            </span>
                        </div>
                    </div>
                </div>

                <div class="row" id='Pnl_EditUser_General' runat="server" visible='true'>
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="body">
                                <div class="row" id="Tr_TxBx_EditUserName" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Literal33" runat="server" Text="<%$ Resources:Content,GN0001288%>"
                                                        EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EditUserName" runat="server" MaxLength="50"></asp:TextBox>
                                                <%--<asp:RegularExpressionValidator ID="REV_UserAlias" runat="server" ValidationGroup="CRMEditUser" Display="None" ErrorMessage="<%$Resources:Content,InvalidUPN %>"
                                                    ValidationExpression="<%$Resources:MPRegex,Alias %>" ControlToValidate="TxBx_EditUserName" SetFocusOnError="true">
                                                </asp:RegularExpressionValidator>--%>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-4 col-md-5 col-xs-10">
                                        <div class="form-group at-the-rate">
                                            @<asp:DropDownList ID='Ddl_UpnSuffix' runat='server'></asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_EditUserName"
                                                Display="None" SetFocusOnError="True" ValidationGroup="CRMEditUser"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="Tr_EditDisplayName" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Literal27" runat="server" Text="<%$ Resources:Content,GN00001113%>"
                                                        EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EditDisplayName" runat="server" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_EditDisplayName"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRMEditUser"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="TR_TxBx_EditFName" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal runat="server" ID="Ltrl_FName" Text="<%$ Resources:Content,GN00001132%>"
                                                        EnableViewState="false"></asp:Literal>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox runat="server" ID="TxBx_EditFName" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_EditFName" runat="server" ControlToValidate="TxBx_EditFName"
                                                    SetFocusOnError="true" ValidationGroup="CRMEditUser">
                                                </asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="tr_TxBx_EditLName" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal runat="server" ID="Ltrl_LName" Text="<%$ Resources:Content,GN00001133%>"
                                                        EnableViewState="false"></asp:Literal>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox runat="server" ID="TxBx_EditLName" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_EditLName" runat="server" ControlToValidate="TxBx_EditLName"
                                                    SetFocusOnError="true" ValidationGroup="CRMEditUser">
                                                </asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Ltrl_Edit_AccessMode" runat="server" EnableViewState="false" Text="<%$ Resources:Content,USM0029%>" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID='Ddl_Edit_AccessMode' runat='server' Width='120px' AutoPostBack='true'>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id='TR_Edit_CALType' runat='server'>
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Ltrl_Edit_CALType" runat="server" EnableViewState="false" Text="<%$ Resources:Content,USM0030%>" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID='Ddl_Edit_CALType' runat='server' Width='120px'>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Ltrl_EditUserBU" runat="server" Text="<%$ Resources:Content,USM0078%>" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID='Ddl_EditUserBU' runat='server' Width='120px' AutoPostBack='true'>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 row-label">
                                        <asp:Literal ID="Literal30" runat="server" Text="<%$ Resources:Content,String353%>"
                                            EnableViewState="false" />:
                                    </div>
                                    <div class="col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <EM:AddSelectableSelected ID="UCRoles" runat="server" SortByValue="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row" id="TR_EmailEdit" runat="server">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Literal31" runat="server" Text="<%$ Resources:Content,GN0000652%>"
                                                        EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <div class="form-grup">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_EditUserEmail" runat="server" onblur='CopyEditEmail()' MaxLength="99"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_EditUserEmail"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRMEditUser"></asp:RequiredFieldValidator>
                                               <%-- <asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                                    ID="RegularExpressionValidator3" runat="server" ControlToValidate="TxBx_EditUserEmail"
                                                    Display="None" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                    ValidationGroup="CRMEditUser" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Literal ID="Literal35" runat="server" Text="<%$ Resources:Content,GN00001336%>"
                                            EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-10 col-xs-12">
                                        <div class="form-grup">
                                            <asp:TextBox ID="TxBx_EditNotes" class="col-xs-12" Rows="5" TextMode="MultiLine" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:ValidationSummary ID="ValidationSummary3" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                            ShowMessageBox="True" ShowSummary="False" ValidationGroup="CRMEditUser" />
                                        <asp:Button ID="Btn_UserEdit" ValidationGroup="CRMEditUser" runat="server" SkinID="saveButton"
                                            Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary btnAction" />
                                        <asp:Button ID="Btn_UserEditClose" runat="server" SkinID="cancelButton"
                                            Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id='Pnl_EditUser_Pass' runat="server" visible='false'>
                    <div class="col-xs-12">
                        <div class="card">
                            <%--<div class="header">
                                <h3>
                                    <%= Resources.Content.GN0000276%>                                                                                                                                 
                                </h3>
                            </div>--%>
                            <div class="body">
                                <div class="row" id="Tr_EditPass" runat="server">
                                    <div class="col-sm-4 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110554%>"
                                                        EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:RequiredFieldValidator ID="RFV_EditPassword" runat="server" ValidationGroup="CRMEditPass"
                                                    ControlToValidate="TxBx_EditPassword" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <asp:TextBox ID="TxBx_EditPassword" runat="server" TextMode="Password" MaxLength="30"
                                                    ValidationGroup='CRMEditPass' />
                                            </div>
                                        </div> 
                                        <br />
                                        <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:Button ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>"
                                                CausesValidation="false" CssClass="RandomPassword btn btn-primary" TabIndex="-1"></asp:Button>
                                        </div>
                                        <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>
                                    </div>
                                </div>
                                <div class="row" id="Tr_EditPass2" runat="server">
                                    <div class="col-sm-4 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Literal34" runat="server" Text="<%$ Resources:Content,DGN1110555%>"
                                                        EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:CompareValidator Display="None" ID="CompareValidator1" ValidationGroup="CRMEditPass"
                                                    runat="server" ErrorMessage="Password do not match." ControlToCompare="TxBx_EditPassword"
                                                    ControlToValidate="TxBx_EditConfirmPassword"></asp:CompareValidator>
                                                <asp:TextBox ID="TxBx_EditConfirmPassword" TextMode="Password" runat="server" MaxLength="30"
                                                    ValidationGroup='CRMEditPass'></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_ConfirmPassword" runat="server" ValidationGroup="CRMEditPass"
                                                    ControlToValidate="TxBx_EditConfirmPassword" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-4 col-xs-12 row-label">
                                        <asp:Literal ID="Literal80" runat="server" Text="<%$ Resources:Content,GN0000752%>"
                                            EnableViewState="false">
                                        </asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="ChBx_SendSetupEmail" runat="server" Checked="true" Text=" " />
                                        </div>
                                    </div>
                                </div>
                                <div class="row" id="Tr_SendSetupEmail" runat="server">
                                    <div class="col-sm-4 col-xs-12 row-label">
                                        *
                                                    <asp:Literal ID="Literal79" runat="server" Text="<%$ Resources:Content,String389%>"
                                                        EnableViewState="false">
                                                    </asp:Literal>:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_SendSetupEmail" runat="server" ValidationGroup='CRMEditPass'></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RFV_TxBx_SendSetupEmail" runat="server" ControlToValidate="TxBx_SendSetupEmail"
                                                    Display="None" SetFocusOnError="True" ValidationGroup="CRMEditPass" Enabled="false"></asp:RequiredFieldValidator>
                                               <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage='<%$ Resources:Content,DEV1055%>'
                                                    ControlToValidate="TxBx_SendSetupEmail" Display="None" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                    ValidationGroup="CRMEditPass" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">

                                        <asp:ValidationSummary ID="ValidationSummary4" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                            ShowMessageBox="True" ShowSummary="False" ValidationGroup="CRMEditPass" />
                                        <asp:Button ID="Btn_EditPassSave" ValidationGroup="CRMEditPass" runat="server" SkinID="saveButton"
                                            Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary btnAction" />
                                        <asp:Button ID="Btn_EditPassCancel" runat="server" SkinID="cancelButton"
                                            CausesValidation='false' Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
