cagettepéi
This commit is contained in:
@@ -19,8 +19,6 @@ class ContractAdmin extends Controller {
|
||||
if (!app.user.isContractManager())
|
||||
throw Error("/", t._("You don't have the authorization to manage contracts"));
|
||||
view.nav = ["contractadmin"];
|
||||
|
||||
App.log("first message");
|
||||
}
|
||||
|
||||
public function sendNav(c) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user