|
|
@ -31,7 +31,7 @@ class Messages extends Controller { |
|
|
|
var lists = getLists(); |
|
|
|
form.addElement(new StringInput("senderName", t._("Sender name"), senderName, true)); |
|
|
|
form.addElement(new StringInput("senderMail", t._("Sender E-Mail"), senderMail, true)); |
|
|
|
form.addElement(new StringSelect("list", t._("Recipients"), lists, "1", true, null, "style='width:500px;'")); |
|
|
|
form.addElement(new StringSelect("list", t._("Recipients"), lists, "3", true, null, "style='width:500px;'")); |
|
|
|
form.addElement(new StringInput("subject", t._("Subject:"), "", false, null, "style='width:500px;'")); |
|
|
|
form.addElement(new TextArea("text", t._("Message:"), "", false, null, "style='width:500px;height:350px;'")); |
|
|
|
|
|
|
@ -82,8 +82,6 @@ class Messages extends Controller { |
|
|
|
lm.insert(); |
|
|
|
|
|
|
|
throw Ok("/messages", t._("The message has been sent")); |
|
|
|
} else { |
|
|
|
App.log('Administrator #${app.user.id} <${senderName}> prepares sending an email from choices list'); |
|
|
|
} |
|
|
|
|
|
|
|
view.form = form; |
|
|
|