Update web/core/forms.py

This commit is contained in:
Joshua Laymon 2025-09-06 19:25:22 +00:00
parent 8d1cae1047
commit 769720917a

View File

@ -72,26 +72,4 @@ class AnnouncementForm(ModelForm):
def clean_start_at(self): def clean_start_at(self):
v = self.cleaned_data.get("start_at") v = self.cleaned_data.get("start_at")
return v or timezone.now() return v or timezone.now()
from django import forms
from .models import Entry
class EntryForm(forms.ModelForm):
class Meta:
model = Entry
fields = '__all__'
widgets = {
'subject': forms.TextInput(attrs={
'placeholder': 'Separate subjects with commas (e.g., Faith, Love, Patience)'
}),
'scripture_raw': forms.TextInput(attrs={
'placeholder': 'Use WOL abbreviations; separate refs with ; (e.g., Joh 3:16; Ps 23:1-4)'
}),
'source': forms.TextInput(attrs={
'placeholder': 'Use correct WOL mnemonic for linking; otherwise Google search'
}),
'talk_title': forms.TextInput(attrs={
'placeholder': 'Will auto-fill when a Talk Number is selected'
}),
}