diff --git a/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po index 77a784f..35f918e 100644 --- a/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/de/LC_MESSAGES/volto.po @@ -37,7 +37,7 @@ msgstr "Abbrechen" #. Default: "Cancel button label" #: schemaFormBlock/schema msgid "Cancel button label" -msgstr "" +msgstr "Beschriftung des Abbrechen-Buttons" #. Default: "Choices" #: components/Widget/SelectWidget @@ -142,11 +142,6 @@ msgstr "Notwendig" msgid "Select…" msgstr "Wähle…" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -165,12 +160,12 @@ msgstr "" #. Default: "Show cancel button" #: schemaFormBlock/schema msgid "Show cancel button" -msgstr "" +msgstr "Abbrechen-Button anzeigen" #. Default: "Store data" #: schemaFormBlock/schema msgid "Store data" -msgstr "" +msgstr "Daten speichern" #. Default: "Subject" #: schemaFormBlock/schema @@ -187,7 +182,7 @@ msgstr "Senden" #. Default: "Submit button label" #: schemaFormBlock/schema msgid "Submit button label" -msgstr "" +msgstr "Beschriftung des Senden-Buttons" #. Default: "Text at the beginning of the email. Use the ${field_id} syntax to add a form value." #: schemaFormBlock/schema @@ -248,7 +243,7 @@ msgstr "" #. Default: "When activated, the data will be stored for later use when the form is submitted" #: schemaFormBlock/schema msgid "When activated, the data will be stored for later use when the form is submitted" -msgstr "" +msgstr "Bei Aktivierung werden die Daten für eine spätere Verwendung beim Absenden des Formulars gespeichert" #. Default: "Use Up and Down to choose options" #: helpers/react-select @@ -386,10 +381,10 @@ msgstr "Beschreibung" msgid "fieldId" msgstr "Feld-ID" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" -msgstr "" +msgid "fieldset_mailing" +msgstr "E-Mail senden" #. Default: "Form" #: formSchema @@ -709,6 +704,16 @@ msgstr "Fehlerhafte E-Mail-Adresse" msgid "formblock_requiredFieldMessage" msgstr "Bitte füllen Sie dieses Feld aus" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "Weiterleiten nach" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "Falls eine Seite angegeben ist, wird der User nach dem Absenden des Formulares dort hin geleitet. Die Dankesnachricht wird nicht angezeigt." + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "Statischer Text" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "Erfolgsnachricht" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "Vielen Dank! Sie haben folgende Daten übermittelt:" + #. Default: "Textarea" #: index msgid "textarea" @@ -787,7 +802,12 @@ msgstr "Textbereichsfeld" #. Default: "Thank you message" #: schemaFormBlock/schema msgid "thankyou" -msgstr "" +msgstr "Dankesnachricht" + +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "Ein Text mit einfacher Formatierung kann eingegeben werden. Außerdem ist es möglich, Variablen zu verwenden; ${field_id} kann verwendet werden, um den Wert eines Feldes im Formular anzuzeigen. Die Variable ${formfields} listet alle Formularfelder in einer tabellarischen Ansicht auf." #. Default: "Time" #: index diff --git a/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po index f09b592..7f66320 100644 --- a/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/en/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "Description" msgid "fieldId" msgstr "Field ID" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po index 4392c44..d8fcc46 100644 --- a/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/es/LC_MESSAGES/volto.po @@ -148,11 +148,6 @@ msgstr "Obligatorio" msgid "Select…" msgstr "Seleccionar..." -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -392,9 +387,9 @@ msgstr "Descripción" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -715,6 +710,16 @@ msgstr "El correo electrónico es incorrecto." msgid "formblock_requiredFieldMessage" msgstr "Rellena este campo" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -785,6 +790,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -795,6 +810,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po index 13cc3dd..d83f486 100644 --- a/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/eu/LC_MESSAGES/volto.po @@ -144,11 +144,6 @@ msgstr "Beharrezkoa" msgid "Select…" msgstr "Aukeratu..." -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -388,9 +383,9 @@ msgstr "Deskribapena" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -711,6 +706,16 @@ msgstr "Posta elektronikoa okerra da" msgid "formblock_requiredFieldMessage" msgstr "Bete eremua" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -781,6 +786,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -791,6 +806,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po index ce1ad83..2e5ec66 100644 --- a/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/fr/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po index 5fdf44b..097c0e3 100644 --- a/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/it/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "Obbligatorio" msgid "Select…" msgstr "Selezionare…" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "Descrizione" msgid "fieldId" msgstr "Identificativo" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "L'email inserita non è corretta" msgid "formblock_requiredFieldMessage" msgstr "Compila questo campo" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po index 8ead99e..4b2eede 100644 --- a/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/ja/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po index 1e10662..2707823 100644 --- a/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/nl/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po index 8ead99e..4b2eede 100644 --- a/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/pt/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po index 28d93b9..118c423 100644 --- a/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/pt_BR/LC_MESSAGES/volto.po @@ -148,11 +148,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -392,9 +387,9 @@ msgstr "descrição" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -715,6 +710,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -785,6 +790,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -795,6 +810,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po b/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po index 8ead99e..4b2eede 100644 --- a/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po +++ b/frontend/packages/volto-form-block/locales/ro/LC_MESSAGES/volto.po @@ -142,11 +142,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -386,9 +381,9 @@ msgstr "" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -709,6 +704,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -779,6 +784,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -789,6 +804,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/locales/volto.pot b/frontend/packages/volto-form-block/locales/volto.pot index b659155..cced0fc 100644 --- a/frontend/packages/volto-form-block/locales/volto.pot +++ b/frontend/packages/volto-form-block/locales/volto.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2024-10-15T08:41:20.752Z\n" +"POT-Creation-Date: 2024-10-30T16:45:46.614Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "Content-Type: text/plain; charset=utf-8\n" @@ -144,11 +144,6 @@ msgstr "" msgid "Select…" msgstr "" -#. Default: "Send email" -#: schemaFormBlock/schema -msgid "Send email" -msgstr "" - #. Default: "Send email to admin" #: schemaFormBlock/schema msgid "Send email to admin" @@ -388,9 +383,9 @@ msgstr "" msgid "fieldId" msgstr "" -#. Default: "Confirmation email" +#. Default: "Mailing" #: schemaFormBlock/schema -msgid "fieldset_send_confirmation" +msgid "fieldset_mailing" msgstr "" #. Default: "Form" @@ -711,6 +706,16 @@ msgstr "" msgid "formblock_requiredFieldMessage" msgstr "" +#. Default: "Forward user to" +#: schemaFormBlock/schema +msgid "forward_user_to" +msgstr "" + +#. Default: "If a page is specified, the user will be directed there after submitting the form. The thank you message will not be displayed." +#: schemaFormBlock/schema +msgid "forward_user_to_description" +msgstr "" + #. Default: "Hidden" #: index msgid "hidden" @@ -781,6 +786,16 @@ msgstr "" msgid "static_text" msgstr "" +#. Default: "Success message" +#: schemaFormBlock/schema +msgid "success" +msgstr "" + +#. Default: "Thank you! You have submitted the following data:" +#: schemaFormBlock/schema +msgid "success_default" +msgstr "" + #. Default: "Textarea" #: index msgid "textarea" @@ -791,6 +806,11 @@ msgstr "" msgid "thankyou" msgstr "" +#. Default: "A text with simple formatting can be entered. Also it is possible to use variables; ${field_id} can be used to display the value of a field inside the form. The ${formfields} variable lists all form fields in a tabular view." +#: schemaFormBlock/schema +msgid "thankyou_description" +msgstr "" + #. Default: "Time" #: index msgid "time" diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx index eaeac49..4588fd8 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx @@ -11,6 +11,7 @@ import qs from 'query-string'; import { includes, keys, map, pickBy, without } from 'lodash'; import { Grid } from 'semantic-ui-react'; import config from '@plone/volto/registry'; +import { renderToString } from 'react-dom/server'; const messages = defineMessages({ error: { @@ -37,6 +38,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { const propertyNames = keys(data.schema.properties); const queryParams = qs.parse(location.search); let initialData = {}; + propertyNames.map((property) => { if (queryParams[property] !== undefined) { initialData[property] = queryParams[property]; @@ -79,6 +81,16 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { .then((resp) => { setSubmitted(true); setSubmittedData(submitData); + if ( + Array.isArray(data.forward_user_to) && + data.forward_user_to.length > 0 + ) { + window.location.href = data.forward_user_to[0]['@id']; + } else { + const url = new URL(window.location); + url.searchParams.set('send', 'true'); + history.pushState({}, '', url); + } }) .catch((err) => { let message = @@ -103,6 +115,21 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { }); }; + const formfields = renderToString( + + {map(keys(submittedData), (property) => ( + + {data.schema.properties[property].title} + {submittedData[property]} + + ))} + , + ); + + let thankyou = data.thankyou?.data || ''; + + thankyou = thankyou.replace('${formfields}', formfields); + return (
{data.title &&

{data.title}

} @@ -110,21 +137,14 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => {

{data.description}

)} {submitted ? ( - +
+
{data.success}

- {map(keys(submittedData), (property) => ( - - - {data.schema.properties[property].title} - - {submittedData[property]} - - ))} - +

) : (
{ 'submit_label', 'show_cancel', ...(data?.show_cancel ? ['cancel_label'] : []), + 'forward_user_to', + 'success', 'thankyou', 'captcha', ], }, { - id: 'send_confirmation', - title: intl.formatMessage(messages.fieldset_send_confirmation), + id: 'mailing', + title: intl.formatMessage(messages.fieldset_mailing), fields: [ 'send_confirmation', ...(data?.send_confirmation ? ['confirmation_recipients'] : []), - ], - }, - { - id: 'email', - title: intl.formatMessage(messages.fieldset_email), - fields: [ 'send', ...(data?.send ? [ @@ -271,12 +283,25 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { title: intl.formatMessage(messages.cancel_label), default: intl.formatMessage(messages.cancel), }, + forward_user_to: { + title: intl.formatMessage(messages.forward_user_to), + description: intl.formatMessage(messages.forward_user_to_description), + widget: 'object_browser', + mode: 'link', + allowExternals: true, + }, + success: { + type: 'string', + title: intl.formatMessage(messages.success), + default: intl.formatMessage(messages.success_default), + }, thankyou: { + type: 'string', title: intl.formatMessage(messages.thankyou), + description: intl.formatMessage(messages.thankyou_description), widget: 'richtext', - type: 'string', default: { - data: '

Send!

', + data: '${formfields}', }, }, captcha: { @@ -348,6 +373,15 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { description: intl.formatMessage( messages.confirmation_recipients_description, ), + choices: map( + filter( + keys(data.schema.properties), + (value) => + data.schema.properties[value].factory === 'label_email' || + data.schema.properties[value].factory === 'Email', + ), + (property) => [property, data.schema.properties[property].title], + ), }, }, required: conditional_required,