Added accreditation date field to clients

This commit is contained in:
naomi 2021-09-13 09:35:36 +01:00
parent 544abaebc5
commit 00f32ea4cb
4 changed files with 64 additions and 0 deletions

View File

@ -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: { }

View File

@ -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

View File

@ -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

View File

@ -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