summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-20 13:47:59 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-20 13:47:59 -0400
commit6f6aed821387075de8c22da55c5620c04cda0dc1 (patch)
tree8716a289525c274c03c7c1a2910fbdf465f343aa /actions/register.php
parent8e81943c2c6588be7e4c695172e757243b7a0d74 (diff)
better forms for new theme
darcs-hash:20080520174759-84dde-7206aeef3246b2304d463b121a6b17c7f3f2f6d5.gz
Diffstat (limited to 'actions/register.php')
-rw-r--r--actions/register.php33
1 files changed, 5 insertions, 28 deletions
diff --git a/actions/register.php b/actions/register.php
index fcf371d3a..f9402b98f 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -107,34 +107,11 @@ class RegisterAction extends Action {
common_element_start('form', array('method' => 'POST',
'id' => 'login',
'action' => common_local_url('register')));
- common_element('label', array('for' => 'nickname'),
- _t('Name'));
- common_element('input', array('name' => 'nickname',
- 'type' => 'text',
- 'id' => 'nickname'));
- common_element('label', array('for' => 'password'),
- _t('Password'));
- common_element('input', array('name' => 'password',
- 'type' => 'password',
- 'id' => 'password'));
- common_element('label', array('for' => 'confirm'),
- _t('Confirm'));
- common_element('input', array('name' => 'confirm',
- 'type' => 'password',
- 'id' => 'confirm'));
- common_element('label', array('for' => 'email'),
- _t('Email'));
- common_element('input', array('name' => 'email',
- 'type' => 'text',
- 'id' => 'email'));
- common_element('input', array('name' => 'submit',
- 'type' => 'submit',
- 'id' => 'submit',
- 'value' => _t('Register')));
- common_element('input', array('name' => 'cancel',
- 'type' => 'button',
- 'id' => 'cancel',
- 'value' => _t('Cancel')));
+ common_input('nickname', _t('Nickname'));
+ common_password('password', _t('Password'));
+ common_password('confirm', _t('Confirm'));
+ common_input('email', _t('Email'));
+ common_submit('submit', _t('Register'));
common_element_end('form');
common_show_footer();
}