Skip to content

Commit

Permalink
feat(bonde): add help_text in action form to explain add variable
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Sep 10, 2024
1 parent bbf8a76 commit 1e3d34d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/contrib/bonde/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1e3d34d

Please sign in to comment.