Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 1 addition & 5 deletions chipy_org/apps/contact/forms.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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(
Expand Down
9 changes: 7 additions & 2 deletions chipy_org/apps/contact/templates/contact/contact.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "shiny/slim.html" %}
{% load crispy_forms_tags %}


{% block page_header %}CONTACT US{% endblock %}

{% block body %}
Expand All @@ -10,7 +11,11 @@
<div class="module span6">
<div id="contact">
{% if user.is_authenticated %}
{% crispy form %}
<form action="/contact/" method="post">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Send Email">
</form>
{% else %}
<p>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. </p>
{% endif %}
Expand All @@ -28,4 +33,4 @@ <h3>Did you know ChiPy has a mailing list?</h3>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
16 changes: 0 additions & 16 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ dependencies = [
"gunicorn",
"nh3",
"pillow",
"probablepeople",
"psycopg2-binary",
"python-openid2",
"requests",
Expand Down
8 changes: 0 additions & 8 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down