public function ChangePasswordForm()
    {
        $form = ChangePasswordForm::create($this, "ChangePasswordForm");

        $form
            ->Actions()
            ->find("name", "action_doChangePassword")
            ->addExtraClass("btn")
            ->addExtraClass("btn-green");

        $cancel_btn = LiteralField::create(
            "CancelLink",
            '<a href="' . $this->Link() . '" class="btn btn-red">'. _t("Users.CANCEL", "Cancel") .'</a>'
        );

        $form
            ->Actions()
            ->insertBefore($cancel_btn, "action_doChangePassword");

        $this->extend("updateChangePasswordForm", $form);

        return $form;
    }
public function ChangePasswordForm()
    {
        $form = ChangePasswordForm::create($this, "ChangePasswordForm");

        $form
            ->Actions()
            ->find("name", "action_doChangePassword")
            ->addExtraClass("btn")
            ->addExtraClass("btn-green");

        $cancel_btn = LiteralField::create(
            "CancelLink",
            '<a href="' . $this->Link() . '" class="btn btn-red">'. _t("Users.CANCEL", "Cancel") .'</a>'
        );

        $form
            ->Actions()
            ->insertBefore($cancel_btn, "action_doChangePassword");

        $this->extend("updateChangePasswordForm", $form);

        return $form;
    }
public function ChangePasswordForm ( ) { $ form = ChangePasswordForm :: create ( $ this , "ChangePasswordForm" ) ; $ form -> Actions ( ) -> find ( "name" , "action_doChangePassword" ) -> addExtraClass ( "btn" ) -> addExtraClass ( "btn-green" ) ; $ cancel_btn = LiteralField :: create ( "CancelLink" , '<a href="' . $ this -> Link ( ) . '" class="btn btn-red">' . _t ( "Users.CANCEL" , "Cancel" ) . '</a>' ) ; $ form -> Actions ( ) -> insertBefore ( $ cancel_btn , "action_doChangePassword" ) ; $ this -> extend ( "updateChangePasswordForm" , $ form ) ; return $ form ; }
Factory for generating a change password form. The form can be expanded
using an extension class and calling the updateChangePasswordForm method.

@return Form
Factory for generating a change password form . The form can be expanded using an extension class and calling the updateChangePasswordForm method .