summaryrefslogtreecommitdiff
path: root/actions/register.php
diff options
context:
space:
mode:
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();
}