X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmessageform.php;h=b8878ec1f9f4d95bb659edb147e1160fc5e10f11;hb=28d02ec8cdd0278c802c8fee30acddecca9ca01f;hp=eca39cc064de98445961e7a7eb137d69f8707623;hpb=4b9df58c90e25ea79aeec64c6e96f828fe06d7df;p=quix0rs-gnu-social.git diff --git a/lib/messageform.php b/lib/messageform.php index eca39cc064..b8878ec1f9 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -85,7 +85,7 @@ class MessageForm extends Form function id() { - return 'message_form'; + return 'form_notice'; } /** @@ -99,6 +99,16 @@ class MessageForm extends Form return common_local_url('newmessage'); } + /** + * Legend of the Form + * + * @return void + */ + function formLegend() + { + $this->out->element('legend', null, _('Send a direct notice')); + } + /** * Data elements * @@ -123,17 +133,13 @@ class MessageForm extends Form unset($mutual_users); $this->out->dropdown('to', _('To'), $mutual, null, false, - $this->to->id); - - $this->out->elementStart('p'); + ($this->to) ? $this->to->id : null); - $this->out->element('textarea', array('id' => 'message_content', - 'cols' => 60, - 'rows' => 3, + $this->out->element('textarea', array('id' => 'notice_data-text', + 'cols' => 35, + 'rows' => 4, 'name' => 'content'), ($this->content) ? $this->content : ''); - - $this->out->elementEnd('p'); } /** @@ -144,9 +150,10 @@ class MessageForm extends Form function formActions() { - $this->out->element('input', array('id' => 'message_send', + $this->out->element('input', array('id' => 'notice_action-submit', + 'class' => 'submit', 'name' => 'message_send', 'type' => 'submit', 'value' => _('Send'))); } -} \ No newline at end of file +}