diff --git a/chipy_org/apps/contact/forms.py b/chipy_org/apps/contact/forms.py index a265e867..26614555 100644 --- a/chipy_org/apps/contact/forms.py +++ b/chipy_org/apps/contact/forms.py @@ -1,7 +1,5 @@ import logging -from crispy_forms.helper import FormHelper -from crispy_forms.layout import Submit from django import forms from django.conf import settings from django_recaptcha.fields import ReCaptchaField @@ -15,11 +13,9 @@ class ContactForm(forms.Form): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.helper = FormHelper() - self.helper.add_input(Submit("submit", "Send Email")) self.fields["captcha"].label = False - sender = forms.CharField(max_length=256, label="From") + sender = forms.CharField(max_length=256, label="Name") email = forms.EmailField(max_length=256) subject = forms.CharField(max_length=256) message = forms.CharField( diff --git a/chipy_org/apps/contact/templates/contact/contact.html b/chipy_org/apps/contact/templates/contact/contact.html index 4df96ab5..d69c2b6d 100644 --- a/chipy_org/apps/contact/templates/contact/contact.html +++ b/chipy_org/apps/contact/templates/contact/contact.html @@ -1,6 +1,7 @@ {% extends "shiny/slim.html" %} {% load crispy_forms_tags %} + {% block page_header %}CONTACT US{% endblock %} {% block body %} @@ -10,7 +11,11 @@
{% if user.is_authenticated %} - {% crispy form %} +
+ {% csrf_token %} + {{ form|crispy }} + +
{% else %}

To contact the ChiPy Organizers, please log in first! Use the Blue Button above to login with either a Google or Github account. It's super quick and then you can send a message.

{% endif %} @@ -28,4 +33,4 @@

Did you know ChiPy has a mailing list?

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/dev-requirements.txt b/dev-requirements.txt index 7ef05691..3b08c61f 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -120,10 +120,6 @@ djangorestframework==3.15.2 # via # -c requirements.txt # chipy_website (pyproject.toml) -doublemetaphone==1.1 - # via - # -c requirements.txt - # probablepeople filelock==3.16.1 # via virtualenv freezegun==1.5.1 @@ -181,14 +177,6 @@ pluggy==1.5.0 # via pytest pre-commit==4.0.1 # via chipy_website (pyproject.toml) -probableparsing==0.0.1 - # via - # -c requirements.txt - # probablepeople -probablepeople==0.5.6 - # via - # -c requirements.txt - # chipy_website (pyproject.toml) psycopg2-binary==2.9.10 # via # -c requirements.txt @@ -207,10 +195,6 @@ pytest==8.3.4 # pytest-django pytest-django==4.9.0 # via chipy_website (pyproject.toml) -python-crfsuite==0.9.11 - # via - # -c requirements.txt - # probablepeople python-dateutil==2.9.0.post0 # via # -c requirements.txt diff --git a/pyproject.toml b/pyproject.toml index f3db74cd..ccaca9b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,6 @@ dependencies = [ "gunicorn", "nh3", "pillow", - "probablepeople", "psycopg2-binary", "python-openid2", "requests", diff --git a/requirements.txt b/requirements.txt index 1a57ea92..d80d48a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -73,8 +73,6 @@ django-tinymce==4.1.0 # via chipy_website (pyproject.toml) djangorestframework==3.15.2 # via chipy_website (pyproject.toml) -doublemetaphone==1.1 - # via probablepeople gunicorn==23.0.0 # via chipy_website (pyproject.toml) icalendar==6.1.0 @@ -97,18 +95,12 @@ packaging==24.2 # via gunicorn pillow==11.1.0 # via chipy_website (pyproject.toml) -probableparsing==0.0.1 - # via probablepeople -probablepeople==0.5.6 - # via chipy_website (pyproject.toml) psycopg2-binary==2.9.10 # via chipy_website (pyproject.toml) pycparser==2.22 # via cffi pyjwt==2.10.1 # via social-auth-core -python-crfsuite==0.9.11 - # via probablepeople python-dateutil==2.9.0.post0 # via # botocore