diff --git a/static/css/style.css b/static/css/style.css index 255d24e1..f7948ccd 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -12,6 +12,7 @@ small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertic sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px}img{border-style:none} code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}hr{box-sizing:content-box;height:0;overflow:visible} button,input,select,textarea,optgroup{font:inherit;margin:0}optgroup{font-weight:bold} +#id_gender,#id_food{display:flex;justify-content:center} input{padding:8px;border:1px solid #ccc;border-radius:4px;height:32px} button,input{overflow:visible}button,select{text-transform:none} button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button} diff --git a/templates/anmeldung.html b/templates/anmeldung.html index 752b235b..838c0b1f 100644 --- a/templates/anmeldung.html +++ b/templates/anmeldung.html @@ -37,8 +37,8 @@
{{register_form.birthdate }}
{{ register_form.gender.errors }} - -
{{register_form.gender }}
+ +
{{ register_form.food.errors }} diff --git a/website/__pycache__/models.cpython-311.pyc b/website/__pycache__/models.cpython-311.pyc index 29dfdecd..091fe711 100644 Binary files a/website/__pycache__/models.cpython-311.pyc and b/website/__pycache__/models.cpython-311.pyc differ diff --git a/website/migrations/__pycache__/0003_registrant_slug_alter_registrant_address.cpython-311.pyc b/website/migrations/__pycache__/0003_registrant_slug_alter_registrant_address.cpython-311.pyc new file mode 100644 index 00000000..d968a1b9 Binary files /dev/null and b/website/migrations/__pycache__/0003_registrant_slug_alter_registrant_address.cpython-311.pyc differ diff --git a/website/models.py b/website/models.py index 44b7a8d5..e1929586 100644 --- a/website/models.py +++ b/website/models.py @@ -73,3 +73,5 @@ class RegisterForm(ModelForm): class Meta: model = Registrant fields = ["name","mail","phone","rate_reduced","address","birthdate","gender","food","music","cake","publish_address","publish_phone","info","message"] + gender = forms.ChoiceField(widget=forms.RadioSelect,choices=GESCHLECHTER) + food = forms.ChoiceField(widget=forms.RadioSelect,choices=ERNÄHRUNG)