From d2c45ee53a0a8395a9033d6dea7739b60b3b79f1 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sat, 6 Sep 2025 19:27:26 +0000 Subject: [PATCH] Update web/core/forms.py --- web/core/forms.py | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/web/core/forms.py b/web/core/forms.py index 4cb5cb3..2857855 100644 --- a/web/core/forms.py +++ b/web/core/forms.py @@ -47,6 +47,28 @@ class EntryForm(forms.Form): "class": "search-input input-hero textarea-hero" }) + # ---- Placeholders (requested) ---- + if "subject" in self.fields: + self.fields["subject"].widget.attrs.setdefault( + "placeholder", + "Separate subjects with commas (e.g., Faith, Love, Patience)" + ) + if "scripture_raw" in self.fields: + self.fields["scripture_raw"].widget.attrs.setdefault( + "placeholder", + "Use WOL abbreviations; separate refs with ; (e.g., Joh 3:16; Ps 23:1-4)" + ) + if "source" in self.fields: + self.fields["source"].widget.attrs.setdefault( + "placeholder", + "Use correct WOL mnemonic for linking; otherwise Google search" + ) + if "talk_title" in self.fields: + self.fields["talk_title"].widget.attrs.setdefault( + "placeholder", + "Will auto-fill when a Talk Number is selected" + ) + if "talk_number" in self.fields: self.fields["talk_number"].widget.attrs.update({ "class": "search-input input-hero" @@ -62,10 +84,11 @@ class EntryForm(forms.Form): v = self.cleaned_data.get("talk_number") return v if isinstance(v, int) else None + class AnnouncementForm(ModelForm): class Meta: model = Announcement - fields = ["title", "message", "is_active"] + fields = ["title", "message,","is_active"] widgets = { "message": Textarea(attrs={"rows": 6, "placeholder": "What’s new in this release…"}), }