]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Form markup for Facebook Connect
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 22 May 2009 01:43:01 +0000 (01:43 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 22 May 2009 01:43:01 +0000 (01:43 +0000)
plugins/FBConnect/FBConnectAuth.php

index 906e591ea7910f2da45d696329ad93e43d098898..5399326d65a35abb317eed64a060a0e382a790c8 100644 (file)
@@ -125,34 +125,54 @@ class FBConnectauthAction extends Action
         }
 
         $this->elementStart('form', array('method' => 'post',
-                                          'id' => 'account_connect',
+                                          'id' => 'form_facebook_account_connect',
+                                          'class' => 'form_settings',
                                           'action' => common_local_url('FBConnectAuth')));
+        $this->elementStart('fieldset');
         $this->hidden('token', common_session_token());
-        $this->element('h2', null,
+        $this->element('legend', null,
                        _('Create new account'));
         $this->element('p', null,
                        _('Create a new user with this nickname.'));
+        $this->elementStart('ul', 'form_data');
+        $this->elementStart('li');
         $this->input('newname', _('New nickname'),
                      ($this->username) ? $this->username : '',
                      _('1-64 lowercase letters or numbers, no punctuation or spaces'));
-        $this->elementStart('p');
+        $this->elementEnd('li');
+        $this->elementStart('li');
         $this->element('input', array('type' => 'checkbox',
                                       'id' => 'license',
+                                      'class' => 'checkbox',
                                       'name' => 'license',
                                       'value' => 'true'));
+        $this->elementStart('label', array('class' => 'checkbox', 'for' => 'license'));
         $this->text(_('My text and files are available under '));
         $this->element('a', array('href' => common_config('license', 'url')),
                        common_config('license', 'title'));
         $this->text(_(' except this private data: password, email address, IM address, phone number.'));
-        $this->elementEnd('p');
+        $this->elementEnd('label');
+        $this->elementEnd('li');
+        $this->elementEnd('ul');
         $this->submit('create', _('Create'));
-        $this->element('h2', null,
+        $this->elementEnd('fieldset');
+
+        $this->elementStart('fieldset');
+        $this->element('legend', null,
                        _('Connect existing account'));
         $this->element('p', null,
                        _('If you already have an account, login with your username and password to connect it to your Facebook.'));
+
+        $this->elementStart('ul', 'form_data');
+        $this->elementStart('li');
         $this->input('nickname', _('Existing nickname'));
+        $this->elementEnd('li');
+        $this->elementStart('li');
         $this->password('password', _('Password'));
+        $this->elementEnd('li');
+        $this->elementEnd('ul');
         $this->submit('connect', _('Connect'));
+        $this->elementEnd('fieldset');
         $this->elementEnd('form');
     }