diff --git a/composer.lock b/composer.lock index 2f06fc1..c30dd1f 100644 --- a/composer.lock +++ b/composer.lock @@ -68,7 +68,7 @@ "source": { "type": "git", "url": "ssh://git@git.autonomic.zone:2222/autonomic-cooperative/goodnightout_opencase.git", - "reference": "eac98ff9d2ba86f163faba092cf284e9f16be7bf" + "reference": "004aa6b9f7998daead20dcee68b15ac2eb6ebfd4" }, "require": { "drupal/admin_toolbar": "*", @@ -86,7 +86,7 @@ "email": "helo@autonomic.zone" } ], - "time": "2021-11-27T17:25:29+00:00" + "time": "2021-12-30T15:16:02+00:00" }, { "name": "autonomic/opencase", @@ -94,7 +94,7 @@ "source": { "type": "git", "url": "ssh://git@git.autonomic.zone:2222/autonomic-cooperative/opencase.git", - "reference": "b194367eef6460ef61b921b4d97060aa64322fdb" + "reference": "240a55f54fd1a6a04d1989754ff7e05a9cdf9ec8" }, "require": { "composer/installers": "*", @@ -111,7 +111,7 @@ "email": "helo@autonomic.zone" } ], - "time": "2021-12-10T09:45:22+00:00" + "time": "2021-12-30T13:43:19+00:00" }, { "name": "bjeavons/zxcvbn-php", @@ -448,27 +448,28 @@ }, { "name": "consolidation/annotated-command", - "version": "4.4.0", + "version": "4.5.1", "source": { "type": "git", "url": "https://github.com/consolidation/annotated-command.git", - "reference": "308f6ac178566a1ce9aa90ed908dac90a2c1e707" + "reference": "701a7abe8505abe89520837be798e15a3953a367" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/308f6ac178566a1ce9aa90ed908dac90a2c1e707", - "reference": "308f6ac178566a1ce9aa90ed908dac90a2c1e707", + "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/701a7abe8505abe89520837be798e15a3953a367", + "reference": "701a7abe8505abe89520837be798e15a3953a367", "shasum": "" }, "require": { "consolidation/output-formatters": "^4.1.1", "php": ">=7.1.3", "psr/log": "^1|^2", - "symfony/console": "^4.4.8|~5.1.0", - "symfony/event-dispatcher": "^4.4.8|^5", - "symfony/finder": "^4.4.8|^5" + "symfony/console": "^4.4.8|^5|^6", + "symfony/event-dispatcher": "^4.4.8|^5|^6", + "symfony/finder": "^4.4.8|^5|^6" }, "require-dev": { + "composer-runtime-api": "^2.0", "phpunit/phpunit": "^7.5.20 || ^8 || ^9", "squizlabs/php_codesniffer": "^3", "yoast/phpunit-polyfills": "^0.2.0" @@ -497,9 +498,9 @@ "description": "Initialize Symfony Console commands from annotated command class methods.", "support": { "issues": "https://github.com/consolidation/annotated-command/issues", - "source": "https://github.com/consolidation/annotated-command/tree/4.4.0" + "source": "https://github.com/consolidation/annotated-command/tree/4.5.1" }, - "time": "2021-09-30T01:08:15+00:00" + "time": "2021-12-30T04:00:37+00:00" }, { "name": "consolidation/config", @@ -658,16 +659,16 @@ }, { "name": "consolidation/log", - "version": "2.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/consolidation/log.git", - "reference": "82a2aaaa621a7b976e50a745a8d249d5085ee2b1" + "reference": "82339860317d46eacf63e74d9c3b9b08b0adcfba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/log/zipball/82a2aaaa621a7b976e50a745a8d249d5085ee2b1", - "reference": "82a2aaaa621a7b976e50a745a8d249d5085ee2b1", + "url": "https://api.github.com/repos/consolidation/log/zipball/82339860317d46eacf63e74d9c3b9b08b0adcfba", + "reference": "82339860317d46eacf63e74d9c3b9b08b0adcfba", "shasum": "" }, "require": { @@ -704,36 +705,36 @@ "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.", "support": { "issues": "https://github.com/consolidation/log/issues", - "source": "https://github.com/consolidation/log/tree/2.0.2" + "source": "https://github.com/consolidation/log/tree/2.0.3" }, - "time": "2020-12-10T16:26:23+00:00" + "time": "2021-12-30T03:51:52+00:00" }, { "name": "consolidation/output-formatters", - "version": "4.1.3", + "version": "4.2.1", "source": { "type": "git", "url": "https://github.com/consolidation/output-formatters.git", - "reference": "2a1a541987f9a8ab7a680e1a382bd32188a24a9e" + "reference": "4413d7c732afb5d7bdac565c41aa9c8c49c48888" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/2a1a541987f9a8ab7a680e1a382bd32188a24a9e", - "reference": "2a1a541987f9a8ab7a680e1a382bd32188a24a9e", + "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/4413d7c732afb5d7bdac565c41aa9c8c49c48888", + "reference": "4413d7c732afb5d7bdac565c41aa9c8c49c48888", "shasum": "" }, "require": { "dflydev/dot-access-data": "^1.1.0", "php": ">=7.1.3", - "symfony/console": "^4|^5", - "symfony/finder": "^4|^5" + "symfony/console": "^4|^5|^6", + "symfony/finder": "^4|^5|^6" }, "require-dev": { "php-coveralls/php-coveralls": "^2.4.2", "phpunit/phpunit": ">=7", "squizlabs/php_codesniffer": "^3", - "symfony/var-dumper": "^4", - "symfony/yaml": "^4", + "symfony/var-dumper": "^4|^5|^6", + "symfony/yaml": "^4|^5|^6", "yoast/phpunit-polyfills": "^0.2.0" }, "suggest": { @@ -763,9 +764,9 @@ "description": "Format text by applying transformations provided by plug-in formatters.", "support": { "issues": "https://github.com/consolidation/output-formatters/issues", - "source": "https://github.com/consolidation/output-formatters/tree/4.1.3" + "source": "https://github.com/consolidation/output-formatters/tree/4.2.1" }, - "time": "2021-12-24T13:27:27+00:00" + "time": "2021-12-30T03:58:00+00:00" }, { "name": "consolidation/robo", @@ -2096,21 +2097,21 @@ }, { "name": "drupal/content_as_config", - "version": "1.0.3", + "version": "1.0.4", "source": { "type": "git", "url": "https://git.drupalcode.org/project/content_as_config.git", - "reference": "1.0.3" + "reference": "1.0.4" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/content_as_config-1.0.3.zip", - "reference": "1.0.3", - "shasum": "f8b9c2c256717901baef256a786c536dedbf1229" + "url": "https://ftp.drupal.org/files/projects/content_as_config-1.0.4.zip", + "reference": "1.0.4", + "shasum": "665ea0137a6a537641ab28c52572e47f21d76c58" }, "require": { "drupal/core": "^8.8 || ^9.0", - "php": "^7.4" + "php": "^7.4 || ^8" }, "conflict": { "drupal/structure_sync": "*" @@ -2121,8 +2122,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "1.0.3", - "datestamp": "1633362711", + "version": "1.0.4", + "datestamp": "1640792489", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -7024,16 +7025,16 @@ }, { "name": "symfony/finder", - "version": "v4.4.30", + "version": "v4.4.36", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "70362f1e112280d75b30087c7598b837c1b468b6" + "reference": "1fef05633cd61b629e963e5d8200fb6b67ecf42c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/70362f1e112280d75b30087c7598b837c1b468b6", - "reference": "70362f1e112280d75b30087c7598b837c1b468b6", + "url": "https://api.github.com/repos/symfony/finder/zipball/1fef05633cd61b629e963e5d8200fb6b67ecf42c", + "reference": "1fef05633cd61b629e963e5d8200fb6b67ecf42c", "shasum": "" }, "require": { @@ -7066,7 +7067,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v4.4.30" + "source": "https://github.com/symfony/finder/tree/v4.4.36" }, "funding": [ { @@ -7082,7 +7083,7 @@ "type": "tidelift" } ], - "time": "2021-08-04T20:31:23+00:00" + "time": "2021-12-15T10:33:10+00:00" }, { "name": "symfony/http-client-contracts", @@ -11577,16 +11578,16 @@ }, { "name": "symfony/config", - "version": "v4.4.34", + "version": "v4.4.36", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "e99b65a18faa34fde57078095c39a1bc91a22492" + "reference": "03218ffbd5faeda5e6a97f9109acebf7973ff385" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/e99b65a18faa34fde57078095c39a1bc91a22492", - "reference": "e99b65a18faa34fde57078095c39a1bc91a22492", + "url": "https://api.github.com/repos/symfony/config/zipball/03218ffbd5faeda5e6a97f9109acebf7973ff385", + "reference": "03218ffbd5faeda5e6a97f9109acebf7973ff385", "shasum": "" }, "require": { @@ -11635,7 +11636,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v4.4.34" + "source": "https://github.com/symfony/config/tree/v4.4.36" }, "funding": [ { @@ -11651,7 +11652,7 @@ "type": "tidelift" } ], - "time": "2021-10-29T15:43:26+00:00" + "time": "2021-12-12T15:06:47+00:00" }, { "name": "symfony/css-selector", @@ -11721,16 +11722,16 @@ }, { "name": "symfony/dom-crawler", - "version": "v4.4.30", + "version": "v4.4.36", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "4632ae3567746c7e915c33c67a2fb6ab746090c4" + "reference": "42de12bee3b5e594977209bcdf58ec4fef8dde39" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/4632ae3567746c7e915c33c67a2fb6ab746090c4", - "reference": "4632ae3567746c7e915c33c67a2fb6ab746090c4", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/42de12bee3b5e594977209bcdf58ec4fef8dde39", + "reference": "42de12bee3b5e594977209bcdf58ec4fef8dde39", "shasum": "" }, "require": { @@ -11775,7 +11776,7 @@ "description": "Eases DOM navigation for HTML and XML documents", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v4.4.30" + "source": "https://github.com/symfony/dom-crawler/tree/v4.4.36" }, "funding": [ { @@ -11791,7 +11792,7 @@ "type": "tidelift" } ], - "time": "2021-08-28T15:40:01+00:00" + "time": "2021-12-28T14:48:02+00:00" }, { "name": "symfony/polyfill-php81", diff --git a/config/block.block.accreditationcount.yml b/config/block.block.accreditationcount.yml index 327a9a6..246703f 100644 --- a/config/block.block.accreditationcount.yml +++ b/config/block.block.accreditationcount.yml @@ -15,6 +15,6 @@ plugin: accreditation_count settings: id: accreditation_count label: 'Accreditation Count' - provider: goodnightout_opencase label_display: visible + provider: goodnightout_opencase visibility: { } diff --git a/config/core.entity_form_display.oc_activity.phone_call.default.yml b/config/core.entity_form_display.oc_activity.phone_call.default.yml new file mode 100644 index 0000000..338cb38 --- /dev/null +++ b/config/core.entity_form_display.oc_activity.phone_call.default.yml @@ -0,0 +1,39 @@ +uuid: 739a9057-a782-4ee3-870d-11cf91173793 +langcode: en +status: true +dependencies: + config: + - opencase_entities.oc_activity_type.phone_call +id: oc_activity.phone_call.default +targetEntityType: oc_activity +bundle: phone_call +mode: default +content: + client: + type: entity_reference_autocomplete + weight: 2 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + name: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + time_taken: + type: number + weight: 1 + region: content + settings: + placeholder: '' + third_party_settings: { } +hidden: + activity_date_time: true + status: true diff --git a/config/core.entity_view_display.oc_activity.emi.default.yml b/config/core.entity_view_display.oc_activity.emi.default.yml new file mode 100644 index 0000000..70f80eb --- /dev/null +++ b/config/core.entity_view_display.oc_activity.emi.default.yml @@ -0,0 +1,49 @@ +uuid: 147b5ce7-db30-43de-98b8-248eb132570d +langcode: en +status: true +dependencies: + config: + - opencase_entities.oc_activity_type.emi + module: + - datetime + - user +id: oc_activity.emi.default +targetEntityType: oc_activity +bundle: emi +mode: default +content: + activity_date_time: + type: datetime_default + label: above + settings: + timezone_override: '' + format_type: medium + third_party_settings: { } + weight: 0 + region: content + client: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 1 + region: content + name: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 2 + region: content + user_id: + type: author + label: above + settings: { } + third_party_settings: { } + weight: 3 + region: content +hidden: + search_api_excerpt: true + time_taken: true diff --git a/config/core.entity_view_display.oc_activity.phone_call.default.yml b/config/core.entity_view_display.oc_activity.phone_call.default.yml new file mode 100644 index 0000000..ac28d6c --- /dev/null +++ b/config/core.entity_view_display.oc_activity.phone_call.default.yml @@ -0,0 +1,50 @@ +uuid: d9d0d719-aa17-435a-b85e-4936cde6b023 +langcode: en +status: true +dependencies: + config: + - opencase_entities.oc_activity_type.phone_call + module: + - user +id: oc_activity.phone_call.default +targetEntityType: oc_activity +bundle: phone_call +mode: default +content: + client: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 0 + region: content + name: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 2 + region: content + time_taken: + type: number_decimal + label: above + settings: + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true + third_party_settings: { } + weight: 1 + region: content + user_id: + type: author + label: above + settings: { } + third_party_settings: { } + weight: 3 + region: content +hidden: + activity_date_time: true + search_api_excerpt: true diff --git a/config/core.entity_view_display.oc_case.project.default.yml b/config/core.entity_view_display.oc_case.project.default.yml index 092741a..f16b2e7 100644 --- a/config/core.entity_view_display.oc_case.project.default.yml +++ b/config/core.entity_view_display.oc_case.project.default.yml @@ -17,45 +17,48 @@ targetEntityType: oc_case bundle: project mode: default content: - billing_details: - weight: 0 + activities: settings: { } third_party_settings: { } + weight: 0 + region: content + billing_details: + settings: { } + third_party_settings: { } + weight: 1 region: content client: type: entity_reference_label - weight: 3 - region: content label: above settings: link: true third_party_settings: { } - fees: - weight: 0 + weight: 5 region: content + fees: settings: { } third_party_settings: { } + weight: 2 + region: content field_contract_signed_date: - weight: 4 + type: datetime_default label: above settings: timezone_override: '' format_type: short third_party_settings: { } - type: datetime_default + weight: 6 region: content files: + type: file_default label: above settings: use_description_as_link_text: true - region: content - weight: 6 third_party_settings: { } - type: file_default + weight: 8 + region: content total_fee: type: number_decimal - weight: 1 - region: content label: above settings: thousand_separator: '' @@ -63,19 +66,23 @@ content: scale: 2 prefix_suffix: true third_party_settings: { } + weight: 3 + region: content trainings: - weight: 2 - region: content settings: { } third_party_settings: { } + weight: 4 + region: content user_id: - label: above type: author - weight: 5 - region: content + label: above settings: { } third_party_settings: { } + weight: 7 + region: content hidden: + changed: true + created: true feeds_item: true field_fee: true field_total_fee: true 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 8e59040..b42ae47 100644 --- a/config/core.entity_view_display.oc_case.training.default.yml +++ b/config/core.entity_view_display.oc_case.training.default.yml @@ -25,50 +25,55 @@ targetEntityType: oc_case bundle: training mode: default content: - activities_entity_view_1: - weight: 4 - region: content + activities: settings: { } third_party_settings: { } - client: - type: entity_reference_label weight: 0 region: content + activities_entity_view_1: + settings: { } + third_party_settings: { } + weight: 4 + region: content + client: + type: entity_reference_label label: above settings: link: true third_party_settings: { } + weight: 1 + region: content debriefs: - weight: 10 - region: content settings: { } third_party_settings: { } - debriefs_entity_view_1: - weight: 3 - region: content - settings: { } - third_party_settings: { } - evaluations: weight: 11 region: content + debriefs_entity_view_1: settings: { } third_party_settings: { } + weight: 3 + region: content + evaluations: + settings: { } + third_party_settings: { } + weight: 12 + region: content evaluations_entity_view_1: + settings: { } + third_party_settings: { } weight: 4 region: content - settings: { } - third_party_settings: { } field_date_of_training: - weight: 4 + type: datetime_default label: above settings: - format_type: medium timezone_override: '' + format_type: medium third_party_settings: { } - type: datetime_default + weight: 5 region: content field_fee: - weight: 3 + type: number_decimal label: above settings: thousand_separator: '' @@ -76,91 +81,93 @@ content: scale: 2 prefix_suffix: true third_party_settings: { } - type: number_decimal + weight: 3 region: content field_fee_category: type: list_default - weight: 2 - region: content label: above settings: { } third_party_settings: { } + weight: 2 + region: content field_number_of_participants: - weight: 6 + type: number_integer label: above settings: thousand_separator: '' prefix_suffix: true third_party_settings: { } - type: number_integer + weight: 7 region: content field_project: - weight: 1 + type: entity_reference_label label: above settings: link: true third_party_settings: { } - type: entity_reference_label + weight: 2 region: content field_social_media: - weight: 7 + type: boolean label: above settings: format: default format_custom_false: '' format_custom_true: '' third_party_settings: { } - type: boolean + weight: 8 region: content field_training_delivery_format: - weight: 5 + type: list_default label: above settings: { } third_party_settings: { } - type: list_default + weight: 6 region: content field_training_status: - weight: 3 + type: list_default label: above settings: { } third_party_settings: { } - type: list_default + weight: 4 region: content field_training_type: - weight: 2 + type: list_default label: above settings: { } third_party_settings: { } - type: list_default + weight: 3 region: content files: + type: file_default label: above settings: use_description_as_link_text: true - region: content - weight: 8 third_party_settings: { } - type: file_default - notes: - type: basic_string - weight: 13 - region: content - label: above - settings: { } - third_party_settings: { } - trainers: weight: 9 region: content - settings: { } - third_party_settings: { } - user_id: + notes: + type: basic_string label: above - type: author - weight: 12 - region: content settings: { } third_party_settings: { } + weight: 14 + region: content + trainers: + settings: { } + third_party_settings: { } + weight: 10 + region: content + user_id: + type: author + label: above + settings: { } + third_party_settings: { } + weight: 13 + region: content hidden: + changed: true + created: true feeds_item: true field_trainer: true search_api_excerpt: true 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 29fea76..b18de23 100644 --- a/config/core.entity_view_display.oc_organisation.client.default.yml +++ b/config/core.entity_view_display.oc_organisation.client.default.yml @@ -29,128 +29,133 @@ targetEntityType: oc_organisation bundle: client mode: default content: + activities: + settings: { } + third_party_settings: { } + weight: 3 + region: content field_accreditation_date: - weight: 8 + type: datetime_default label: above settings: timezone_override: '' format_type: short third_party_settings: { } - type: datetime_default + weight: 9 region: content field_client_status: - weight: 7 + type: entity_reference_label label: above settings: link: false third_party_settings: { } - type: entity_reference_label + weight: 8 region: content field_client_substatus: - weight: 6 + type: entity_reference_label label: above settings: link: false third_party_settings: { } - type: entity_reference_label + weight: 7 region: content field_client_subtype: - weight: 5 + type: entity_reference_label label: above settings: link: false third_party_settings: { } - type: entity_reference_label + weight: 6 region: content field_client_type: - weight: 4 + type: entity_reference_label label: above settings: link: false third_party_settings: { } - type: entity_reference_label + weight: 5 region: content field_how_did_you_hear_about_us: - weight: 15 + type: list_default label: above settings: { } third_party_settings: { } - type: list_default + weight: 16 region: content field_location_festival_event: - weight: 12 + type: string label: above settings: link_to_entity: false third_party_settings: { } - type: string + weight: 13 region: content field_number_of_events_per_year: - weight: 13 + type: number_integer label: above settings: thousand_separator: '' prefix_suffix: true third_party_settings: { } - type: number_integer + weight: 14 region: content field_number_of_staff: - weight: 11 + type: number_integer label: above settings: thousand_separator: '' prefix_suffix: true third_party_settings: { } - type: number_integer + weight: 12 region: content field_premises_capacity: - weight: 10 + type: number_integer label: above settings: thousand_separator: '' prefix_suffix: true third_party_settings: { } - type: number_integer + weight: 11 region: content field_tags: - weight: 14 + type: entity_reference_label label: above settings: link: false third_party_settings: { } - type: entity_reference_label + weight: 15 region: content field_umbrella_client: - weight: 9 + type: entity_reference_label label: above settings: link: true third_party_settings: { } - type: entity_reference_label + weight: 10 region: content linked_clients: - weight: 0 - region: content settings: { } third_party_settings: { } - name: - label: hidden - type: string - weight: 3 + weight: 0 region: content + name: + type: string + label: hidden settings: link_to_entity: false third_party_settings: { } + weight: 4 + region: content projects: + settings: { } + third_party_settings: { } weight: 2 region: content + trainings: settings: { } third_party_settings: { } - trainings: weight: 1 region: content - settings: { } - third_party_settings: { } hidden: feeds_item: true field_images: true diff --git a/config/entity_extra_field.extra_field.oc_case.project.activities.yml b/config/entity_extra_field.extra_field.oc_case.project.activities.yml new file mode 100644 index 0000000..e25456f --- /dev/null +++ b/config/entity_extra_field.extra_field.oc_case.project.activities.yml @@ -0,0 +1,48 @@ +uuid: 5dcb8bf1-2961-42ac-b031-3d152ae78c5d +langcode: en +status: true +dependencies: + config: + - opencase_entities.oc_activity_type.evaluation + - opencase_entities.oc_activity_type.trainer_debrief + - user.role.gno_admin_user + module: + - datetime + - opencase_entities + - user +id: oc_case.project.activities +label: Activities +display_label: true +name: activities +description: '' +base_entity_type_id: oc_case +base_bundle_type_id: project +field_type_id: views +field_type_config: + view_name: activities_without_case + display: block_2 + arguments: '' +field_type_condition: + 'entity_bundle:oc_case': + id: 'entity_bundle:oc_case' + negate: false + context_mapping: + oc_case: entity_extra_field.target_entity + bundles: + project: project + training: training + route: + id: route + negate: false + routes: '' + request_path: + id: request_path + negate: false + pages: '' + current_theme: + id: current_theme + theme: '' + negate: 0 +field_conditions_all_pass: false +display: + type: view diff --git a/config/entity_extra_field.extra_field.oc_case.training.activities.yml b/config/entity_extra_field.extra_field.oc_case.training.activities.yml new file mode 100644 index 0000000..0116960 --- /dev/null +++ b/config/entity_extra_field.extra_field.oc_case.training.activities.yml @@ -0,0 +1,48 @@ +uuid: 59986339-28c0-46b7-a224-5e9a2196bb8c +langcode: en +status: true +dependencies: + config: + - opencase_entities.oc_activity_type.evaluation + - opencase_entities.oc_activity_type.trainer_debrief + - user.role.gno_admin_user + module: + - datetime + - opencase_entities + - user +id: oc_case.training.activities +label: Activities +display_label: true +name: activities +description: '' +base_entity_type_id: oc_case +base_bundle_type_id: training +field_type_id: views +field_type_config: + view_name: activities_without_case + display: block_2 + arguments: '' +field_type_condition: + 'entity_bundle:oc_case': + id: 'entity_bundle:oc_case' + negate: false + context_mapping: + oc_case: entity_extra_field.target_entity + bundles: + project: project + training: training + route: + id: route + negate: false + routes: '' + request_path: + id: request_path + negate: false + pages: '' + current_theme: + id: current_theme + theme: '' + negate: 0 +field_conditions_all_pass: false +display: + type: view diff --git a/config/entity_extra_field.extra_field.oc_organisation.client.activities.yml b/config/entity_extra_field.extra_field.oc_organisation.client.activities.yml new file mode 100644 index 0000000..643b253 --- /dev/null +++ b/config/entity_extra_field.extra_field.oc_organisation.client.activities.yml @@ -0,0 +1,46 @@ +uuid: 78975dca-1800-41d5-96ad-bef6edbfcbb3 +langcode: en +status: true +dependencies: + config: + - user.role.gno_admin_user + module: + - datetime + - opencase_entities + - user +id: oc_organisation.client.activities +label: Activities +display_label: true +name: activities +description: 'Activities that do not relate to a specific training.' +base_entity_type_id: oc_organisation +base_bundle_type_id: client +field_type_id: views +field_type_config: + view_name: activities_without_case + display: block_1 + arguments: '' +field_type_condition: + 'entity_bundle:oc_organisation': + id: 'entity_bundle:oc_organisation' + negate: false + context_mapping: + oc_organisation: entity_extra_field.target_entity + bundles: + client: client + umbrella_client: umbrella_client + route: + id: route + negate: false + routes: '' + request_path: + id: request_path + negate: false + pages: '' + current_theme: + id: current_theme + theme: '' + negate: 0 +field_conditions_all_pass: false +display: + type: view diff --git a/config/opencase_entities.oc_activity_type.emi.yml b/config/opencase_entities.oc_activity_type.emi.yml new file mode 100644 index 0000000..39896e3 --- /dev/null +++ b/config/opencase_entities.oc_activity_type.emi.yml @@ -0,0 +1,6 @@ +uuid: d42c321e-4412-4963-8956-4a5646e9e3a3 +langcode: en +status: true +dependencies: { } +id: emi +label: Email diff --git a/config/opencase_entities.oc_activity_type.phone_call.yml b/config/opencase_entities.oc_activity_type.phone_call.yml new file mode 100644 index 0000000..9012953 --- /dev/null +++ b/config/opencase_entities.oc_activity_type.phone_call.yml @@ -0,0 +1,6 @@ +uuid: 35370264-20ab-4f4c-a0a5-dc7dc858d20d +langcode: en +status: true +dependencies: { } +id: phone_call +label: 'Phone call' diff --git a/config/views.view.activities_without_case.yml b/config/views.view.activities_without_case.yml new file mode 100644 index 0000000..60a0b71 --- /dev/null +++ b/config/views.view.activities_without_case.yml @@ -0,0 +1,665 @@ +uuid: 8328f802-8577-4bf7-b908-44ca55102832 +langcode: en +status: true +dependencies: + config: + - opencase_entities.oc_activity_type.evaluation + - opencase_entities.oc_activity_type.trainer_debrief + - user.role.gno_admin_user + module: + - datetime + - opencase_entities + - user +id: activities_without_case +label: Activities +module: views +description: '' +tag: '' +base_table: oc_activity_field_data +base_field: id +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Activities without case' + fields: + type: + id: type + table: oc_activity_field_data + field: type + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + entity_field: type + plugin_id: field + label: 'Activity type' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: target_id + type: entity_reference_label + settings: + link: false + group_column: target_id + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + activity_date_time: + id: activity_date_time + table: oc_activity_field_data + field: activity_date_time + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + entity_field: activity_date_time + plugin_id: field + label: Date + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: datetime_default + settings: + timezone_override: '' + format_type: short + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + name: + id: name + table: oc_activity_field_data + field: name + relationship: none + group_type: group + admin_label: '' + entity_type: null + entity_field: name + plugin_id: field + label: Subject + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: false + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + description: + id: description + table: oc_activity_field_data + field: description + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + entity_field: description + plugin_id: field + label: Notes + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 200 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: true + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + view_oc_activity: + id: view_oc_activity + table: oc_activity + field: view_oc_activity + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + plugin_id: entity_link + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: view + output_url_as_text: false + absolute: false + edit_oc_activity: + id: edit_oc_activity + table: oc_activity + field: edit_oc_activity + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + plugin_id: entity_link_edit + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + text: edit + output_url_as_text: false + absolute: false + pager: + type: full + options: + offset: 0 + items_per_page: 10 + total_pages: null + id: 0 + tags: + next: 'Next ›' + previous: '‹ Previous' + first: '« First' + last: 'Last »' + expose: + items_per_page: false + items_per_page_label: 'Items per page' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- All -' + offset: false + offset_label: Offset + quantity: 9 + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + access: + type: role + options: + role: + gno_admin_user: gno_admin_user + cache: + type: tag + options: { } + empty: { } + sorts: { } + arguments: + client: + id: client + table: oc_activity_field_data + field: client + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + entity_field: client + plugin_id: numeric + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: raw + default_argument_options: + index: 2 + use_alias: false + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + filters: { } + style: + type: table + row: + type: fields + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + header: { } + footer: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: "Add phone call\r\n" + tokenize: true + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: { } + block_1: + id: block_1 + display_title: 'Without case' + display_plugin: block + position: 1 + display_options: + defaults: + footer: false + display_description: '' + footer: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: "Add phone call\r\n\r\nAdd email" + tokenize: true + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: { } + block_2: + id: block_2 + display_title: 'With case' + display_plugin: block + position: 2 + display_options: + title: 'Activities with case' + arguments: + oc_case: + id: oc_case + table: oc_activity_field_data + field: oc_case + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + entity_field: oc_case + plugin_id: numeric + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: raw + default_argument_options: + index: 2 + use_alias: false + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + filters: + type: + id: type + table: oc_activity_field_data + field: type + relationship: none + group_type: group + admin_label: '' + entity_type: oc_activity + entity_field: type + plugin_id: bundle + operator: 'not in' + value: + evaluation: evaluation + trainer_debrief: trainer_debrief + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: + 1: AND + defaults: + title: false + arguments: false + filters: false + filter_groups: false + footer: false + display_description: '' + footer: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: "Add phone call\r\n\r\nAdd email\r\n" + tokenize: true + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: { }