]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup login form
authorEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 19:01:42 +0000 (15:01 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 19:01:42 +0000 (15:01 -0400)
darcs-hash:20080517190142-84dde-ec4cc3dc256c2daca29ffe6710507188829f04ba.gz

actions/login.php
actions/register.php

index 4795dfdbd64939a5a1ca800e322ebde224c66122..60c95343f0ce4f717d7eec9ce0b82694e01fc5a9 100644 (file)
@@ -56,11 +56,11 @@ class LoginAction extends Action {
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'login',
                                                                                   'action' => common_local_url('login')));
-               common_element('label', array('for' => 'username'),
+               common_element('label', array('for' => 'nickname'),
                                           _t('Name'));
-               common_element('input', array('name' => 'username',
+               common_element('input', array('name' => 'nickname',
                                                                          'type' => 'text',
-                                                                         'id' => 'username'));
+                                                                         'id' => 'nickname'));
                common_element('label', array('for' => 'password'),
                                           _t('Password'));
                common_element('input', array('name' => 'password',
@@ -68,12 +68,12 @@ class LoginAction extends Action {
                                                                          'id' => 'password'));
                common_element('input', array('name' => 'submit',
                                                                          'type' => 'submit',
-                                                                         'id' => 'submit'),
-                                          _t('Login'));
+                                                                         'id' => 'submit',
+                                                                         'value' => _t('Login')));
                common_element('input', array('name' => 'cancel',
                                                                          'type' => 'button',
-                                                                         'id' => 'cancel'),
-                                          _t('Cancel'));
+                                                                         'id' => 'cancel',
+                                                                         'value' => _t('Cancel')));
                common_element_end('form');
        }
 }
index a6cdbb51b9c37aec076c6a701cee4626d7d91dbe..29a7a70f7e103f8850661e7c166abf3e7e34382d 100644 (file)
@@ -125,7 +125,7 @@ class RegisterAction extends Action {
                common_element('input', array('name' => 'submit',
                                                                          'type' => 'submit',
                                                                          'id' => 'submit',
-                                                                         'value' => _t('Login')));
+                                                                         'value' => _t('Register')));
                common_element('input', array('name' => 'cancel',
                                                                          'type' => 'button',
                                                                          'id' => 'cancel',