From 2bcbb755dde32f01f73d16db965319a8aed40c73 Mon Sep 17 00:00:00 2001 From: kry008 Date: Fri, 3 Jan 2025 09:29:39 +0100 Subject: [PATCH] =?UTF-8?q?Edytor=20tre=C5=9Bci=20masowej=20wysy=C5=82ki?= =?UTF-8?q?=20email=20i=20ukrycie=20pesel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serwer/app/panelRoutes.js | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/serwer/app/panelRoutes.js b/serwer/app/panelRoutes.js index c5544a3..62e0e74 100644 --- a/serwer/app/panelRoutes.js +++ b/serwer/app/panelRoutes.js @@ -251,7 +251,7 @@ panelRouter.get('/edytujWolontariusza', function(req, res) { toReturn += 'Discord'; toReturn += 'Email'; toReturn += 'Telefon'; - toReturn += 'PESEL'; + toReturn += 'PESEL
PESEL
'; toReturn += 'Terminal'; toReturn += 'Rodzic'; toReturn += 'Puszka wydana'; @@ -1731,9 +1731,9 @@ panelRouter.get('/wyslijEmaile', function(req, res) { toReturn += '
'; toReturn += '

Wysyłanie emaili

'; toReturn += '
'; - toReturn += ''; + toReturn += '
'; toReturn += ''; - toReturn += ''; + toReturn += ''; toReturn += '
Temat
Treść
Treść
'; toReturn += ''; toReturn += '
'; @@ -1742,18 +1742,22 @@ panelRouter.get('/wyslijEmaile', function(req, res) { toReturn += ''; + toReturn += '
'; toReturn += footerHtml(1); + res.send(toReturn); +}); +//wyświetl post +panelRouter.post('/wyslijEmaile', function(req, res) { + //pobierz temat i treść emaila, a potem bobierz wszystkie emaile (unikalne) i wyslij + var temat = req.body.temat; + var tresc = req.body.tresc; + res.send({temat: temat, tresc: tresc}); }); module.exports = panelRouter; \ No newline at end of file