]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
better output for registration confirmation
authorEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 14:52:57 +0000 (10:52 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 18 Apr 2011 14:52:57 +0000 (10:52 -0400)
plugins/EmailRegistration/confirmregistrationform.php

index d0e1b8259150855b643ca372d09f56c88b89c26e..8061a78815344aa5b0451b6e40e746db71905668 100644 (file)
@@ -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 <a href="%1$s">Terms of service</a> and '.
                              '<a href="%1$s">Privacy policy</a> 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');