0.2.1 feedback_form

This commit is contained in:
SDE
2023-12-09 16:19:35 +03:00
parent 17f98ed96b
commit 7063319fcb
5 changed files with 232 additions and 94 deletions

21
GeneralApp/forms.py Normal file
View File

@@ -0,0 +1,21 @@
from django import forms
from django.contrib.auth.forms import AuthenticationForm
from django.utils.translation import gettext_lazy as _
from django.core.exceptions import ValidationError
from django.forms import widgets
class FeedbackForm(forms.Form):
# account_type = forms.ChoiceField(choices=account_type_choices, initial='sender', required=True)
name = forms.CharField(label=_('Имя'), required=True)
company = forms.CharField(label=_('Фамилия'), required=True)
contacts = forms.CharField(label=_('Роль в проекте'), required=True)
description = forms.CharField(label=_('Телефон'), required=True)
agreement = forms.BooleanField(
label=_('Принимаю пользовательское соглашение и принимаю условия обработки личных данных'),
initial=False, required=True
)