Hinweis, dass wir Nachrichten weiterleiten können #2

Merged
ldr merged 3 commits from note_external_recipients into master 2025-04-09 20:08:56 +02:00
4 changed files with 38 additions and 8 deletions

View file

@ -15,7 +15,7 @@
--dark-blue: #1c5287;
--light-yellow: #f7deb6;
--dark-yellow: #a66d11;
--border-radius-default: .5rem;
--border-radius-default: 0.5rem;
--default-padding: calc((5 / 16) * 1rem);
--box-border-color: lch(35.5% 23.9 194.33deg);
--box-background-color: color-mix(in lab, lch(71.16% 40.5 194.33deg) 40%, lch(100% 0 0deg) 60%);
@ -192,6 +192,15 @@ body main {
.infobox {
line-height: 1.1;
display: block;
}
p {
margin: 0;
&:not(:last-child) {
margin-bottom: 1em;
}
}
.infobox.success {
@ -203,7 +212,13 @@ body main {
font-weight: bold;
}
form>* {
.infobox.warn {
border-color: var(--tertiary);
font-weight: bold;
background-color: var(--light-yellow);
}
form > * {
padding: 0;
margin: 0;
}
@ -243,4 +258,4 @@ textarea, input[type="text"] {
-ms-border-radius: var(--border-radius-default);
-o-border-radius: var(--border-radius-default);
border: 1px solid var(--box-border-color);
}
}

View file

@ -1,7 +1,17 @@
<!DOCTYPE html>
<?php
$lang = $_GET['lang'] ?? $lang = "de";
$lang = $_GET["lang"] ?? ($lang = "de");
if ($lang !== "de" && $lang !== "en") {
http_response_code(302);
$url = "?" . http_build_query(["lang" => "en", "redirect_lang" => $lang]);
header("Location: $url");
echo "<p>The language <code>" . htmlspecialchars($lang) . "</code> is not currently supported.</p>";
echo "<p>You should have been redirected to the english version of this page. If not, click <a href=\"$url\">here</a></p>";
die();
}
$text = json_decode(file_get_contents("languages/$lang.json"), true);
$title = $text["title"];
$about = $text["about"];
@ -57,7 +67,12 @@ if (isset($_POST["submit"])) {
</div>
</nav>
</header>
<p id="about" class="infobox"><?php echo $about; ?></p>
<?php if (isset($_GET["redirect_lang"])) { ?>
<div class="infobox warn">
<p> The language <code><?php echo htmlspecialchars($_GET["redirect_lang"]); ?></code> is not supported. You have been redirected to the english language suggestion box. </p>
</div>
<?php } ?>
<div id="about" class="infobox"><?php echo $about; ?></div>
<form action="<?php echo $_SERVER["PHP_SELF"] .
"?" .
http_build_query($_GET); ?>" method="post" accept-charset="UTF-8">

View file

@ -1,6 +1,6 @@
{
"title": "Kummerkasten",
"about": "Solltest du der Fachschaft Sorgen, Beschwerden oder Anregungen bezüglich universitärer Einrichtungen, Studierender oder Mitarbeitern im Rahmen deines Studiums (egal ob Haupt- oder Nebenfach) mitteilen wollen, kannst du uns diese über das folgende Formular anonym übermitteln. Den Betreff und dein Anliegen trägst du dafür bitte in die nachfolgenden Textfelder ein und klickst auf den \"Senden\"-Knopf. Denke bitte daran, deine E-Mail-Adresse anzugeben, solltest du wünschen, Antwort von uns zu erhalten.<br>Der Inhalt deiner Nachricht wird selbstverständlich vertraulich behandelt.",
"about": "<p>Solltest du der Fachschaft Sorgen, Beschwerden oder Anregungen bezüglich universitärer Einrichtungen, Studierender oder Mitarbeitern im Rahmen deines Studiums (egal ob Haupt- oder Nebenfach) mitteilen wollen, kannst du uns diese über das folgende Formular anonym übermitteln. Den Betreff und dein Anliegen trägst du dafür bitte in die nachfolgenden Textfelder ein und klickst auf den \"Senden\"-Knopf. Denke bitte daran, deine E-Mail-Adresse anzugeben, solltest du wünschen, Antwort von uns zu erhalten.</p><p>Der Inhalt deiner Nachricht wird selbstverständlich vertraulich behandelt. Wenn wir deine Nachricht also an den Gleichstellungs&shy;ausschuss der TF, Verantwortliche eines Moduls oder an eine andere Stelle weiterleiten sollen, dann schreib dies bitte <strong>explizit</strong> in deinen Text.</p>",
"subject_placeholder": "Betreff (optional)",
"message_placeholder": "Geben Sie hier Ihr Anliegen ein...",
"send_button": "Senden",
@ -8,4 +8,4 @@
"success": "Deine Nachricht wurde erfolgreich gesendet!",
"error": "Deine Nachricht konnte nicht übermittelt werden! Stelle sicher, dass du mit dem Internet verbunden bist und versuche es erneut. Sollte das Problem weiterhin bestehen, wende dich sich bitte an {support_mail}.",
"recipient": "kummerkasten@fs-infmath.uni-kiel.de"
}
}

View file

@ -1,6 +1,6 @@
{
"title": "Suggestion Box",
"about": "If you would like to inform the student council of any concerns, complaints or suggestions regarding university facilities, students or staff within the scope of your studies (regardless of whether you are majoring or minoring), you can submit them to us anonymously through the following form. Please enter the subject and your concern in the text fields below and click the \"Send\" button. Remember to also include your e-mail address, should you wish to receive a reply.<br>The contents of your message will of cause be treated as condidential.",
"about": "<p>If you would like to inform the student council of any concerns, complaints or suggestions regarding university facilities, students or staff within the scope of your studies (regardless of whether you are majoring or minoring), you can submit them to us anonymously through the following form. Please enter the subject and your concern in the text fields below and click the \"Send\" button. Remember to also include your e-mail address, should you wish to receive a reply.</p><p>The contents of your message will, of course, be treated as confidential. If you would like us to forward your message to the equal opportunities commission of the faculty of engineering, the persons responsible for a module, or any other body, please state this <strong>explicitly</strong> in your message.</p>",
"subject_placeholder": "Subject line (optional)",
"message_placeholder": "Please enter your message...",
"send_button": "Send",