diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-03-19 03:30:40 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-03-19 03:30:40 +0300 |
commit | 83ffd7749e726b91f38abc31fb81c20f61054ab2 (patch) | |
tree | d6c74c5aa39651845907c98f8bf9d4f9912f1c55 /plugins/Login/Form.php | |
parent | 55d8a3ad0bcb68a5c0da0c0b81c873d3d317b41e (diff) |
- new login screen design (thanks wordpress 2.5!!)
- misc changes
- plugins can now be loaded by default all the time (ex. Home, AdminHome, PluginsAdmin)
- improved admin design
Diffstat (limited to 'plugins/Login/Form.php')
-rw-r--r-- | plugins/Login/Form.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/Login/Form.php b/plugins/Login/Form.php index 3449a95ba5..44276f356e 100644 --- a/plugins/Login/Form.php +++ b/plugins/Login/Form.php @@ -20,6 +20,8 @@ class Piwik_Login_Form extends Piwik_Form function __construct() { parent::__construct(); + // reset + $this->updateAttributes('id="loginform" name="loginform"'); } function init() @@ -33,20 +35,19 @@ class Piwik_Login_Form extends Piwik_Form } $formElements = array( - array('text', 'form_login', 'login:'), - array('password', 'form_password', 'pass:'), + array('text', 'form_login', _('Login_login')), + array('password', 'form_password', _('Login_password')), array('hidden', 'form_url', $urlToGoAfter), ); $this->addElements( $formElements ); $formRules = array( - array('form_login', sprintf('%s required', 'login'), 'required'), - array('form_password', sprintf('%s required', 'password'), 'required'), + array('form_login', sprintf(_('General_Required'), 'login'), 'required'), + array('form_password', sprintf(_('General_Required'), 'password'), 'required'), ); $this->addRules( $formRules ); - $this->addElement('submit', 'submit', 'Go!'); - $this->addElement('submit', 'back', 'Cancel'); + $this->addElement('submit', 'submit', _('Login_Go')); } |