From fc89006e562da6a08f98bab9e655ace98f5b2572 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 18 Apr 2011 10:52:57 -0400 Subject: [PATCH] better output for registration confirmation --- .../confirmregistrationform.php | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/plugins/EmailRegistration/confirmregistrationform.php b/plugins/EmailRegistration/confirmregistrationform.php index d0e1b82591..8061a78815 100644 --- a/plugins/EmailRegistration/confirmregistrationform.php +++ b/plugins/EmailRegistration/confirmregistrationform.php @@ -62,12 +62,36 @@ class ConfirmRegistrationForm extends Form function formData() { $this->out->element('p', 'instructions', - sprintf(_('Enter a password to confirm your account.'))); + sprintf(_('Enter a password to confirm your new account.'))); $this->hidden('code', $this->code); $this->out->elementStart('ul', 'form_data'); + $this->elementStart('li'); + + $this->element('label', array('for' => 'nickname-ignore'), _('User name')); + + $this->element('input', array('name' => 'nickname-ignore', + 'type' => 'text', + 'id' => 'nickname-ignore', + 'disabled' => 'true', + 'value' => $this->nickname)); + + $this->elementEnd('li'); + + $this->elementStart('li'); + + $this->element('label', array('for' => 'email-ignore'), _('Email')); + + $this->element('input', array('name' => 'email-ignore', + 'type' => 'text', + 'id' => 'email-ignore', + 'disabled' => 'true', + 'value' => $this->email)); + + $this->elementEnd('li'); + $this->elementStart('li'); // TRANS: Field label on account registration page. $this->password('password', _('Password'), @@ -96,8 +120,8 @@ class ConfirmRegistrationForm extends Form $this->raw(sprintf(_('I agree to the Terms of service and '. 'Privacy policy of this site.'), - common_local_url('doc', 'tos'), - common_local_url('doc', 'privacy'))); + common_local_url('doc', array('title' => 'tos')), + common_local_url('doc', array('title' => 'privacy')))); $this->elementEnd('label');