ping II/IDEC networks :: std.club :: INSTEAD клуб | Contacts :: Login |
diff --git a/tpl/mform.html b/tpl/mform.html index 62243ce..972d515 100644 --- a/tpl/mform.html +++ b/tpl/mform.html @@ -31,7 +31,11 @@ <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" action="/a/savemsg/{{ea}}"> <input type="hidden" name="repto" value="{{repto}}" /> <input type="hidden" name="msgfrom" value="{{u.uname}}" /> +%if repto: <input type="hidden" name="msgto" value="{{rmsg.msgfrom if repto else 'All'}}" /> +%else: + <input type="text" name="msgto" value="{{rmsg.msgfrom if repto else 'All'}}" class="form-control" placeholder="Кому"/> +%end <input type="text" name="title" value="{{zubj}}" class="form-control" id="subjInput" placeholder="Тема сообщения"> <textarea name="outtxt" class="form-control" style="height:300px" placeholder="Текст сообщения"></textarea>