Skip to content

Commit bc08fb8

Browse files
authored
feat: added conditions to show or hide fields (#129)
* feat: added conditions for visible fields * fix: fixed conditions * fix: fixed intl formatMessage conditions select * chore: updated required field with its helptext
1 parent e6265f5 commit bc08fb8

File tree

21 files changed

+2262
-26
lines changed

21 files changed

+2262
-26
lines changed

locales/de/LC_MESSAGES/volto.po

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,56 @@ msgstr "Drücken Sie die linke Pfeiltaste, um die ausgewählten Werte hervorzuhe
226226
msgid "captcha"
227227
msgstr "Captcha-Anbieter"
228228

229+
#: helpers/conditions-list
230+
# defaultMessage: Contains
231+
msgid "condition_contains"
232+
msgstr ""
233+
234+
#: helpers/conditions-list
235+
# defaultMessage: Greater or equal
236+
msgid "condition_greater_or_equal"
237+
msgstr ""
238+
239+
#: helpers/conditions-list
240+
# defaultMessage: Greater than
241+
msgid "condition_greater_than"
242+
msgstr ""
243+
244+
#: helpers/conditions-list
245+
# defaultMessage: Is empty
246+
msgid "condition_is_empty"
247+
msgstr ""
248+
249+
#: helpers/conditions-list
250+
# defaultMessage: Is equal to
251+
msgid "condition_is_equal_to"
252+
msgstr ""
253+
254+
#: helpers/conditions-list
255+
# defaultMessage: Is not empty
256+
msgid "condition_is_not_empty"
257+
msgstr ""
258+
259+
#: helpers/conditions-list
260+
# defaultMessage: Is not equal to
261+
msgid "condition_is_not_equal_to"
262+
msgstr ""
263+
264+
#: helpers/conditions-list
265+
# defaultMessage: Less or equal
266+
msgid "condition_less_or_equal"
267+
msgstr ""
268+
269+
#: helpers/conditions-list
270+
# defaultMessage: Less than
271+
msgid "condition_less_than"
272+
msgstr ""
273+
274+
#: helpers/conditions-list
275+
# defaultMessage: Not contains
276+
msgid "condition_not_contains"
277+
msgstr ""
278+
229279
#: formSchema
230280
# defaultMessage: Description
231281
msgid "description"
@@ -369,6 +419,11 @@ msgstr "Bezeichung"
369419
msgid "form_field_required"
370420
msgstr "Erforderlich"
371421

422+
#: fieldSchema
423+
# defaultMessage: If visibility conditions have been added to the field, it is advisable not to apply the requirement.
424+
msgid "form_field_required_info_text"
425+
msgstr ""
426+
372427
#: fieldSchema
373428
# defaultMessage: Field type
374429
msgid "form_field_type"
@@ -613,3 +668,68 @@ msgstr "Ergebnis"
613668
# defaultMessage: Title
614669
msgid "title"
615670
msgstr "Titel"
671+
672+
#: components/Widget/VisibilityConditionsWidget
673+
# defaultMessage: Add condition
674+
msgid "visible_conditions_widget_add"
675+
msgstr ""
676+
677+
#: components/Widget/VisibilityConditionsWidget
678+
# defaultMessage: and
679+
msgid "visible_conditions_widget_and"
680+
msgstr ""
681+
682+
#: components/Widget/VisibilityConditionsWidget
683+
# defaultMessage: Apply
684+
msgid "visible_conditions_widget_apply"
685+
msgstr ""
686+
687+
#: components/Widget/VisibilityConditionsWidget
688+
# defaultMessage: Cancel
689+
msgid "visible_conditions_widget_cancel"
690+
msgstr ""
691+
692+
#: components/Widget/VisibilityConditionsWidget
693+
# defaultMessage: Delete condition
694+
msgid "visible_conditions_widget_delete"
695+
msgstr ""
696+
697+
#: components/Widget/VisibilityConditionsWidget
698+
# defaultMessage: Not checked
699+
msgid "visible_conditions_widget_false"
700+
msgstr ""
701+
702+
#: components/Widget/VisibilityConditionsWidget
703+
# defaultMessage: Select a field
704+
msgid "visible_conditions_widget_fields"
705+
msgstr ""
706+
707+
#: components/Widget/VisibilityConditionsWidget
708+
# defaultMessage: If
709+
msgid "visible_conditions_widget_if"
710+
msgstr ""
711+
712+
#: components/Widget/VisibilityConditionsWidget
713+
# defaultMessage: For this field it is not the best solution, we recommend changing the condition.
714+
msgid "visible_conditions_widget_not_satisfied"
715+
msgstr ""
716+
717+
#: components/Widget/VisibilityConditionsWidget
718+
# defaultMessage: Select a condition
719+
msgid "visible_conditions_widget_options"
720+
msgstr ""
721+
722+
#: components/Widget/VisibilityConditionsWidget
723+
# defaultMessage: Write text
724+
msgid "visible_conditions_widget_text"
725+
msgstr ""
726+
727+
#: components/Widget/VisibilityConditionsWidget
728+
# defaultMessage: Visible choices if
729+
msgid "visible_conditions_widget_title"
730+
msgstr ""
731+
732+
#: components/Widget/VisibilityConditionsWidget
733+
# defaultMessage: Checked
734+
msgid "visible_conditions_widget_true"
735+
msgstr ""

locales/en/LC_MESSAGES/volto.po

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,56 @@ msgstr ""
226226
msgid "captcha"
227227
msgstr ""
228228

229+
#: helpers/conditions-list
230+
# defaultMessage: Contains
231+
msgid "condition_contains"
232+
msgstr ""
233+
234+
#: helpers/conditions-list
235+
# defaultMessage: Greater or equal
236+
msgid "condition_greater_or_equal"
237+
msgstr ""
238+
239+
#: helpers/conditions-list
240+
# defaultMessage: Greater than
241+
msgid "condition_greater_than"
242+
msgstr ""
243+
244+
#: helpers/conditions-list
245+
# defaultMessage: Is empty
246+
msgid "condition_is_empty"
247+
msgstr ""
248+
249+
#: helpers/conditions-list
250+
# defaultMessage: Is equal to
251+
msgid "condition_is_equal_to"
252+
msgstr ""
253+
254+
#: helpers/conditions-list
255+
# defaultMessage: Is not empty
256+
msgid "condition_is_not_empty"
257+
msgstr ""
258+
259+
#: helpers/conditions-list
260+
# defaultMessage: Is not equal to
261+
msgid "condition_is_not_equal_to"
262+
msgstr ""
263+
264+
#: helpers/conditions-list
265+
# defaultMessage: Less or equal
266+
msgid "condition_less_or_equal"
267+
msgstr ""
268+
269+
#: helpers/conditions-list
270+
# defaultMessage: Less than
271+
msgid "condition_less_than"
272+
msgstr ""
273+
274+
#: helpers/conditions-list
275+
# defaultMessage: Not contains
276+
msgid "condition_not_contains"
277+
msgstr ""
278+
229279
#: formSchema
230280
# defaultMessage: Description
231281
msgid "description"
@@ -369,6 +419,11 @@ msgstr "Label"
369419
msgid "form_field_required"
370420
msgstr "Required"
371421

422+
#: fieldSchema
423+
# defaultMessage: If visibility conditions have been added to the field, it is advisable not to apply the requirement.
424+
msgid "form_field_required_info_text"
425+
msgstr ""
426+
372427
#: fieldSchema
373428
# defaultMessage: Field type
374429
msgid "form_field_type"
@@ -613,3 +668,68 @@ msgstr ""
613668
# defaultMessage: Title
614669
msgid "title"
615670
msgstr "Title"
671+
672+
#: components/Widget/VisibilityConditionsWidget
673+
# defaultMessage: Add condition
674+
msgid "visible_conditions_widget_add"
675+
msgstr ""
676+
677+
#: components/Widget/VisibilityConditionsWidget
678+
# defaultMessage: and
679+
msgid "visible_conditions_widget_and"
680+
msgstr ""
681+
682+
#: components/Widget/VisibilityConditionsWidget
683+
# defaultMessage: Apply
684+
msgid "visible_conditions_widget_apply"
685+
msgstr ""
686+
687+
#: components/Widget/VisibilityConditionsWidget
688+
# defaultMessage: Cancel
689+
msgid "visible_conditions_widget_cancel"
690+
msgstr ""
691+
692+
#: components/Widget/VisibilityConditionsWidget
693+
# defaultMessage: Delete condition
694+
msgid "visible_conditions_widget_delete"
695+
msgstr ""
696+
697+
#: components/Widget/VisibilityConditionsWidget
698+
# defaultMessage: Not checked
699+
msgid "visible_conditions_widget_false"
700+
msgstr ""
701+
702+
#: components/Widget/VisibilityConditionsWidget
703+
# defaultMessage: Select a field
704+
msgid "visible_conditions_widget_fields"
705+
msgstr ""
706+
707+
#: components/Widget/VisibilityConditionsWidget
708+
# defaultMessage: If
709+
msgid "visible_conditions_widget_if"
710+
msgstr ""
711+
712+
#: components/Widget/VisibilityConditionsWidget
713+
# defaultMessage: For this field it is not the best solution, we recommend changing the condition.
714+
msgid "visible_conditions_widget_not_satisfied"
715+
msgstr ""
716+
717+
#: components/Widget/VisibilityConditionsWidget
718+
# defaultMessage: Select a condition
719+
msgid "visible_conditions_widget_options"
720+
msgstr ""
721+
722+
#: components/Widget/VisibilityConditionsWidget
723+
# defaultMessage: Write text
724+
msgid "visible_conditions_widget_text"
725+
msgstr ""
726+
727+
#: components/Widget/VisibilityConditionsWidget
728+
# defaultMessage: Visible choices if
729+
msgid "visible_conditions_widget_title"
730+
msgstr ""
731+
732+
#: components/Widget/VisibilityConditionsWidget
733+
# defaultMessage: Checked
734+
msgid "visible_conditions_widget_true"
735+
msgstr ""

0 commit comments

Comments
 (0)