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 9846f65..77a784f 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Abbrechen" @@ -178,9 +179,10 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" -msgstr "" +msgstr "Senden" #. Default: "Submit button label" #: schemaFormBlock/schema @@ -575,7 +577,7 @@ msgstr "Text" #. Default: "Textarea" #: fieldSchema msgid "form_field_type_textarea" -msgstr "Textfeld" +msgstr "Textbereichsfeld" #. Default: "{formDataCount} item(s) stored" #: components/Sidebar @@ -780,7 +782,7 @@ msgstr "Statischer Text" #. Default: "Textarea" #: index msgid "textarea" -msgstr "Textfeld" +msgstr "Textbereichsfeld" #. Default: "Thank you message" #: schemaFormBlock/schema 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 1bc1b49..f09b592 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Cancel" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 7238675..4392c44 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 @@ -35,6 +35,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Cancelar" @@ -184,6 +185,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 b688fc8..13cc3dd 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 @@ -31,6 +31,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Utzi" @@ -180,6 +181,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 72c43f3..ce1ad83 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Annuler" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 cceb0a1..5fdf44b 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Annulla" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 dc6c79f..8ead99e 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 adc3173..1e10662 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Annuleren" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 dc6c79f..8ead99e 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 75d4378..28d93b9 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 @@ -35,6 +35,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "Cancelar" @@ -184,6 +185,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" 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 dc6c79f..8ead99e 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 @@ -29,6 +29,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "" @@ -178,6 +179,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" diff --git a/frontend/packages/volto-form-block/locales/volto.pot b/frontend/packages/volto-form-block/locales/volto.pot index 863ea22..b659155 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-05T15:44:18.362Z\n" +"POT-Creation-Date: 2024-10-15T08:41:20.752Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \n" "Content-Type: text/plain; charset=utf-8\n" @@ -31,6 +31,7 @@ msgstr "" #. Default: "Cancel" #: components/Sidebar #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Cancel" msgstr "" @@ -180,6 +181,7 @@ msgstr "" #. Default: "Submit" #: schemaFormBlock/EditSchemaForm +#: schemaFormBlock/schema #: schemaFormBlock/ViewSchemaForm msgid "Submit" msgstr "" diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/EditSchemaForm.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/EditSchemaForm.jsx index 346365f..5bd5f6a 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/EditSchemaForm.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/EditSchemaForm.jsx @@ -67,6 +67,7 @@ class Edit extends Component { default: defaultEmptyData, filterFactory, additionalFactory, + allowEditId: true, }, }, required: [], diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx index 9d2f2df..772d5bb 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/ViewSchemaForm.jsx @@ -87,7 +87,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { }; return ( - <> +
{data.title &&

{data.title}

} {data.description && (

{data.description}

@@ -120,7 +120,7 @@ const FormBlockView = ({ data, id, properties, metadata, path }) => { cancelLabel={data.cancel_label || intl.formatMessage(messages.cancel)} /> )} - +
); }; diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js b/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js index 4e66723..d6bce38 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/schema.js @@ -26,6 +26,14 @@ const messages = defineMessages({ id: 'Cancel button label', defaultMessage: 'Cancel button label', }, + cancel: { + id: 'Cancel', + defaultMessage: 'Cancel', + }, + submit: { + id: 'Submit', + defaultMessage: 'Submit', + }, captcha: { id: 'captcha', defaultMessage: 'Captcha provider', @@ -201,8 +209,8 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { 'description', 'submit_label', 'show_cancel', - 'thankyou', ...(data?.show_cancel ? ['cancel_label'] : []), + 'thankyou', 'captcha', ], }, @@ -248,10 +256,11 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { }, description: { title: intl.formatMessage(messages.description), - type: 'textarea', + widget: 'textarea', }, submit_label: { title: intl.formatMessage(messages.submit_label), + default: intl.formatMessage(messages.submit), }, show_cancel: { type: 'boolean', @@ -260,6 +269,7 @@ export const schemaFormBlockSchema = ({ intl, ...props }) => { }, cancel_label: { title: intl.formatMessage(messages.cancel_label), + default: intl.formatMessage(messages.cancel), }, thankyou: { title: intl.formatMessage(messages.thankyou),