0.2.1 feedback_form
This commit is contained in:
21
GeneralApp/forms.py
Normal file
21
GeneralApp/forms.py
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user