summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-20 05:48:05 +0000
committerSarven Capadisli <csarven@status.net>2009-11-20 05:48:05 +0000
commit501170f3cf8497496110d8c993f69d3ba0792fb1 (patch)
tree796d4314a0a8c36e69ab52c4e3bcbb60bf57262a /plugins
parent512445e641b696962a9d5fb2de4147270545a13a (diff)
Updated form markup
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OpenID/finishopenidlogin.php28
1 files changed, 24 insertions, 4 deletions
diff --git a/plugins/OpenID/finishopenidlogin.php b/plugins/OpenID/finishopenidlogin.php
index ff0b451d3..e5551b412 100644
--- a/plugins/OpenID/finishopenidlogin.php
+++ b/plugins/OpenID/finishopenidlogin.php
@@ -89,33 +89,53 @@ class FinishopenidloginAction extends Action
$this->elementStart('form', array('method' => 'post',
'id' => 'account_connect',
+ 'class' => 'form_settings',
'action' => common_local_url('finishopenidlogin')));
$this->hidden('token', common_session_token());
- $this->element('h2', null,
+ $this->elementStart('fieldset', array('id' => 'form_openid_createaccount'));
+ $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('for' => 'license',
+ 'class' => 'checkbox'));
$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', array('id' => 'form_openid_createaccount'));
+ $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 OpenID.'));
+ $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');
}