Ask for age instead of birth date
All checks were successful
release-tag / release-image (push) Successful in 36s

This commit is contained in:
2025-05-26 20:48:47 +02:00
parent 83ec86b027
commit 5b92bc8465
2 changed files with 8 additions and 12 deletions

View File

@@ -4,13 +4,9 @@ from pydantic import EmailStr
from sqlmodel import Field, SQLModel from sqlmodel import Field, SQLModel
from enum import Enum from enum import Enum
from datetime import date, datetime from datetime import datetime
from sqlalchemy.sql import func
from app.core.config import settings from app.core.config import settings
from datetime import datetime
class VoiceEnum(str, Enum): class VoiceEnum(str, Enum):
@@ -33,7 +29,7 @@ class RegistrationBase(SQLModel):
email: EmailStr = Field(max_length=255) email: EmailStr = Field(max_length=255)
first_name: str first_name: str
last_name: str last_name: str
birthday: date age: int
voice: VoiceEnum voice: VoiceEnum
duration: PeriodEnum duration: PeriodEnum
number_of_attempts: int number_of_attempts: int

View File

@@ -8,10 +8,10 @@
<form method="POST" action="/registration/register_form"> <form method="POST" action="/registration/register_form">
<label for="email">E-Mail-Adresse:</label> <input type="email" id="email" name="email" /> <label for="email">Deine E-Mail-Adresse:</label> <input type="email" id="email" name="email" /><br />
<label for="first_name">Dein Vorname:</label> <input type="text" id="first_name" name="first_name" /> <label for="first_name">Dein Vorname:</label> <input type="text" id="first_name" name="first_name" /><br />
<label for="last_name">Dein Nachname:</label> <input type="text" id="last_name" name="last_name" /> <label for="last_name">Dein Nachname:</label> <input type="text" id="last_name" name="last_name" /><br />
<label for="birthday">Dein Geburtstag:</label> <input type="date" id="birthday" name="birthday" /> <label for="age">Dein Alter:</label> <input type="number" id="age" name="age" /><br />
<fieldset> <fieldset>
<legend>Welche Stimme singst du?</legend> <legend>Welche Stimme singst du?</legend>
@@ -71,7 +71,7 @@
</div> </div>
</fieldset> </fieldset>
<label for="number_of_attempts">Wie oft hast du schon versucht, dich anzumelden?</label><input type="number" id="number_of_attempts" name="number_of_attempts" /> <label for="number_of_attempts">Wie oft hast du schon versucht, dich anzumelden?</label><input type="number" id="number_of_attempts" name="number_of_attempts" /><br />
<input type="submit" value="Anmelden" /> <input type="submit" value="Anmelden" />