get backend working, registration done
This commit is contained in:
parent
959c588c97
commit
47405888fd
Binary file not shown.
2
notes
Normal file
2
notes
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
interesse grün (oder so) footer
|
||||||
|
bisherige Plakate unter homepage
|
@ -29,9 +29,16 @@
|
|||||||
<label class="dc-center dc-padding"" for="{{ register_form.rate_reduced.id_for_label }}">Anspruch auf ermäßigten Teilnahmebeitrag?</label>
|
<label class="dc-center dc-padding"" for="{{ register_form.rate_reduced.id_for_label }}">Anspruch auf ermäßigten Teilnahmebeitrag?</label>
|
||||||
<div class="dc-center dc-padding"">{{ register_form.rate_reduced }}</div></div>
|
<div class="dc-center dc-padding"">{{ register_form.rate_reduced }}</div></div>
|
||||||
<div class="dc-container dc-padding-top">
|
<div class="dc-container dc-padding-top">
|
||||||
{{ register_form.address.errors }}
|
{{ register_form.address_street.errors }}
|
||||||
<label class="dc-center dc-padding"" for="{{ register_form.address.id_for_label }}">Adresse:</label>
|
<label class="dc-center dc-padding"" for="{{ register_form.address_street.id_for_label }}">Straße:</label>
|
||||||
<div style="padding-bottom:7px" class="dc-center dc-padding"">{{register_form.address }}</div></div>
|
<div style="padding-bottom:7px" class="dc-center dc-padding"">{{register_form.address_street }}</div>
|
||||||
|
{{ register_form.address_plz.errors }}
|
||||||
|
<label class="dc-center dc-padding"" for="{{ register_form.address_plz.id_for_label }}">PLZ:</label>
|
||||||
|
<div style="padding-bottom:7px" class="dc-center dc-padding"">{{register_form.address_plz }}</div></div>
|
||||||
|
<div class="dc-container dc-padding-top">
|
||||||
|
{{ register_form.address_town.errors }}
|
||||||
|
<label class="dc-center dc-padding"" for="{{ register_form.address_town.id_for_label }}">Stadt:</label>
|
||||||
|
<div style="padding-bottom:7px" class="dc-center dc-padding"">{{register_form.address_town }}</div></div>
|
||||||
<div class="dc-container dc-padding-top">
|
<div class="dc-container dc-padding-top">
|
||||||
{{ register_form.birthdate.errors }}
|
{{ register_form.birthdate.errors }}
|
||||||
<label class="dc-center dc-padding"" for="{{ register_form.birthdate.id_for_label }}">Geburtsdatum:</label>
|
<label class="dc-center dc-padding"" for="{{ register_form.birthdate.id_for_label }}">Geburtsdatum:</label>
|
||||||
|
@ -3,10 +3,6 @@
|
|||||||
<a href="{% url 'homepage' %}" class="dc-bar-item dc-button">Home</a>
|
<a href="{% url 'homepage' %}" class="dc-bar-item dc-button">Home</a>
|
||||||
<a href="{% url 'newspage' %}" class="dc-bar-item dc-button">News</a>
|
<a href="{% url 'newspage' %}" class="dc-bar-item dc-button">News</a>
|
||||||
<a href="{% url 'about' %}" class="dc-bar-item dc-button">Über uns</a>
|
<a href="{% url 'about' %}" class="dc-bar-item dc-button">Über uns</a>
|
||||||
<form action ="{% url 'search' %}" class ="dc-right dc-bar-item">
|
|
||||||
<input class="dc-input" type="text" name="q" aria-label="Search">
|
|
||||||
<button type="submit" class="dc-btn dc-box-item fas fa-magnifying-glass " aria-label="Search"></button>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div style="padding-bottom:6vh"></div>
|
<div style="padding-bottom:6vh"></div>
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,12 @@
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from .models import Registrant
|
from .models import Registrant, Author, Category, Post, Contact
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
admin.site.register(Registrant)
|
class RegistrantAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ('name',)
|
||||||
|
list_filter = ['payed']
|
||||||
|
|
||||||
|
admin.site.register(Registrant, RegistrantAdmin)
|
||||||
|
admin.site.register(Author)
|
||||||
|
admin.site.register(Category)
|
||||||
|
admin.site.register(Post)
|
||||||
|
admin.site.register(Contact)
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 09:20
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0004_rename_address_registrant_address_street_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='address_plz',
|
||||||
|
field=models.CharField(max_length=12),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='food',
|
||||||
|
field=models.CharField(choices=[('Vegetarisch', 'Vegetarisch'), ('Vegan', 'Vegan'), ('Glutenfrei', 'Glutenfrei')], max_length=33),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='gender',
|
||||||
|
field=models.CharField(choices=[('Männlich', 'Männlich'), ('Weiblich', 'Weiblich'), ('Andere', 'Andere')], max_length=33),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='phone',
|
||||||
|
field=models.CharField(max_length=33),
|
||||||
|
),
|
||||||
|
]
|
18
website/migrations/0006_alter_registrant_message.py
Normal file
18
website/migrations/0006_alter_registrant_message.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 09:33
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0005_alter_registrant_address_plz_alter_registrant_food_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='message',
|
||||||
|
field=models.TextField(max_length=2100),
|
||||||
|
),
|
||||||
|
]
|
@ -0,0 +1,48 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 10:00
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0006_alter_registrant_message'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='address_plz',
|
||||||
|
field=models.CharField(blank=True, max_length=12),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='address_street',
|
||||||
|
field=models.CharField(blank=True, max_length=256),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='address_town',
|
||||||
|
field=models.CharField(blank=True, max_length=33),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='info',
|
||||||
|
field=models.CharField(blank=True, max_length=777),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='mail',
|
||||||
|
field=models.EmailField(blank=True, max_length=254),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='message',
|
||||||
|
field=models.TextField(blank=True, max_length=2100),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='music',
|
||||||
|
field=models.CharField(blank=True, max_length=128),
|
||||||
|
),
|
||||||
|
]
|
18
website/migrations/0008_alter_registrant_mail.py
Normal file
18
website/migrations/0008_alter_registrant_mail.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 10:02
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0007_alter_registrant_address_plz_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='mail',
|
||||||
|
field=models.CharField(blank=True, max_length=77),
|
||||||
|
),
|
||||||
|
]
|
@ -0,0 +1,42 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 10:13
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0008_alter_registrant_mail'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='slug',
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='birthdate',
|
||||||
|
field=models.DateField(blank=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='food',
|
||||||
|
field=models.CharField(blank=True, choices=[('Vegetarisch', 'Vegetarisch'), ('Vegan', 'Vegan'), ('Glutenfrei', 'Glutenfrei')], max_length=33),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='gender',
|
||||||
|
field=models.CharField(blank=True, choices=[('Männlich', 'Männlich'), ('Weiblich', 'Weiblich'), ('Andere', 'Andere')], max_length=33),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(blank=True, max_length=64),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='phone',
|
||||||
|
field=models.CharField(blank=True, max_length=33),
|
||||||
|
),
|
||||||
|
]
|
18
website/migrations/0010_alter_registrant_birthdate.py
Normal file
18
website/migrations/0010_alter_registrant_birthdate.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 10:18
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0009_remove_registrant_slug_alter_registrant_birthdate_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='birthdate',
|
||||||
|
field=models.CharField(blank=True, max_length=33),
|
||||||
|
),
|
||||||
|
]
|
18
website/migrations/0011_alter_registrant_payed.py
Normal file
18
website/migrations/0011_alter_registrant_payed.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# Generated by Django 4.2.6 on 2023-10-28 10:23
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('website', '0010_alter_registrant_birthdate'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='registrant',
|
||||||
|
name='payed',
|
||||||
|
field=models.BooleanField(default=False),
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -49,27 +49,25 @@ class ContactForm(forms.ModelForm):
|
|||||||
GESCHLECHTER = [("Männlich", "Männlich"), ("Weiblich","Weiblich"),("Andere","Andere")]
|
GESCHLECHTER = [("Männlich", "Männlich"), ("Weiblich","Weiblich"),("Andere","Andere")]
|
||||||
ERNÄHRUNG = [("Vegetarisch","Vegetarisch"),("Vegan","Vegan"),("Glutenfrei","Glutenfrei")]
|
ERNÄHRUNG = [("Vegetarisch","Vegetarisch"),("Vegan","Vegan"),("Glutenfrei","Glutenfrei")]
|
||||||
class Registrant(models.Model):
|
class Registrant(models.Model):
|
||||||
name = models.CharField(max_length=64)
|
name = models.CharField(max_length=64,blank=True)
|
||||||
mail = models.EmailField()
|
mail = models.CharField(max_length=77,blank=True)
|
||||||
phone = models.CharField(max_length=21)
|
phone = models.CharField(max_length=33,blank=True)
|
||||||
rate_reduced = models.BooleanField()
|
rate_reduced = models.BooleanField()
|
||||||
address_street = models.CharField(max_length=256)
|
address_street = models.CharField(max_length=256,blank=True)
|
||||||
address_plz = models.CharField(max_length=7)
|
address_plz = models.CharField(max_length=12,blank=True)
|
||||||
address_town = models.CharField(max_length=33)
|
address_town = models.CharField(max_length=33,blank=True)
|
||||||
birthdate = models.DateField()
|
birthdate = models.CharField(max_length=33,blank=True)
|
||||||
gender = models.CharField(max_length=32, blank=False, choices=GESCHLECHTER)
|
gender = models.CharField(max_length=33, blank=True, choices=GESCHLECHTER)
|
||||||
food = models.CharField(max_length=32, blank=False, choices=ERNÄHRUNG)
|
food = models.CharField(max_length=33, blank=True, choices=ERNÄHRUNG)
|
||||||
music = models.CharField(max_length=128)
|
music = models.CharField(max_length=128,blank=True)
|
||||||
cake = models.BooleanField()
|
cake = models.BooleanField()
|
||||||
publish_address = models.BooleanField()
|
publish_address = models.BooleanField()
|
||||||
publish_phone = models.BooleanField()
|
publish_phone = models.BooleanField()
|
||||||
info = models.CharField(max_length=777)
|
info = models.CharField(max_length=777,blank=True)
|
||||||
message = models.TextField(2100)
|
message = models.TextField(max_length=2100,blank=True)
|
||||||
|
|
||||||
timestamp = models.DateTimeField(auto_now_add=True)
|
timestamp = models.DateTimeField(auto_now_add=True)
|
||||||
payed = models.BooleanField()
|
payed = models.BooleanField(default=False)
|
||||||
slug = models.SlugField()
|
|
||||||
|
|
||||||
|
|
||||||
class RegisterForm(ModelForm):
|
class RegisterForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Loading…
Reference in New Issue
Block a user