fixup login form

darcs-hash:20080517190142-84dde-ec4cc3dc256c2daca29ffe6710507188829f04ba.gz
This commit is contained in:
Evan Prodromou 2008-05-17 15:01:42 -04:00
parent 07eb05157a
commit bb13901a50
2 changed files with 8 additions and 8 deletions

View File

@ -56,11 +56,11 @@ class LoginAction extends Action {
common_element_start('form', array('method' => 'POST', common_element_start('form', array('method' => 'POST',
'id' => 'login', 'id' => 'login',
'action' => common_local_url('login'))); 'action' => common_local_url('login')));
common_element('label', array('for' => 'username'), common_element('label', array('for' => 'nickname'),
_t('Name')); _t('Name'));
common_element('input', array('name' => 'username', common_element('input', array('name' => 'nickname',
'type' => 'text', 'type' => 'text',
'id' => 'username')); 'id' => 'nickname'));
common_element('label', array('for' => 'password'), common_element('label', array('for' => 'password'),
_t('Password')); _t('Password'));
common_element('input', array('name' => 'password', common_element('input', array('name' => 'password',
@ -68,12 +68,12 @@ class LoginAction extends Action {
'id' => 'password')); 'id' => 'password'));
common_element('input', array('name' => 'submit', common_element('input', array('name' => 'submit',
'type' => 'submit', 'type' => 'submit',
'id' => 'submit'), 'id' => 'submit',
_t('Login')); 'value' => _t('Login')));
common_element('input', array('name' => 'cancel', common_element('input', array('name' => 'cancel',
'type' => 'button', 'type' => 'button',
'id' => 'cancel'), 'id' => 'cancel',
_t('Cancel')); 'value' => _t('Cancel')));
common_element_end('form'); common_element_end('form');
} }
} }

View File

@ -125,7 +125,7 @@ class RegisterAction extends Action {
common_element('input', array('name' => 'submit', common_element('input', array('name' => 'submit',
'type' => 'submit', 'type' => 'submit',
'id' => 'submit', 'id' => 'submit',
'value' => _t('Login'))); 'value' => _t('Register')));
common_element('input', array('name' => 'cancel', common_element('input', array('name' => 'cancel',
'type' => 'button', 'type' => 'button',
'id' => 'cancel', 'id' => 'cancel',