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

<%@ 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" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<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" runat="server">
                        <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="Literal72" runat="server" Text="<%$ Resources:Content,GN0000491%>"
                                    EnableViewState="false" /><%--Email--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">

                                <asp:Label ID="TxBx_CEmail" runat="server">
                                </asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal58" runat="server" Text="<%$ Resources:Content,GN00001132%>"
                                                EnableViewState="false" /><%--First Name--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactFName" runat="server" MaxLength="60">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_ContactName" runat="server" ControlToValidate="TxBx_ContactFName"
                                            Display="None" SetFocusOnError="True" ValidationGroup="AddContact">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal60" runat="server" Text="<%$ Resources:Content,GN00001133%>"
                                                EnableViewState="false" /><%--Last Name--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactLName" runat="server" MaxLength="60">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_LName" runat="server" ControlToValidate="TxBx_ContactLName"
                                            Display="None" SetFocusOnError="True" ValidationGroup="AddContact">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%--Address1--%>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_CName" runat="server" Text="*" EnableViewState="false" />
                                <asp:Literal ID="Ltl_AddresC" runat="server" Text="<%$ Resources:Content,GN0000878%>"
                                    EnableViewState="false" /><%--Address1--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactAddress" runat="server" MaxLength="60">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_CName" runat="server" ControlToValidate="TxBx_ContactAddress"
                                            ValidationGroup="AddContact" SetFocusOnError="true" Display="none"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%--Address2--%>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Ltl_Addres2C" runat="server" Text="<%$ Resources:Content,GN00001136%>"
                                    EnableViewState="false" /><%--Address2--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactAddress2" 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="Literal70" runat="server" Text="<%$ Resources:Content,GN0000880%>"
                                                EnableViewState="false" /><%--City--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_CCity" runat="server" MaxLength="60">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_CCity" runat="server" ControlToValidate="TxBx_CCity"
                                            Display="None" SetFocusOnError="True" ValidationGroup="AddContact">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%--State--%>
                        <div class="row" id="TR_CState" runat="server" style="display: none">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal89" runat="server" Text="<%$ Resources:Content,DEV1130%>"
                                                EnableViewState="false" />
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_CState" runat="server" AutoPostBack="True">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <%--Province--%>
                        <div class="row" id="TR_CProvince" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal91" runat="server" Text="<%$ Resources:Content,GN00001313%>"
                                                EnableViewState="false" />
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactProvince" runat="server" MaxLength="60">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RFV_ContactProvince" runat="server" Display="None"
                                            SetFocusOnError="True" ValidationGroup="AddContact" ControlToValidate="TxBx_ContactProvince">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal94" runat="server" Text="<%$ Resources:Content,GN00001522%>"
                                                EnableViewState="false" />
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactZip" runat="server" MaxLength="10">
                                        </asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" TargetControlID="TxBx_ContactZip"
                                            FilterType="LowercaseLetters,Numbers,UppercaseLetters,Custom" ValidChars="- ">
                                        </EM:FilteredTextBoxExtender>
                                        <asp:RequiredFieldValidator ID="RFV_Zip" runat="server" Display="None" SetFocusOnError="True"
                                            ValidationGroup="AddContact" ControlToValidate="TxBx_ContactZip">
                                        </asp:RequiredFieldValidator>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal76" runat="server" Text="<%$ Resources:Content,GN0000882%>"
                                                EnableViewState="false" /><%--Country--%>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_CCountry" AutoPostBack="true" runat="server"></asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                *
                                            <asp:Literal ID="Literal69" runat="server" Text="<%$ Resources:Content,GN00012%>"
                                                EnableViewState="false" />
                            </div>
                            <div class="width-country-code col-xs-4">
                                (<div class="form-group display-countryCode-input">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_CCountryCode" MaxLength="3" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                )
                                
                                                                    <asp:RegularExpressionValidator ID="REV_CCountryCode" runat="server" Display="None"
                                                                        ControlToValidate="TxBx_CCountryCode" ErrorMessage="<%$Resources:Content,DEV1053%>"
                                                                        ValidationExpression="[0-9]{1,3}" ValidationGroup="AddContact" SetFocusOnError='true'>
                                                                    </asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RFV_CCountryCode" runat="server" ControlToValidate="TxBx_CCountryCode"
                                    Display="None" SetFocusOnError="True" ValidationGroup="AddContact">
                                </asp:RequiredFieldValidator>
                            </div>
                            <div class="width-country-input col-xs-8 p-l-0">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactPhone" runat="server" MaxLength="20">
                                        </asp:TextBox>
                                    </div>
                                </div>
                                <asp:RequiredFieldValidator ID="RFV_Phone" runat="server" ControlToValidate="TxBx_ContactPhone"
                                    Display="None" SetFocusOnError="True" ValidationGroup="AddContact">
                                </asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110070%>'
                                    ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_ContactPhone"
                                    Display="None" SetFocusOnError="True" ValidationExpression="(^[+]|[-0-9]){5,20}"
                                    ValidationGroup="AddContact">
                                </asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <%--Mobile--%>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal92" runat="server" Text="<%$ Resources:Content,GN00001524%>"
                                    EnableViewState="false" />
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactMobile" runat="server" MaxLength="20">
                                        </asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="TxBx_ContactMobile"
                                            FilterType="Numbers,Custom" ValidChars="0123456789">
                                        </EM:FilteredTextBoxExtender>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%--Fax--%>
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Literal93" runat="server" Text="<%$ Resources:Content,GN0000886%>"
                                    EnableViewState="false" />
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_ContactFax" runat="server" MaxLength="20">
                                        </asp:TextBox>
                                        <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" TargetControlID="TxBx_ContactFax"
                                            FilterType="Numbers,Custom" ValidChars="+-() ">
                                        </EM:FilteredTextBoxExtender>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <%--Password--%>
                        <%--<div class="row" runat="server" id="tr_CPassword" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal74" runat="server" Text="<%$ Resources:Content,GN0000569%>"
                                EnableViewState="false" />
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_CPassword" runat="server" MaxLength="60" TextMode="Password">
                                    </asp:TextBox>
                                </div>
                            </div>
                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>" CausesValidation="false"
                                TabIndex="-1"></asp:LinkButton>
                        </div>
                    </div>--%>
                        <%--Confirm Password--%>
                        <%--<div class="row" runat="server" id="tr_CCPassword" visible="false">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal75" runat="server" Text="<%$ Resources:Content,GN0001196%>"
                                EnableViewState="false" />
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_CCPassword" runat="server" MaxLength="60" TextMode="Password">
                                    </asp:TextBox>
                                    <asp:CompareValidator ID="CV_Contactpassword" ControlToValidate="TxBx_CPassword"
                                        ControlToCompare="TxBx_CCPassword" runat="server" Display="none" ErrorMessage='<%$ Resources:Content,DGN1110005 %>'
                                        ValidationGroup="AddContact"></asp:CompareValidator>
                                </div>
                            </div>
                        </div>
                    </div>--%>
                        <div class="row" runat="server" visible="false">
                            <div class="col-sm-3 col-xs-12 row-label">

                                <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,String199%>" EnableViewState="false" />

                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_AccessTemplate" runat="server"></asp:DropDownList>
                                </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 waves-effect" ID="Btn_EditContact" runat="server" Text='<%$ Resources:Content, GN0000281%>' ValidationGroup="AddContact" /><%--Text='<%$ Resources:Content,GN0000281 %>'--%>
                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_CancelContact" CausesValidation="false"
                                    runat="server" Text='<%$ Resources:Content,GN0000572 %>' />
                                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="AddContact" HeaderText="<%$ Resources:Content,EM000001 %>"
                                    runat="server" ShowSummary="false" ShowMessageBox="true" />
                            </div>
                        </div>
                    </div>
                </div>
                <br />
                <div class="card" id="Div_AdditionalLogins" runat="server" visible="false">
                    <div class="header">
                        <h3>
                            <asp:Literal ID="Literal14" 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" 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('<%=FilteredTextBoxExtender8.ClientID%>'); 
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>'); 
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender6.ClientID%>'); 
    </script>
</asp:Content>

