Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(contact_form): Add more issue types to ContactForm #4648

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions cl/simple_pages/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@


class ContactForm(forms.Form):
REMOVAL_REQUEST = "removal"
RECAP_BUG = "recap"
SUPPORT_REQUEST = "support"
API_HELP = "api"
DATA_QUALITY = "data_quality"
RECAP_BUG = "recap"
REMOVAL_REQUEST = "removal"
MEMBERSHIPS = "memberships"

ISSUE_TYPE_CHOICES = [
(REMOVAL_REQUEST, "Case Removal Request"),
(SUPPORT_REQUEST, "General Support"),
(API_HELP, "Data or API Help"),
(DATA_QUALITY, "Report Data Quality Problem"),
(RECAP_BUG, "RECAP Extension Bug"),
(SUPPORT_REQUEST, "Support"),
(REMOVAL_REQUEST, "Case Removal Request"),
(MEMBERSHIPS, "Memberships or Donations"),
]

VALID_ISSUE_TYPES = [REMOVAL_REQUEST, RECAP_BUG, SUPPORT_REQUEST]
VALID_ISSUE_TYPES = [choice[0] for choice in ISSUE_TYPE_CHOICES]

name = forms.CharField(
widget=forms.TextInput(attrs={"class": "form-control"})
Expand Down