]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Facebook Connect account setup markup and CSS rearrangement for
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 22 May 2009 01:53:58 +0000 (01:53 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 22 May 2009 01:53:58 +0000 (01:53 +0000)
license information (it comes before and applies to both connection
options)

plugins/FBConnect/FBConnectAuth.php
plugins/FBConnect/FBConnectPlugin.css

index 5399326d65a35abb317eed64a060a0e382a790c8..233eb83ab3fbcf57c72657a877f47a7245d17a5f 100644 (file)
@@ -125,22 +125,13 @@ class FBConnectauthAction extends Action
         }
 
         $this->elementStart('form', array('method' => 'post',
-                                          'id' => 'form_facebook_account_connect',
+                                          'id' => 'form_settings_facebook_connect',
                                           'class' => 'form_settings',
                                           'action' => common_local_url('FBConnectAuth')));
-        $this->elementStart('fieldset');
-        $this->hidden('token', common_session_token());
-        $this->element('legend', null,
-                       _('Create new account'));
-        $this->element('p', null,
-                       _('Create a new user with this nickname.'));
+        $this->elementStart('fieldset', array('id' => 'settings_facebook_connect_options'));
+        $this->element('legend', null, _('Connection options'));
         $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->elementEnd('li');
-        $this->elementStart('li');
         $this->element('input', array('type' => 'checkbox',
                                       'id' => 'license',
                                       'class' => 'checkbox',
@@ -154,6 +145,20 @@ class FBConnectauthAction extends Action
         $this->elementEnd('label');
         $this->elementEnd('li');
         $this->elementEnd('ul');
+
+        $this->elementStart('fieldset');
+        $this->hidden('token', common_session_token());
+        $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->elementEnd('li');
+        $this->elementEnd('ul');
         $this->submit('create', _('Create'));
         $this->elementEnd('fieldset');
 
@@ -162,7 +167,6 @@ class FBConnectauthAction extends Action
                        _('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'));
@@ -172,6 +176,8 @@ class FBConnectauthAction extends Action
         $this->elementEnd('li');
         $this->elementEnd('ul');
         $this->submit('connect', _('Connect'));
+        $this->elementEnd('fieldset');
+
         $this->elementEnd('fieldset');
         $this->elementEnd('form');
     }
index a16fb4edbcd3edac70c1a702a069c30805172deb..564fdaee9e44e0eb550ff8c4f3749f50aceda494 100644 (file)
@@ -28,3 +28,10 @@ top:-13px;
 left:-11px;
 display:inline;
 }
+
+#settings_facebook_connect_options legend {
+display:none;
+}
+#form_settings_facebook_connect fieldset fieldset legend {
+display:block;
+}