<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      lang="en"
      metal:use-macro="context/prefs_main_template/macros/master"
      i18n:domain="plone">

<body>

<metal:main fill-slot="prefs_configlet_main">

    <h1 class="documentFirstHeading"
        i18n:translate="heading_change_password_for">
        Change password for <span tal:content="user/getUserName" tal:omit-tag="" i18n:name="user">user</span>
    </h1>
    
    <div id="content-core">
        <a href=""
           class="link-parent"
           tal:attributes="href string:${context/@@plone_portal_state/navigation_root_url}/dashboard"
           i18n:translate="label_to_dashboard">
            Up to my dashboard
        </a>
        <form action="plone_change_password"
              class="enableAutoFocus enableUnloadProtection"
              name="change_password"
              method="post">
          
            <fieldset>
                <legend i18n:translate="legend_password_details">Password Details</legend>

                <div class="field">
                    <label for="current" i18n:translate="label_current_password">Current password</label>
    
                    <div class="formHelp" i18n:translate="help_current_password">
                    Enter your current password.
                    </div>
    
                    <input type="password"
                           id="current"
                           name="current"
                           size="10"
                           />
                </div>

                <div class="field">
                    <label for="password" i18n:translate="label_new_password">New password</label>

                    <div class="formHelp" i18n:translate="help_new_password">
                    Enter your new password. Minimum 5 characters.
                    </div>

                    <input type="password"
                           id="password"
                           name="password"
                           size="10"
                           />
                </div>
    
                <div class="field">
                    <label for="password_confirm" i18n:translate="label_confirm_password">Confirm password</label>
                
                    <div class="formHelp" i18n:translate="help_confirm_password">
                    Re-enter the password. Make sure the passwords are identical.
                    </div>

                    <input type="password"
                           id="password_confirm"
                           name="password_confirm"
                           size="10"
                           />
                </div>
    
                <div class="formControls">
                    <input class="context"
                           type="submit"
                           value="Change Password"
                           i18n:attributes="value label_change_password;"
                           />
                    <input class="standalone"
                           type="submit"
                           name="cancel"
                           value="Cancel"
                           i18n:attributes="value label_cancel;"
                           />
                </div>

                <input tal:replace="structure context/@@authenticator/authenticator" />

            </fieldset>
        </form>
    </div>

</metal:main>

</body>
</html>
