Update web/core/forms.py

This commit is contained in:
Joshua Laymon 2025-09-06 19:24:59 +00:00
parent db9c6e1b84
commit 8d1cae1047

View File

@ -73,3 +73,25 @@ class AnnouncementForm(ModelForm):
def clean_start_at(self):
v = self.cleaned_data.get("start_at")
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'
}),
}