From 06a1898711e1586671e570b1742668a59e9acc9c Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Fri, 23 Feb 2024 13:28:42 +0000 Subject: [PATCH] =?UTF-8?q?Fehlende=20Felder=20f=C3=BCr=20Bestellformular?= =?UTF-8?q?=20Zusatzmodule=20Organisationen=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scss/custom.scss | 17 +++++++++++++++++ public/php/message.php | 28 +++++++++++++++++++--------- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 8f01408..293cdce 100755 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -275,6 +275,23 @@ table .far { #verify_email, #age, #hobbies { display:none; } + @keyframes spin { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + } + .spinner { + border: 2px solid transparent; /* Make spinner background transparent */ + border-top-color: currentColor; /* Use current text color for spinner */ + border-right-color: currentColor; /* Use current text color for spinner */ + border-radius: 99999px; /* Fully rounded edges */ + width: 1em; /* Relative to font size */ + height: 1em; /* Relative to font size */ + animation: spin 1s linear infinite; /* Apply the spin animation */ + } /**************** Component Styles ******************/ diff --git a/public/php/message.php b/public/php/message.php index d70603f..c73f888 100644 --- a/public/php/message.php +++ b/public/php/message.php @@ -25,9 +25,19 @@ function constructMessage() { if (isset($organisationPaket)) { $message .= "Organisation Paket: " . "\n" . $organisationPaket . "\n\n"; } - - $bestehend = filter_input(INPUT_POST, 'bestehend'); + // Form inputs von Organisation Zusatzmodule + $zusatzmodulDienstplan = filter_input(INPUT_POST, 'zusatzmodul-dienstplan'); + if (isset($zusatzmodulDienstplan)) { + $message .= "Zusatzmodul Dienstplan: " . "\n" . $zusatzmodulDienstplan . "\n\n"; + } + + $zusatzmodulTourenplan = filter_input(INPUT_POST, 'zusatzmodul-tourenplan'); + if (isset($zusatzmodulTourenplan)) { + $message .= "Zusatzmodul Tourenplan: " . "\n" . $zusatzmodulTourenplan . "\n\n"; + } + // Form inputs von Erstbestellung + $bestehend = filter_input(INPUT_POST, 'bestehend'); if (isset($bestehend)) { $message .= "Wünschen Sie einen neuer Server oder den Zugang zu einem bestehenden Team-Server?: " . "\n" . $bestehend . "\n\n"; } @@ -56,12 +66,7 @@ function constructMessage() { if (isset($wochenbett)) { $message .= "Benötigen Sie das Programm für Wochenbett-Betreuung?: " . "\n" . $wochenbett . "\n\n"; } - $anmerkung = filter_input(INPUT_POST, 'anmerkung'); - if (!empty($anmerkung)) { - $message .= "Anmerkung: " . "\n" . $anmerkung . "\n\n"; - } - - // Form inputs von Zusatzmodule + // Form inputs von Zusatzmodule Freiberufliche $zusatzmodulPop2 = filter_input(INPUT_POST, 'zusatzmodul-pop2'); if (isset($zusatzmodulPop2)) { $message .= "Zusatzmodul POP2" . "\n"; @@ -81,7 +86,12 @@ function constructMessage() { if (isset($zusatzmodulPerigon)) { $message .= "Zusatzmodul Perigon" . "\n"; } - + + $anmerkung = filter_input(INPUT_POST, 'anmerkung'); + if (!empty($anmerkung)) { + $message .= "\n\n" . "Anmerkung: " . "\n" . $anmerkung . "\n\n"; + } + return $message; }