* @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Icinga\Form\Authentication; use Icinga\Web\Form; /** * Class LoginForm */ class LoginForm extends Form { /** * Interface how the form should be created */ protected function create() { $this->addElement( 'text', 'username', array( 'label' => t('Username'), 'required' => true ) ); $this->addElement( 'password', 'password', array( 'label' => t('Password'), 'required' => true ) ); $this->addElement( 'submit', 'submit', array( 'label' => t('Login'), 'class' => 'pull-right' ) ); $this->setTokenDisabled(true); } }