diff --git a/member/forms.py b/member/forms.py new file mode 100644 index 0000000..51162e2 --- /dev/null +++ b/member/forms.py @@ -0,0 +1,12 @@ +# forms.py + +from django import forms +from .models import Person + +class PersonForm(forms.ModelForm): + class Meta: + model = Person + fields = ['vorname', 'nachname', 'geburtsdatum', 'aktiv'] + widgets = { + 'geburtsdatum': forms.DateInput(attrs={'type': 'date'}), + } diff --git a/member/static/icons/heroicons/plus.svg b/member/static/icons/heroicons/plus.svg new file mode 100644 index 0000000..44bf544 --- /dev/null +++ b/member/static/icons/heroicons/plus.svg @@ -0,0 +1,5 @@ + + diff --git a/member/static/member/css/styles.css b/member/static/member/css/styles.css index 009b699..3fd8c2f 100644 --- a/member/static/member/css/styles.css +++ b/member/static/member/css/styles.css @@ -129,3 +129,31 @@ body { background-color: #d63031; } +.icon { + width: 20px; + height: 20px; + vertical-align: middle; + margin-right: 6px; + filter: invert(90%); /* für helle SVGs in dunklem Hintergrund */ +} + +.form-group { + display: grid; + flex-direction: column; + margin-bottom: 16px; +} + +.form-group label { + margin-bottom: 4px; + font-weight: bold; +} + +.form-group input, +.form-group select { + padding: 8px; + border: 1px solid #444; + border-radius: 4px; + background-color: #1e1e1e; + color: #f1f1f1; + font-size: 1rem; +} diff --git a/member/templates/memberlist.html b/member/templates/memberlist.html index 85367be..b7da126 100644 --- a/member/templates/memberlist.html +++ b/member/templates/memberlist.html @@ -1,4 +1,5 @@ {% extends "master.html" %} +{% load static %} {% block title %} List of all persons @@ -7,13 +8,25 @@ {% block content %}
| Name | +Aktiv | +Aktionen | +
|---|---|---|
| {{ x.nachname }} {{ x.vorname}} | ++ | + |