<%@ Page Title="Profile" Language="C#" MasterPageFile="~/2ColMaster.Master" AutoEventWireup="true"
    CodeBehind="Profile.aspx.cs" Inherits="ProcessDefinition.Auth.Profile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
    <asp:Panel runat="server" ID="pnlUsingLdap">
        <p class="hBlurb ui-state-highlight">
            You're using LDAP to authenticate user access, you can't edit these settings here.
        </p>
    </asp:Panel>
    <dp:UserNameControl ID="userName" runat="server" />
    <dp:ChangeEmailUsername ID="email" runat="server" />
    <asp:ChangePassword ID="pwd" runat="server" SuccessTitleText="" SuccessText="Your password has been changed"
        CancelButtonStyle-CssClass="noShow" ContinueButtonStyle-CssClass="noShow" TitleTextStyle-CssClass="noShow"
        ChangePasswordButtonStyle-CssClass="ui-corner-all ui-state-default dpButton"
        LabelStyle-HorizontalAlign="Left" ConfirmNewPasswordLabelText="Confirm:" FailureTextStyle-CssClass="error"
        ChangePasswordFailureText='Password incorrect or New Password invalid.<br/>New Passwords must be at least 6 characters long.' />
    <asp:Panel ID="pnlDisplayProfile" runat="server">
        <asp:Label ID="lblProfile" runat="server" Text="Profile:" AssociatedControlID="txtDisplayProfile" />
        <asp:Label ID="txtDisplayProfile" runat="server" CssClass="profileText" />
        <br />
        <asp:Label ID="lblSendNotifications" runat="server" Text="Send notifications:" AssociatedControlID="chkSendNotifications" />
        <asp:CheckBox ID="chkSendNotifications" runat="server" Enabled="false"  Text="" />
        <br />
        <asp:Button ID="btnEditProfile" runat="server" Text="Edit profile" CssClass="dpButton"
            OnClick="btnEditProfile_Click" />
    </asp:Panel>
    <asp:Panel ID="pnlEditProfile" runat="server" Visible="false">
        <asp:Label ID="lblEditProfile" runat="server" Text="Profile:" AssociatedControlID="txtProfile" />
        <asp:TextBox ID="txtProfile" runat="server" TextMode="MultiLine" Rows="10" Columns="50" />
        <br />
        <asp:CheckBox ID="chkSendNotificationsEdit" runat="server" Text="Send notifications:"/>
        <br />
        <asp:Button ID="btnUpdateProfile" runat="server" Text="Update profile" CssClass="dpButton"
            OnClick="btnUpdateProfile_Click" />
    </asp:Panel>
    <asp:Panel ID="pnlThanks" runat="server" CssClass="ui-state-highlight updatedProfileInfo ui-corner-all"
        Visible="false">
        <p>
            <span class="ui-icon ui-icon-info" style="float: left;"></span>Your profile has been updated.</p>
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentOptions" runat="server">
    <ul class='ui-widget-content'>
        <li class="btn"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span><a href="..">
            Back to library</a></li>
    </ul>
</asp:Content>
