digitaleagentur/areas/forms.py

20 lines
422 B
Python

from django import forms
from django.forms import ModelForm
from django.forms.widgets import TextInput
from .models import Areas
from django.contrib.auth.models import User
class AreaAddAreaForm(forms.ModelForm):
class Meta:
model = Areas
labels = {
"name" : "Bereichsname",
"color" : "Farbe",
"desc" : "Beschreibung",
"visible": "Im Organigramm sichtbar"
}
fields = ['name', 'color', 'desc']