Files
Aerbim/GeneralApp/forms.py
2023-12-09 16:32:33 +03:00

21 lines
930 B
Python

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
)