From 1e3d34d89dc433d23353a413d0aef7a14cadfa64 Mon Sep 17 00:00:00 2001 From: Igor Santos Date: Tue, 10 Sep 2024 10:30:50 -0300 Subject: [PATCH] feat(bonde): add help_text in action form to explain add variable --- app/contrib/bonde/admin.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/contrib/bonde/admin.py b/app/contrib/bonde/admin.py index 49f32817..8daf8766 100644 --- a/app/contrib/bonde/admin.py +++ b/app/contrib/bonde/admin.py @@ -51,8 +51,17 @@ class Meta: # name = forms.CharField(label="Nome", required=False) to_email = forms.EmailField(label="Email", required=False) - subject = forms.CharField(label="Assunto", required=False) - email_text_html = forms.CharField(label="Corpo do e-mail", required=False, widget=TextEditorWidget) + subject = forms.CharField( + label="Assunto", + required=False, + help_text="Você pode usar {{FieldName}} para inserir uma informaçâo do formulário nesse texto.", + ) + email_text_html = forms.CharField( + label="Corpo do e-mail", + help_text="Você pode usar {{FieldName}} para inserir uma informaçâo do formulário nesse texto.", + required=False, + widget=TextEditorWidget + ) def execute(self, form, request): # name = self.get_parameter(form, "name")