From 6f6aed821387075de8c22da55c5620c04cda0dc1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 May 2008 13:47:59 -0400 Subject: better forms for new theme darcs-hash:20080520174759-84dde-7206aeef3246b2304d463b121a6b17c7f3f2f6d5.gz --- actions/register.php | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) (limited to 'actions/register.php') 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(); } -- cgit v1.2.3-54-g00ecf