Versiunea funcțională EUMI

This commit is contained in:
2026-08-31 16:10:46 +03:00
parent 75bcef3095
commit ce5028a27f
58 changed files with 4271 additions and 98 deletions
+29
View File
@@ -0,0 +1,29 @@
from django import forms
from .models import Employee
class EmployeeForm(forms.ModelForm):
class Meta:
model = Employee
fields = [
"name",
"username",
"role",
"office_number",
"email",
"directie",
"serviciu",
"compartiment",
"observations",
]
widgets = {
"name": forms.TextInput(attrs={"class": "form-control"}),
"username": forms.TextInput(attrs={"class": "form-control"}),
"role": forms.TextInput(attrs={"class": "form-control"}),
"office_number": forms.TextInput(attrs={"class": "form-control"}),
"email": forms.EmailInput(attrs={"class": "form-control"}),
"directie": forms.Select(attrs={"class": "form-select"}),
"serviciu": forms.Select(attrs={"class": "form-select"}),
"compartiment": forms.Select(attrs={"class": "form-select"}),
"observations": forms.Textarea(attrs={"class": "form-control", "rows": 2}),
}