diff --git a/config/business_rules.action.test.yml b/config/business_rules.action.test.yml new file mode 100644 index 0000000..0a8935b --- /dev/null +++ b/config/business_rules.action.test.yml @@ -0,0 +1,20 @@ +uuid: 2413d003-09ef-49e7-b1b5-6663c3acdee5 +langcode: en +status: true +dependencies: { } +id: test +label: 'send email' +description: test +settings: + use_site_mail_as_sender: true + from: '' + to: naomi@aktivix.org + subject: test + format: text + body: + value: "

test

\r\n" + format: full_html +tags: { } +type: send_email +target_entity_type: null +target_bundle: null diff --git a/config/business_rules.business_rule.email_notification_for_follow_up_due.yml b/config/business_rules.business_rule.email_notification_for_follow_up_due.yml new file mode 100644 index 0000000..d98efc7 --- /dev/null +++ b/config/business_rules.business_rule.email_notification_for_follow_up_due.yml @@ -0,0 +1,13 @@ +uuid: bb3e5774-81c5-44cb-93af-f8912b6ae421 +langcode: en +status: true +dependencies: { } +description: 'When a client gets the status "3-month follow-up due" or "6-month follow-up due", an email will be sent to the specified address.' +id: email_notification_for_follow_up_due +label: 'Email notification for follow-up due' +enabled: null +reacts_on: entity_update +items: { } +tags: { } +target_bundle: client +target_entity_type: oc_organisation diff --git a/config/business_rules.condition.whether_a_follow_up_is_due_on_this_client.yml b/config/business_rules.condition.whether_a_follow_up_is_due_on_this_client.yml new file mode 100644 index 0000000..e7b56bd --- /dev/null +++ b/config/business_rules.condition.whether_a_follow_up_is_due_on_this_client.yml @@ -0,0 +1,18 @@ +uuid: 435acfc6-3c1a-4182-bc8d-8de03599c754 +langcode: en +status: true +dependencies: + config: + - business_rules.action.test +id: whether_a_follow_up_is_due_on_this_client +label: 'Whether a follow-up is due on this client' +description: 'True if client substatus is one of "3-month follow-up due", "6-month follow-up due"' +settings: + field: field_client_substatus + data_to_compare: current_data + operator: '==' + value_to_compare: '25' +tags: { } +type: data_comparison +target_entity_type: oc_organisation +target_bundle: client diff --git a/config/core.entity_form_display.oc_organisation.umbrella_client.default.yml b/config/core.entity_form_display.oc_organisation.umbrella_client.default.yml index d4e0039..4ee3854 100644 --- a/config/core.entity_form_display.oc_organisation.umbrella_client.default.yml +++ b/config/core.entity_form_display.oc_organisation.umbrella_client.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.oc_organisation.umbrella_client.field_tags + - field.field.oc_organisation.umbrella_client.field_test - field.field.oc_organisation.umbrella_client.field_type_of_umbrella_client - opencase_entities.oc_organisation_type.umbrella_client module: @@ -25,6 +26,16 @@ content: third_party_settings: { } type: entity_reference_autocomplete region: content + field_test: + weight: 63 + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content field_type_of_umbrella_client: weight: -99 settings: { } diff --git a/config/core.entity_view_display.oc_organisation.umbrella_client.default.yml b/config/core.entity_view_display.oc_organisation.umbrella_client.default.yml index 44a9881..4d695e0 100644 --- a/config/core.entity_view_display.oc_organisation.umbrella_client.default.yml +++ b/config/core.entity_view_display.oc_organisation.umbrella_client.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.oc_organisation.umbrella_client.field_tags + - field.field.oc_organisation.umbrella_client.field_test - field.field.oc_organisation.umbrella_client.field_type_of_umbrella_client - opencase_entities.oc_organisation_type.umbrella_client module: @@ -29,6 +30,14 @@ content: third_party_settings: { } type: entity_reference_label region: content + field_test: + weight: 62 + label: above + settings: + link: true + third_party_settings: { } + type: entity_reference_label + region: content field_type_of_umbrella_client: weight: 4 label: above diff --git a/config/field.field.oc_organisation.umbrella_client.field_test.yml b/config/field.field.oc_organisation.umbrella_client.field_test.yml new file mode 100644 index 0000000..9d4f885 --- /dev/null +++ b/config/field.field.oc_organisation.umbrella_client.field_test.yml @@ -0,0 +1,21 @@ +uuid: ece7aa0b-b142-4be3-8947-49fbf2efd0c7 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_organisation.field_test + - opencase_entities.oc_organisation_type.umbrella_client +id: oc_organisation.umbrella_client.field_test +field_name: field_test +entity_type: oc_organisation +bundle: umbrella_client +label: test +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: { } +field_type: entity_reference diff --git a/config/field.storage.oc_organisation.field_test.yml b/config/field.storage.oc_organisation.field_test.yml new file mode 100644 index 0000000..5de37e5 --- /dev/null +++ b/config/field.storage.oc_organisation.field_test.yml @@ -0,0 +1,20 @@ +uuid: 60fe4fa2-1a5b-41f4-aa5b-4bef0b17b465 +langcode: en +status: true +dependencies: + module: + - opencase_entities + - taxonomy +id: oc_organisation.field_test +field_name: field_test +entity_type: oc_organisation +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false