<% if not $CurrentMember.ChangePasswordRequired %>
    <% include AccountPage_SideNav %>
<% end_if %>

<% with $ChangePasswordForm %>
    <form {$FormAttributes} novalidate>
        <% if $Message %>
            <p class="{$MessageType}">{$Message}</p>
        <% end_if %>

        <div>
            <% with $Fields.dataFieldByName('CurrentPassword') %>
                <label for="{$ID}">{$Title}</label>
                <input type="password" name="{$Name}" id="{$ID}" value="{$Value}"/>
                <% if $Message %>
                    <div class="{$MessageType}">{$Message}</div>
                <% end_if %>
            <% end_with %>
        </div>

        <div>
            <% with $Fields.dataFieldByName('Password') %>
                <label for="{$ID}">{$Title}</label>
                <input type="password" name="{$Name}" id="{$ID}" value="{$Value}"/>
                <% if $Message %>
                    <div class="{$MessageType}">{$Message}</div>
                <% end_if %>
            <% end_with %>
        </div>

        <div>
            <% with $Fields.dataFieldByName('ConfirmPassword') %>
                <label for="{$ID}">{$Title}</label>
                <input type="password" name="{$Name}" id="{$ID}" value="{$Value}"/>
                <% if $Message %>
                    <div class="{$MessageType}">{$Message}</div>
                <% end_if %>
            <% end_with %>
        </div>

        <div>
            <button type="submit">Submit</button>
        </div>

        {$HiddenFields}


    </form>
<% end_with %>
