diff --git a/config/core.entity_form_display.oc_organisation.client.default.yml b/config/core.entity_form_display.oc_organisation.client.default.yml index 7de4697..b22f847 100644 --- a/config/core.entity_form_display.oc_organisation.client.default.yml +++ b/config/core.entity_form_display.oc_organisation.client.default.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.field.oc_organisation.client.field_accreditation_date - field.field.oc_organisation.client.field_client_status - field.field.oc_organisation.client.field_client_substatus - field.field.oc_organisation.client.field_client_subtype @@ -17,6 +18,7 @@ dependencies: - field.field.oc_organisation.client.field_umbrella_client - opencase_entities.oc_organisation_type.client module: + - datetime - file _core: default_config_hash: OUNi7pV7COebgUedxmuEz4ZF1VF4QDet2AcZ_2j3jQs @@ -25,6 +27,12 @@ targetEntityType: oc_organisation bundle: client mode: default content: + field_accreditation_date: + weight: 62 + settings: { } + third_party_settings: { } + type: datetime_default + region: content field_client_status: weight: 4 settings: { } diff --git a/config/core.entity_view_display.oc_organisation.client.default.yml b/config/core.entity_view_display.oc_organisation.client.default.yml index 8ced796..a23ddbb 100644 --- a/config/core.entity_view_display.oc_organisation.client.default.yml +++ b/config/core.entity_view_display.oc_organisation.client.default.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.field.oc_organisation.client.field_accreditation_date - field.field.oc_organisation.client.field_client_status - field.field.oc_organisation.client.field_client_substatus - field.field.oc_organisation.client.field_client_subtype @@ -17,6 +18,7 @@ dependencies: - field.field.oc_organisation.client.field_umbrella_client - opencase_entities.oc_organisation_type.client module: + - datetime - file - options _core: @@ -26,6 +28,15 @@ targetEntityType: oc_organisation bundle: client mode: default content: + field_accreditation_date: + weight: 62 + label: above + settings: + format_type: medium + timezone_override: '' + third_party_settings: { } + type: datetime_default + region: content field_client_status: weight: 6 label: above diff --git a/config/field.field.oc_organisation.client.field_accreditation_date.yml b/config/field.field.oc_organisation.client.field_accreditation_date.yml new file mode 100644 index 0000000..a69ab5c --- /dev/null +++ b/config/field.field.oc_organisation.client.field_accreditation_date.yml @@ -0,0 +1,21 @@ +uuid: 3261ac4b-36e5-483b-af01-ec2a7852ac5b +langcode: en +status: true +dependencies: + config: + - field.storage.oc_organisation.field_accreditation_date + - opencase_entities.oc_organisation_type.client + module: + - datetime +id: oc_organisation.client.field_accreditation_date +field_name: field_accreditation_date +entity_type: oc_organisation +bundle: client +label: 'Accreditation date' +description: 'If the client has more than one accreditation then this will show the date of the most recent one.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/config/field.storage.oc_organisation.field_accreditation_date.yml b/config/field.storage.oc_organisation.field_accreditation_date.yml new file mode 100644 index 0000000..3a3f6df --- /dev/null +++ b/config/field.storage.oc_organisation.field_accreditation_date.yml @@ -0,0 +1,24 @@ +uuid: dcd05ff2-5201-46ba-ae2a-3da730db0826 +langcode: en +status: true +dependencies: + module: + - datetime + - field_permissions + - opencase_entities +third_party_settings: + field_permissions: + permission_type: public +id: oc_organisation.field_accreditation_date +field_name: field_accreditation_date +entity_type: oc_organisation +type: datetime +settings: + datetime_type: date +module: datetime +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false