Skip to content

Commit

Permalink
Merge pull request #4648 from freelawproject/contact-issue-types
Browse files Browse the repository at this point in the history
feat(contact_form): Add more issue types to ContactForm
  • Loading branch information
mlissner authored Nov 6, 2024
2 parents f340d11 + c2aa65f commit 333fd8c
Showing 1 changed file with 11 additions and 5 deletions.
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

0 comments on commit 333fd8c

Please sign in to comment.