diff --git a/config/core.entity_form_display.oc_case.training.default.yml b/config/core.entity_form_display.oc_case.training.default.yml index c484f70..aaf3417 100644 --- a/config/core.entity_form_display.oc_case.training.default.yml +++ b/config/core.entity_form_display.oc_case.training.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.oc_case.training.field_date_of_training + - field.field.oc_case.training.field_project - field.field.oc_case.training.field_trainer - field.field.oc_case.training.field_training_status - field.field.oc_case.training.field_training_type @@ -25,6 +26,16 @@ content: third_party_settings: { } type: datetime_default region: content + field_project: + weight: 26 + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content field_trainer: type: entity_reference_paragraphs weight: 3 diff --git a/config/core.entity_form_display.oc_case.training_for_umbrella_client.default.yml b/config/core.entity_form_display.oc_case.training_for_umbrella_client.default.yml index 9cb55b5..17647f5 100644 --- a/config/core.entity_form_display.oc_case.training_for_umbrella_client.default.yml +++ b/config/core.entity_form_display.oc_case.training_for_umbrella_client.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.oc_case.training_for_umbrella_client.field_date_of_training + - field.field.oc_case.training_for_umbrella_client.field_project - field.field.oc_case.training_for_umbrella_client.field_trainer - field.field.oc_case.training_for_umbrella_client.field_training_type_umbrella - opencase_cases.oc_case_type.training_for_umbrella_client @@ -22,6 +23,16 @@ content: third_party_settings: { } type: datetime_default region: content + field_project: + weight: 26 + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content field_trainer: weight: 2 settings: diff --git a/config/core.entity_view_display.oc_case.training.default.yml b/config/core.entity_view_display.oc_case.training.default.yml index 157231f..8152ce0 100644 --- a/config/core.entity_view_display.oc_case.training.default.yml +++ b/config/core.entity_view_display.oc_case.training.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.oc_case.training.field_date_of_training + - field.field.oc_case.training.field_project - field.field.oc_case.training.field_trainer - field.field.oc_case.training.field_training_status - field.field.oc_case.training.field_training_type @@ -73,6 +74,14 @@ content: label: above settings: { } third_party_settings: { } + field_project: + weight: 83 + label: above + settings: + link: true + third_party_settings: { } + type: entity_reference_label + region: content field_trainer: type: entity_reference_revisions_entity_view weight: 3 diff --git a/config/core.entity_view_display.oc_case.training_for_umbrella_client.default.yml b/config/core.entity_view_display.oc_case.training_for_umbrella_client.default.yml index 9707f1f..88c8eec 100644 --- a/config/core.entity_view_display.oc_case.training_for_umbrella_client.default.yml +++ b/config/core.entity_view_display.oc_case.training_for_umbrella_client.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - field.field.oc_case.training_for_umbrella_client.field_date_of_training + - field.field.oc_case.training_for_umbrella_client.field_project - field.field.oc_case.training_for_umbrella_client.field_trainer - field.field.oc_case.training_for_umbrella_client.field_training_type_umbrella - opencase_cases.oc_case_type.training_for_umbrella_client @@ -27,6 +28,14 @@ content: third_party_settings: { } type: datetime_default region: content + field_project: + weight: 92 + label: above + settings: + link: true + third_party_settings: { } + type: entity_reference_label + region: content field_trainer: weight: 86 label: above diff --git a/config/field.field.oc_case.training.field_project.yml b/config/field.field.oc_case.training.field_project.yml new file mode 100644 index 0000000..5e86e20 --- /dev/null +++ b/config/field.field.oc_case.training.field_project.yml @@ -0,0 +1,28 @@ +uuid: c25be4d0-c1a4-449d-a1f5-5fd249764339 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case.field_project + - opencase_cases.oc_case_type.project + - opencase_cases.oc_case_type.training +id: oc_case.training.field_project +field_name: field_project +entity_type: oc_case +bundle: training +label: Project +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:oc_case' + handler_settings: + target_bundles: + project: project + sort: + field: _none + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/field.field.oc_case.training_for_umbrella_client.field_project.yml b/config/field.field.oc_case.training_for_umbrella_client.field_project.yml new file mode 100644 index 0000000..ca8df6a --- /dev/null +++ b/config/field.field.oc_case.training_for_umbrella_client.field_project.yml @@ -0,0 +1,28 @@ +uuid: 1e8039f2-6d75-4f4c-abaa-5a636ab23621 +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case.field_project + - opencase_cases.oc_case_type.project + - opencase_cases.oc_case_type.training_for_umbrella_client +id: oc_case.training_for_umbrella_client.field_project +field_name: field_project +entity_type: oc_case +bundle: training_for_umbrella_client +label: Project +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + handler: 'default:oc_case' + handler_settings: + target_bundles: + project: project + sort: + field: _none + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/field.storage.oc_case.field_project.yml b/config/field.storage.oc_case.field_project.yml new file mode 100644 index 0000000..6b67c83 --- /dev/null +++ b/config/field.storage.oc_case.field_project.yml @@ -0,0 +1,23 @@ +uuid: 03c0bad7-1a84-4ae4-8d33-753336652a7b +langcode: en +status: true +dependencies: + module: + - field_permissions + - opencase_cases +third_party_settings: + field_permissions: + permission_type: public +id: oc_case.field_project +field_name: field_project +entity_type: oc_case +type: entity_reference +settings: + target_type: oc_case +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false