Update web/core/forms.py
This commit is contained in:
parent
db9c6e1b84
commit
8d1cae1047
@ -72,4 +72,26 @@ 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'
|
||||||
|
}),
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user