I customize all my user views like this:

{{elif request.args(0)=='request_reset_password':}}
    <h2>Reset Password</h2>
    <div id="user_form">
        {{=form.custom.begin}}
        <p><label for="auth_user_email" id="auth_user_email__label">Email: 
</label><br>
        {{=form.custom.widget.email}}</p>
        <p><input type="submit" value="reset password" /></p>
        {{=form.custom.end}}
    </div>
{{elif request.args(0)=='change_password':}}
    <h2>Change Password</h2>
    <div id="user_form">
        {{=form.custom.begin}}
        <p><label for="email">Old Password</label><br>
        {{=form.custom.widget.old_password}}</p>
        <p><label for="password">New Password</label><br>
        {{=form.custom.widget.new_password}}</p>
        <p><label for="password">Repeat New Password</label><br>
        {{=form.custom.widget.new_password2}}</p>
        <p><input type="submit" value="save new password" /></p>
        {{=form.custom.end}}
    </div>

Reply via email to