mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 16:02:15 +02:00
Save changes
This commit is contained in:
parent
30fd3e0ae8
commit
48b9666498
1 changed files with 13 additions and 0 deletions
|
@ -125,6 +125,19 @@ class ContactForm(forms.ModelForm):
|
|||
class Meta:
|
||||
model = Contact
|
||||
fields = ["first_name", "middle_name", "last_name", "title", "email", "phone"]
|
||||
error_messages = {
|
||||
"first_name": {"required": "Enter your first name / given name."},
|
||||
"last_name": {"required": "Enter your last name / family name."},
|
||||
"title": {
|
||||
"required": "Enter your title or role in your organization (e.g., Chief Information Officer)."
|
||||
},
|
||||
"email": {
|
||||
"required": "Enter your email address in the required format, like name@example.com."
|
||||
},
|
||||
"phone": {
|
||||
"required": "Enter your phone number."
|
||||
},
|
||||
}
|
||||
widgets = {
|
||||
"first_name": forms.TextInput,
|
||||
"middle_name": forms.TextInput,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue