Skip to content

Commit

Permalink
refactor: update readme + translations
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Aug 3, 2021
1 parent 29cacb1 commit 62b25c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ config.blocks.blocksConfig.form.additionalFields.push({
});
```

The widget should have the following firm:

```js
({ id, name, title, description, required, onChange, value, isDisabled, invalid }) => ReactElement;
```

## Static fields

In backend integration, you can add in block data an object called `static_fields` and the form block will show those in form view as readonly and will aggregate those with user compiled data.
Expand Down
4 changes: 2 additions & 2 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ msgstr "Form"

#: components/Sidebar
msgid "description"
msgstr ""
msgstr "Description"

#: components/Form
msgid "formSubmitted"
Expand Down Expand Up @@ -182,4 +182,4 @@ msgstr "If selected, this will be the address the receiver can use to reply."

#: components/Sidebar
msgid "title"
msgstr ""
msgstr "Title"
4 changes: 2 additions & 2 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ msgstr "Form"

#: components/Sidebar
msgid "description"
msgstr ""
msgstr "Descrizione"

#: components/Form
msgid "formSubmitted"
Expand Down Expand Up @@ -182,4 +182,4 @@ msgstr "Se selezionato, questo sarà l'indirizzo a cui il destinatario potrà ri

#: components/Sidebar
msgid "title"
msgstr ""
msgstr "Titolo"

0 comments on commit 62b25c2

Please sign in to comment.