<%@ Page Language="C#" MasterPageFile="~/UGCCNG.Master" AutoEventWireup="true" CodeBehind="chngpw.aspx.cs" Inherits="UGCC_Sharp.chngpw_n" Title="My Profile" ValidateRequest="false" meta:resourcekey="PageResource1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel panel-default">
        <div class="panel-heading">
            Account
        </div>
        <div class="panel-body">
            <div class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        <asp:Localize ID="Localize1" runat="server" Text="Current email address:"
                            meta:resourcekey="Localize1Resource1"></asp:Localize></label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="txtEmail" runat="server" CssClass="form-control" ReadOnly="True"
                            meta:resourcekey="txtEmailResource1"></asp:TextBox>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        Update email
                    </label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="txtNewEmail" runat="server" CssClass="form-control"
                            CausesValidation="True"></asp:TextBox>
                        <span class="help-block">
                            <asp:Localize ID="lcl3" runat="server" meta:resourcekey="Localize2Resource1"></asp:Localize>.</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        <asp:Localize ID="Localize2" runat="server" Text="Two factor authentication:"
                            meta:resourcekey="Localize7Resource1"></asp:Localize></label>
                    <div class="col-sm-9">
                        <a href="tfa.aspx">Manage TFA</a>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        <asp:Localize ID="Localize4" runat="server" Text="Current password"
                            meta:resourcekey="Localize4Resource1"></asp:Localize></label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="TextBox1" runat="server" CssClass="form-control" TextMode="Password"
                            ToolTip="Enter current password" meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                        <span class="help-block">
                            <asp:Localize ID="Localize3" runat="server"
                                Text="To change your password, enter your current password and your new password."
                                meta:resourcekey="Localize3Resource1"></asp:Localize>
                        </span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        <asp:Localize ID="Localize5" runat="server" Text="New password:"
                            meta:resourcekey="Localize5Resource1"></asp:Localize></label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="TextBox2" runat="server" CssClass="form-control" TextMode="Password"
                            ToolTip="Enter new password" meta:resourcekey="TextBox2Resource1"></asp:TextBox>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        <asp:Localize ID="Localize6" runat="server" Text="Verify password:"
                            meta:resourcekey="Localize6Resource1"></asp:Localize></label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="TextBox3" runat="server" CssClass="form-control" TextMode="Password"
                            ToolTip="Confirm new password" meta:resourcekey="TextBox3Resource1"></asp:TextBox>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        <asp:Localize ID="Localize8" runat="server"
                            Text="Timezone"></asp:Localize>
                    </label>
                    <div class="col-sm-9">
                        <asp:DropDownList ID="ddlTz" runat="server" CssClass="form-control"></asp:DropDownList>
                    </div>
                </div>
                <p style="text-align: center">
                    <span>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1"
                            runat="server" ControlToValidate="txtNewEmail"
                            ErrorMessage="RegularExpressionValidator"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            meta:resourcekey="RegularExpressionValidator1Resource1"
                            Text="Not a valid email address"></asp:RegularExpressionValidator></span>
                </p>
            </div>
        </div>
    </div>
    <div class="panel panel-default" runat="server" id="div1">
        <div class="panel-heading">
            Steam Info
        </div>
        <div class="panel-body">
            <div class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        Steam user name
                    </label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="txtSteamun" runat="server" CssClass="form-control"></asp:TextBox>
                        <span class="help-block">Some features such as steam updates and steam workshop mod installations may require your steam user name and password to update and install properly, enter your steam user name.  Steam guard needs to be disabled.</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        Steam password
                    </label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="txtSteampw" runat="server" CssClass="form-control" TextMode="Password"></asp:TextBox>
                        <span class="help-block">If empty no password has been set.</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">
                        Steam password (verify)
                    </label>
                    <div class="col-sm-9">
                        <asp:TextBox ID="txtSteampwv" runat="server" CssClass="form-control" TextMode="Password"></asp:TextBox>
                        <span class="help-block">To change or set your steam password, enter it above and here to verify it was typed correctly.</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default" runat="server" id="divUserTheme">
        <div class="panel-heading">
            Theme
        </div>
        <div class="panel-body">
            <div class="input-group">
                <asp:DropDownList ID="ddlThemes" runat="server" CssClass="form-control">
                </asp:DropDownList>
                <div class="input-group-btn">
                    <asp:Button ID="btnPreview" runat="server" CssClass="btn btn-info" Text="Preview" OnClick="btnPreview_Click" />
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            Options
        </div>
        <div class="panel-body">
            <div class="checkbox">
                <label>
                    <asp:CheckBox ID="chkDisableQry" runat="server" meta:resourcekey="chkDisableQryResource1" />
                </label>
            </div>
        </div>
    </div>
    <div id="lblError" runat="server"></div>
    <br />
    <br />
    <asp:Button ID="btnSave" runat="server" CssClass="btn btn-primary"
        OnClick="btnSave_Click" Text="Save" meta:resourcekey="btnSaveResource1" />
</asp:Content>