<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_System_StaffProfile, MachSol.MachPanel.Web" %>

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="row">
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <h3><%= Resources.Content.strManageProfile%>  </h3>
                    </div>
                    <div class="body">

                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">

                                <asp:Literal ID="Literal41" runat="server" Text="<%$ Resources:Content,GN00001517%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:Label ID="TxBx_Login" Enabled="false" runat="server" MaxLength="60"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                        <asp:Literal ID="Literal39" runat="server" Text="<%$ Resources:Content,GN00001132%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_FName" runat="server" MaxLength="60"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_FName"
                                            Display="None" SetFocusOnError="True" ValidationGroup="EditClientDetail"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                                        <asp:Literal ID="Literal40" runat="server" Text="<%$ Resources:Content,GN00001133%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_LName" runat="server" MaxLength="60"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_LName"
                                            Display="None" SetFocusOnError="True" ValidationGroup="EditClientDetail"></asp:RequiredFieldValidator>
                                        <asp:HiddenField ID="HF_NickName" runat="server" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN0000657%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Designation" runat="server" MaxLength="60"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal45" runat="server" Text="<%$ Resources:Content,GN0000878%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Address" runat="server" MaxLength="60"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal46" runat="server" Text="<%$ Resources:Content,GN00001136%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Address2" runat="server" MaxLength="60"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal47" runat="server" Text="<%$ Resources:Content,GN0000880%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_City" runat="server" MaxLength="60"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="TR_State" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal48" runat="server" Text="<%$ Resources:Content,DEV1130%>" />
                                :
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_State" runat="server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="TR_Province" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal49" runat="server" Text="<%$ Resources:Content,GN00001313%>" />
                                :
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Province" runat="server" MaxLength="60"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal50" runat="server" Text="<%$ Resources:Content,GN00001522%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Zip" runat="server" MaxLength="10"></asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_Zip"
                                            FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="- ">
                                        </EM:FilteredTextBoxExtender>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal51" runat="server" Text="<%$ Resources:Content,GN0000882%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_Country" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDL_Country_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal52" runat="server" Text="<%$ Resources:Content,GN00012%>" />:
                            </div>
                            <div class="col-sm-1 col-xs-6 " style="min-width:90px">
                                <div class="row">
                                    <div style="width: 0px; float: left; margin-top: 5px; padding-left: 15px;">
                                        <label>(</label>
                                    </div>
                                    <div class="col-xs-10">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox MaxLength="4" ID="TxBx_CountryCode" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div style="width: 0px; margin-top: 5px; padding-right: 15px;">
                                        <label>)</label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox MaxLength="20" ID="TxBx_Phone" runat="server"></asp:TextBox>
                                        <asp:RegularExpressionValidator ControlToValidate="TxBx_CountryCode" ValidationExpression="^([+]?([0-9]{1,3}))$"
                                            ID="RegularExpressionValidator3" runat="server" ErrorMessage="<%$ Resources:Content,DGN1110069%>"
                                            Display="none" ValidationGroup="EditClientDetail" SetFocusOnError='true'></asp:RegularExpressionValidator>

                                        <asp:RegularExpressionValidator ControlToValidate="TxBx_Phone" ValidationExpression="^[\s0-9()-]{5,20}$"
                                            ID="RegularExpressionValidator5" runat="server" ErrorMessage="<%$ Resources:Content,DGN1110070%>"
                                            Display="none" ValidationGroup="EditClientDetail"></asp:RegularExpressionValidator>
                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" FilterType="Numbers,Custom"
                                            TargetControlID="TxBx_Phone" ValidChars="+ - ( ) \s">
                                        </EM:FilteredTextBoxExtender>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,GN00001524%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_Mobile" runat="server" MaxLength="15"></asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789"
                                            TargetControlID="TxBx_Mobile">
                                        </EM:FilteredTextBoxExtender>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,SMI725%>" />:
                            </div>
                            <div class="col-sm-7 col-xs-12">
                                <div class="form-group">
                                    <asp:TextBox ID="TxBx_Signature" TextMode="MultiLine" runat="server" MaxLength="500"
                                        CssClass="col-xs-12" Rows="5"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                        <div class="row" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN00001336%>" />:
                            </div>
                            <div class="col-sm-7 col-xs-12">
                                <div class="form-group">
                                    <asp:TextBox ID="TxBx_Notes" TextMode="MultiLine" runat="server" MaxLength="500"
                                        CssClass="col-xs-12" Rows="5"></asp:TextBox>
                                </div>
                            </div>
                        </div>

                        <div class="row" id="Div_Enable2FA" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal26" runat="server" Text="<%$ Resources:Content,TwoFAEnabled %>"
                                    EnableViewState="false" />:
                            </div>
                            <div class="col-sm-9 col-xs-12">
                                <asp:CheckBox ID="Chbx_Enable2FA" runat="server" Text=" " />
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button CssClass="btn btn-primary btnAction" ID="Btn_Update" ValidationGroup="EditClientDetail" CausesValidation="true"
                                    runat="server" Text="<%$ Resources:Content,GN0000281%>" />
                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Cancel" CausesValidation="false" Visible="false"
                                    runat="server" Text='<%$ Resources:Content,GN0000572 %>' />
                            </div>
                        </div>

                    </div>
                </div>
                <br />
                <div class="card" id="Div_AdditionalLogins" runat="server" visible="false">
                    <div class="header">
                        <h3>
                            <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,AdditionalLogin%>" /></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:GridView CssClass="table table-bordered table-striped table-hover table-responsive" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_AdditionalLogins" AllowSorting="true" AllowPaging="True" runat="server" AutoGenerateColumns="False">
                                    <Columns>
                                        <asp:TemplateField SortExpression="Login" HeaderStyle-CssClass="col-xs-10" HeaderText="<%$ Resources:Content,GN0001248%>">
                                            <ItemTemplate>
                                                <asp:Label ID="lbl_Login" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, GN0000278 %>' CommandName="RemoveLogin"></asp:LinkButton>
                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>" TargetControlID="LB_Remove"></EM:ConfirmButtonExtender>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager2" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *<asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,GN0001248%>" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_AdditionalLogin" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_AdditionalLogin"
                                            Display="None" SetFocusOnError="True" ValidationGroup="AdditionalLogins"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true" ShowSummary="false"
                                    ValidationGroup="AdditionalLogins" HeaderText="<%$ Resources:Content,EM000001%>" CssClass="btn btn-primary" />
                                <asp:Button ID="Btn_AdditionalLogins" ValidationGroup="AdditionalLogins" CausesValidation="true"
                                    runat="server" Text="<%$ Resources:Content,GN0000659%>" CssClass="btn btn-primary" />
                            </div>
                        </div>
                    </div>
                </div>
                <br />

                <div class="card" id="Div_2FA" runat="server" visible="false">
                    <div class="header">
                        <h3>
                            <asp:Literal ID="Literal24" runat="server" Text="<%$ Resources:Content,DevicesYouTrust%>" /></h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Literal ID="Ltrl_RevokeDevicesNote" runat="server" Text="<%$ Resources:Content,RevokeDevicesNote%>"></asp:Literal>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_RevokeAll" runat="server"
                                    Text="<%$ Resources:Content,RevokeAll%>" CssClass="btn btn-primary" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender4.ClientID%>');
    </script>
</asp:Content>

