Allow translating the comments form
This commit is contained in:
parent
3919f7d764
commit
9d38761d44
4 changed files with 39 additions and 20 deletions
|
@ -12,23 +12,23 @@ form:
|
|||
name: comments
|
||||
fields:
|
||||
- name: name
|
||||
label: Name
|
||||
placeholder: Enter your name
|
||||
label: PLUGIN_COMMENTS.NAME_LABEL
|
||||
placeholder: PLUGIN_COMMENTS.NAME_PLACEHOLDER
|
||||
autocomplete: on
|
||||
type: text
|
||||
validate:
|
||||
required: true
|
||||
|
||||
- name: email
|
||||
label: Email
|
||||
placeholder: Enter your email address
|
||||
label: PLUGIN_COMMENTS.EMAIL_LABEL
|
||||
placeholder: PLUGIN_COMMENTS.EMAIL_PLACEHOLDER
|
||||
type: email
|
||||
validate:
|
||||
required: true
|
||||
|
||||
- name: text
|
||||
label: Message
|
||||
placeholder: Enter your message
|
||||
label: PLUGIN_COMMENTS.MESSAGE_LABEL
|
||||
placeholder: PLUGIN_COMMENTS.MESSAGE_PLACEHOLDER
|
||||
type: textarea
|
||||
validate:
|
||||
required: true
|
||||
|
@ -62,15 +62,15 @@ form:
|
|||
|
||||
buttons:
|
||||
- type: submit
|
||||
value: Submit
|
||||
value: PLUGIN_COMMENTS.SUBMIT_COMMENT_BUTTON_TEXT
|
||||
|
||||
process:
|
||||
- email:
|
||||
subject: "[New Comment] from {{ form.value.name|e }}"
|
||||
subject: PLUGIN_COMMENTS.EMAIL_NEW_COMMENT_SUBJECT
|
||||
body: "{% include 'forms/data.html.twig' %}"
|
||||
# - captcha:
|
||||
# recatpcha_secret: ej32oiej23oiej32oijeoi32jeio32je
|
||||
- addComment:
|
||||
- message: Thank you for writing your comment!
|
||||
- message: PLUGIN_COMMENTS.THANK_YOU_MESSAGE
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue