diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-05-22 01:53:58 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-05-22 01:53:58 +0000 |
commit | 0b9c65ce4fca26be3f8c3048a67aad2744c7b17a (patch) | |
tree | 3910b96c5bd210fc91c0ba8c5c01c5b68c60ca00 /plugins | |
parent | 5b1ba5619c29c74d263b48ed0daaacdad13a976d (diff) |
Facebook Connect account setup markup and CSS rearrangement for
license information (it comes before and applies to both connection
options)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/FBConnect/FBConnectAuth.php | 32 | ||||
-rw-r--r-- | plugins/FBConnect/FBConnectPlugin.css | 7 |
2 files changed, 26 insertions, 13 deletions
diff --git a/plugins/FBConnect/FBConnectAuth.php b/plugins/FBConnect/FBConnectAuth.php index 5399326d6..233eb83ab 100644 --- a/plugins/FBConnect/FBConnectAuth.php +++ b/plugins/FBConnect/FBConnectAuth.php @@ -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')); @@ -173,6 +177,8 @@ class FBConnectauthAction extends Action $this->elementEnd('ul'); $this->submit('connect', _('Connect')); $this->elementEnd('fieldset'); + + $this->elementEnd('fieldset'); $this->elementEnd('form'); } diff --git a/plugins/FBConnect/FBConnectPlugin.css b/plugins/FBConnect/FBConnectPlugin.css index a16fb4edb..564fdaee9 100644 --- a/plugins/FBConnect/FBConnectPlugin.css +++ b/plugins/FBConnect/FBConnectPlugin.css @@ -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; +} |