]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/nudgeform.php
Merge branch 'queuemanager' into 0.8.x
[quix0rs-gnu-social.git] / lib / nudgeform.php
index 27ad44316110f58c1c620ffb20023457d7fc37e0..7380462a7d9d0e129f3446fed640e2bd702ed592 100644 (file)
@@ -66,7 +66,7 @@ class NudgeForm extends Form
     {
         parent::__construct($out);
 
-        $this->notice = $profile;
+        $this->profile = $profile;
     }
 
     /**
@@ -77,9 +77,22 @@ class NudgeForm extends Form
 
     function id()
     {
-        return 'nudge';
+        return 'form_user_nudge';
     }
 
+
+    /**
+     * class of the form
+     *
+     * @return string of the form class
+     */
+
+    function formClass()
+    {
+        return 'form_user_nudge';
+    }
+
+
     /**
      * Action of the form
      *
@@ -92,6 +105,18 @@ class NudgeForm extends Form
                                 array('nickname' => $this->profile->nickname));
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Nudge this user'));
+    }
+
+
     /**
      * Action elements
      *
@@ -100,6 +125,6 @@ class NudgeForm extends Form
 
     function formActions()
     {
-        $this->out->submit('submit', _('Send a nudge'));
+        $this->out->submit('submit', _('Nudge'), 'submit', null, _('Send a nudge to this user'));
     }
-}
\ No newline at end of file
+}