diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc index c88bd47..a81cff1 100644 Binary files a/core/__pycache__/forms.cpython-311.pyc and b/core/__pycache__/forms.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 5a7894e..1b0776e 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 935de85..2874f74 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/forms.py b/core/forms.py index 6ce5422..2208cad 100644 --- a/core/forms.py +++ b/core/forms.py @@ -30,7 +30,6 @@ class VoterForm(forms.ModelForm): self.fields['yard_sign'].widget.attrs.update({'class': 'form-select'}) class InteractionForm(forms.ModelForm): - # ... (rest of the file remains the same) class Meta: model = Interaction fields = ['type', 'date', 'description', 'notes'] @@ -107,15 +106,3 @@ class EventForm(forms.ModelForm): for field in self.fields.values(): field.widget.attrs.update({'class': 'form-control'}) self.fields['event_type'].widget.attrs.update({'class': 'form-select'}) - -class EventTypeForm(forms.ModelForm): - class Meta: - model = EventType - fields = ['name', 'is_active'] - - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - for field in self.fields.values(): - if not isinstance(field.widget, forms.CheckboxInput): - field.widget.attrs.update({'class': 'form-control'}) - self.fields['is_active'].widget.attrs.update({'class': 'form-check-input'}) \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 1fed896..c922003 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -40,9 +40,6 @@
| Name | -Status | -Actions | -
|---|---|---|
| {{ type.name }} | -- {% if type.is_active %} - Active - {% else %} - Inactive - {% endif %} - | -- - - | -
| - - No event types defined yet. - | -||