]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/lib/qnanewquestionform.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / QnA / lib / qnanewquestionform.php
index 114e6199a14027b9363abce34ec825123d4e98ac..a1a2a94483a4fd6916957a1c95c4647569d7cf28 100644 (file)
@@ -105,22 +105,34 @@ class QnanewquestionForm extends Form
 
         $this->li();
         $this->out->input(
-            'title',
-            _m('Title'),
+            'qna-question-title',
+            // TRANS: Field label for a new question.
+            _m('LABEL','Title'),
             $this->title,
-            _m('Title of your question')
+            // TRANS: Field title for a new question.
+            _m('The title of your question.'),
+            'title'
         );
         $this->unli();
         $this->li();
         $this->out->textarea(
-            'description',
-            _m('Description'),
+            'qna-question-description',
+            // TRANS: Field label for question details.
+            _m('LABEL','Description'),
             $this->description,
-            _m('Your question in detail')
+            // TRANS: Field title for question details.
+            _m('Your question in detail.'),
+            'description'
         );
         $this->unli();
 
         $this->out->elementEnd('ul');
+        $toWidget = new ToSelector(
+            $this->out,
+            common_current_user(),
+            null
+        );
+        $toWidget->show();
         $this->out->elementEnd('fieldset');
     }
 
@@ -132,6 +144,6 @@ class QnanewquestionForm extends Form
     function formActions()
     {
         // TRANS: Button text for saving a new question.
-        $this->out->submit('submit', _m('BUTTON', 'Save'));
+        $this->out->submit('qna-question-submit', _m('BUTTON', 'Save'), 'submit', 'submit');
     }
 }