Fields(); $actions = $this->Actions(); $email = $fields->fieldByName('Email'); if ($email) { $email ->setAttribute('placeholder', 'your@email.com') ->setAttribute('autocomplete', 'email') ->setAttribute('type', 'email'); } $pass = $fields->fieldByName('Password'); if ($pass) { //$pass->setAttribute('autocomplete', 'current-password'); $pass->setAttribute('placeholder', '**********'); $pass->setAutofocus(true); } $btn = $actions->fieldByName('action_doLogin'); if ($btn) { $btn->setUseButtonTag(true); $btn->setButtonContent(' '.$btn->Title()); $btn->addExtraClass('btn-lg'); } if (self::config()->get('enable_captcha') && Director::isLive()) { $this->enableSpamProtection(); } } }