add search names, fix working bug, lowercase all mails

This commit is contained in:
2025-09-20 13:36:44 +02:00
parent 6c10027122
commit c3a3ead6fa
5 changed files with 47 additions and 16 deletions
+10 -10
View File
@@ -89,7 +89,7 @@
<form @submit.prevent="findSelf" class="d-flex flex-column gap-3 mb-3">
<div class="mb-3">
<label class="form-label">
Dein Name (wie auf dem Abi-T-Shirt)
Dein Name (wie im Abi-Buch)
</label>
<input type="text" x-model="yourName" required autocomplete="off"
class="form-control" autofocus />
@@ -104,7 +104,7 @@
<form @submit.prevent="continueStep1">
<p>
Hallo <span x-text="altName || userName"></span>! Falls sich dein Name geändert hat,
kannst du ihn hier anpassen oder einfach direkt weitermachen.
kannst du ihn hier anpassen - oder einfach direkt weitermachen.
</p>
<div id="altNameCheckboxDiv" class="form-check mt-3" x-show="userName" x-transition>
<input type="checkbox" x-model="altNameChecked" class="form-check-input"
@@ -184,7 +184,7 @@
</h2>
<form @submit.prevent="findKnownContact" class="mb-3">
<div class="mb-3">
<label class="form-label">Name auf dem Abi-T-Shirt:</label>
<label class="form-label">Name (wie im Abi-Buch):</label>
<input type="text" x-model="knownContactName" required autocomplete="off"
class="form-control" autofocus />
</div>
@@ -314,7 +314,7 @@
this.userName = resp.data.name;
this.userToken = resp.data.token || null;
} else if (resp.status === 404) {
this.stepMsg = 'Sorry, wir konnten dich nicht finden. Schreib deinen Namen bitte genau so, wie er auf dem Abi-T-Shirt stand!';
this.stepMsg = 'Sorry, wir konnten dich nicht finden. Schreib deinen Namen bitte so, wie er im Abi-Buch stand!';
this.stepMsgType = 'warning';
} else if (resp.status === 208) {
this.stepMsg = 'Du hast deine Daten schon eingetragen. Danke dir!';
@@ -395,16 +395,16 @@
if (resp.status === 200) {
this.foundKnownContactName = resp.data.name.trim();
if (this.foundKnownContactName == this.yourName) {
this.stepMsg = 'Das bist du selbst deine Daten hast du ja schon eingetragen!';
this.stepMsg = 'Das bist du selbst - deine Daten hast du ja schon eingetragen!';
this.stepMsgType = 'warning';
this.showKnownContactData = false;
this.knownContactName = ''
return;
} else {
this.knownContactName = this.foundKnownContactName;
this.stepMsg = 'Super, trag bitte die Kontaktdaten ein!';
this.stepMsgType = 'success';
this.showKnownContactData = true;
}
this.knownContactName = this.foundKnownContactName;
this.stepMsg = 'Super, trag bitte die Kontaktdaten ein!';
this.stepMsgType = 'success';
this.showKnownContactData = true;
} else if (resp.status === 404) {
this.stepMsg = 'Diesen Namen gibt es leider nicht in unserer Liste.';
this.stepMsgType = 'warning';