Browse Source

cagettepéi

master
pvincent 3 years ago
parent
commit
0854d556fe
  1. 2
      lang/master/tpl/admin/default.mtt
  2. 2
      src/controller/ContractAdmin.hx
  3. 4
      src/controller/Messages.hx

2
lang/master/tpl/admin/default.mtt

@ -1,7 +1,7 @@
::use 'admin/design.mtt':: ::use 'admin/design.mtt'::
<h3>Console d'administration de Cagette.net</h3>
<h3>Console d'administration de CagettePéi</h3>
<p> <p>
::hDate(now):: ::hDate(now)::
</p> </p>

2
src/controller/ContractAdmin.hx

@ -19,8 +19,6 @@ class ContractAdmin extends Controller {
if (!app.user.isContractManager()) if (!app.user.isContractManager())
throw Error("/", t._("You don't have the authorization to manage contracts")); throw Error("/", t._("You don't have the authorization to manage contracts"));
view.nav = ["contractadmin"]; view.nav = ["contractadmin"];
App.log("first message");
} }
public function sendNav(c) { public function sendNav(c) {

4
src/controller/Messages.hx

@ -31,7 +31,7 @@ class Messages extends Controller {
var lists = getLists(); var lists = getLists();
form.addElement(new StringInput("senderName", t._("Sender name"), senderName, true)); form.addElement(new StringInput("senderName", t._("Sender name"), senderName, true));
form.addElement(new StringInput("senderMail", t._("Sender E-Mail"), senderMail, 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 StringInput("subject", t._("Subject:"), "", false, null, "style='width:500px;'"));
form.addElement(new TextArea("text", t._("Message:"), "", false, null, "style='width:500px;height:350px;'")); form.addElement(new TextArea("text", t._("Message:"), "", false, null, "style='width:500px;height:350px;'"));
@ -82,8 +82,6 @@ class Messages extends Controller {
lm.insert(); lm.insert();
throw Ok("/messages", t._("The message has been sent")); 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; view.form = form;

Loading…
Cancel
Save