Config for number_of_participants field

This commit is contained in:
naomi 2021-09-11 20:51:13 +01:00
parent c48d4f1d1d
commit 8c7b43f53f
6 changed files with 67 additions and 9 deletions

4
composer.lock generated
View File

@ -64,7 +64,7 @@
"source": {
"type": "git",
"url": "ssh://git@git.autonomic.zone:2222/autonomic-cooperative/goodnightout_opencase.git",
"reference": "809421c5a8af27c2792684ceb5ad36344f801731"
"reference": "a5e8e6d1de5f486b9b70ef6db85b16187c28d0f3"
},
"require": {
"drupal/admin_toolbar": "*",
@ -81,7 +81,7 @@
"email": "helo@autonomic.zone"
}
],
"time": "2021-09-11T14:35:31+00:00"
"time": "2021-09-11T19:10:22+00:00"
},
{
"name": "autonomic/opencase",

View File

@ -413,4 +413,3 @@ c0c6397d-4f7c-4077-af51-1860ccad26a3:
description: ''
weight: '15'
parent: '0'

View File

@ -4,6 +4,7 @@ status: true
dependencies:
config:
- field.field.oc_case.training.field_date_of_training
- field.field.oc_case.training.field_number_of_participants
- field.field.oc_case.training.field_project
- field.field.oc_case.training.field_social_media
- field.field.oc_case.training.field_trainer
@ -48,7 +49,7 @@ content:
type: entity_reference_autocomplete
region: content
field_social_media:
weight: 26
weight: 7
settings:
display_label: true
third_party_settings: { }
@ -86,4 +87,5 @@ content:
region: content
third_party_settings: { }
hidden:
field_number_of_participants: true
user_id: true

View File

@ -4,6 +4,7 @@ status: true
dependencies:
config:
- field.field.oc_case.training.field_date_of_training
- field.field.oc_case.training.field_number_of_participants
- field.field.oc_case.training.field_project
- field.field.oc_case.training.field_social_media
- field.field.oc_case.training.field_trainer
@ -37,7 +38,7 @@ content:
link: true
third_party_settings: { }
debriefs:
weight: 7
weight: 9
region: content
settings: { }
third_party_settings: { }
@ -47,7 +48,7 @@ content:
settings: { }
third_party_settings: { }
evaluations:
weight: 8
weight: 10
region: content
settings: { }
third_party_settings: { }
@ -83,6 +84,15 @@ content:
label: above
settings: { }
third_party_settings: { }
field_number_of_participants:
weight: 6
label: above
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
type: number_integer
region: content
field_project:
weight: 1
label: above
@ -92,7 +102,7 @@ content:
type: entity_reference_label
region: content
field_social_media:
weight: 81
weight: 7
label: above
settings:
format: default
@ -129,13 +139,13 @@ content:
settings:
use_description_as_link_text: true
region: content
weight: 6
weight: 8
third_party_settings: { }
type: file_default
user_id:
label: above
type: author
weight: 9
weight: 11
region: content
settings: { }
third_party_settings: { }

View File

@ -0,0 +1,23 @@
uuid: 588f54aa-5542-4e6c-902b-88ccc3088dc4
langcode: en
status: true
dependencies:
config:
- field.storage.oc_case.field_number_of_participants
- opencase_cases.oc_case_type.training
id: oc_case.training.field_number_of_participants
field_name: field_number_of_participants
entity_type: oc_case
bundle: training
label: 'Number of participants'
description: 'This is a read-only field which will be populated when a trainer submits their debrief.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: integer

View File

@ -0,0 +1,24 @@
uuid: 7278be3c-e085-452a-93d4-09e8e7b24c60
langcode: en
status: true
dependencies:
module:
- field_permissions
- opencase_cases
third_party_settings:
field_permissions:
permission_type: public
id: oc_case.field_number_of_participants
field_name: field_number_of_participants
entity_type: oc_case
type: integer
settings:
unsigned: false
size: normal
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false