<?php
namespace Modules\Admin\UserProfile\PasswordChange; class View_Utils_FormAdmin extends \App\Mvc\View_Utils_FormAbstract { public function getForm() { $form = \Engine\Form\General::create(); $passwordFieldset = new \Engine\Form\Container\Fieldset($this->lang['index']['fieldset']['passwordFieldset']); $form->addContainer($passwordFieldset); $oldPassword = new \Engine\Form\Input\Password($this->lang['index']['formFields']['oldPassword'], 'oldPassword', ''); $passwordFieldset->addElement($oldPassword); $newPassword = new \Engine\Form\Input\Password($this->lang['index']['formFields']['newPassword'], 'newPassword', ''); $passwordFieldset->addElement($newPassword); $confirmPassword = new \Engine\Form\Input\Password($this->lang['index']['formFields']['confirmPassword'], 'confirmPassword', ''); $passwordFieldset->addElement($confirmPassword); $form->addElement(new \Engine\Form\Input\Hidden(null, 'token', $this->values['token'])); $form->addElement(new \Engine\Form\Input\Hidden('', $this->submitButtonName, 1)); return $form; } }