From 99d55e5f7620545898c3aca5d9a2f362b9aae689 Mon Sep 17 00:00:00 2001 From: naomi Date: Sat, 9 Jul 2022 15:19:48 +0100 Subject: [PATCH] Config for agile demo --- config/optional/block.block.addactivity.yml | 4 +- config/optional/block.block.addcase.yml | 25 + ...ck.block.exposedformactor_searchpage_1.yml | 8 +- ....block.views_block__activities_block_2.yml | 30 ++ ...isplay.oc_activity.application.default.yml | 17 +- ..._display.oc_activity.case_note.default.yml | 15 +- ...ity.destitution_funds_provided.default.yml | 19 +- ...form_display.oc_activity.email.default.yml | 13 +- ..._display.oc_activity.interview.default.yml | 13 +- ..._form_display.oc_activity.lete.default.yml | 13 +- ...display.oc_activity.phone_call.default.yml | 13 +- ...m_display.oc_activity.research.default.yml | 13 +- ..._display.oc_case.accommodation.default.yml | 32 +- ...y.oc_case.volunteer_engagement.default.yml | 41 ++ ...y_form_display.oc_case_fee.fee.default.yml | 27 +- ...y.oc_case_provision.caseworker.default.yml | 68 +-- ...w_display.oc_activity.research.default.yml | 15 +- ..._display.oc_case.accommodation.default.yml | 29 +- ...y.oc_case.volunteer_engagement.default.yml | 59 +++ ...y.oc_case_provision.caseworker.default.yml | 9 - ...r.volunteer.cases_this_person_provides.yml | 48 ++ ...teer.cases_with_this_person_as_target.yml} | 21 +- ...extra_field.oc_case.accommodation.fees.yml | 47 ++ ...ield.oc_case.volunteer_engagement.fees.yml | 53 ++ ...c_case_provision.caseworker.field_test.yml | 31 -- ...d.storage.oc_case_provision.field_test.yml | 20 - config/optional/views.view.activities.yml | 195 +++----- config/optional/views.view.case_fees.yml | 468 ++++++++++++++++++ .../optional/views.view.case_provisions.yml | 112 ++++- config/optional/views.view.cases.yml | 158 +++++- .../optional/views.view.cases_by_provider.yml | 136 ++++- 31 files changed, 1343 insertions(+), 409 deletions(-) create mode 100644 config/optional/block.block.addcase.yml create mode 100644 config/optional/block.block.views_block__activities_block_2.yml create mode 100644 config/optional/core.entity_form_display.oc_case.volunteer_engagement.default.yml create mode 100644 config/optional/core.entity_view_display.oc_case.volunteer_engagement.default.yml create mode 100644 config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_this_person_provides.yml rename config/optional/{entity_extra_field.extra_field.oc_actor.client.activities.yml => entity_extra_field.extra_field.oc_actor.volunteer.cases_with_this_person_as_target.yml} (65%) create mode 100644 config/optional/entity_extra_field.extra_field.oc_case.accommodation.fees.yml create mode 100644 config/optional/entity_extra_field.extra_field.oc_case.volunteer_engagement.fees.yml delete mode 100644 config/optional/field.field.oc_case_provision.caseworker.field_test.yml delete mode 100644 config/optional/field.storage.oc_case_provision.field_test.yml create mode 100644 config/optional/views.view.case_fees.yml diff --git a/config/optional/block.block.addactivity.yml b/config/optional/block.block.addactivity.yml index 2eae4c8..35afc15 100644 --- a/config/optional/block.block.addactivity.yml +++ b/config/optional/block.block.addactivity.yml @@ -1,4 +1,4 @@ -uuid: 036ff73a-049d-4979-abf0-95b1a9d1b830 +uuid: 50fe4dcf-2304-49df-94a5-62ccdc502480 langcode: en status: true dependencies: @@ -22,4 +22,4 @@ visibility: route: id: route negate: false - routes: entity.oc_actor.canonical + routes: entity.oc_case.canonical diff --git a/config/optional/block.block.addcase.yml b/config/optional/block.block.addcase.yml new file mode 100644 index 0000000..c4f9e31 --- /dev/null +++ b/config/optional/block.block.addcase.yml @@ -0,0 +1,25 @@ +uuid: bb5d9db9-0e12-4245-9911-16ea92bc7213 +langcode: en +status: true +dependencies: + module: + - opencase + - route_condition + theme: + - bartik +id: addcase +theme: bartik +region: sidebar_second +weight: 0 +provider: null +plugin: add_case +settings: + id: add_case + label: 'Add Case' + label_display: visible + provider: opencase +visibility: + route: + id: route + negate: false + routes: entity.oc_actor.canonical diff --git a/config/optional/block.block.exposedformactor_searchpage_1.yml b/config/optional/block.block.exposedformactor_searchpage_1.yml index 33ae8b8..199d91e 100644 --- a/config/optional/block.block.exposedformactor_searchpage_1.yml +++ b/config/optional/block.block.exposedformactor_searchpage_1.yml @@ -1,4 +1,4 @@ -uuid: d38425eb-15fe-4659-8595-57d566586633 +uuid: f229784f-13c0-4d97-8b3c-8a1a2bb31c00 langcode: en status: true dependencies: @@ -8,18 +8,16 @@ dependencies: - views theme: - bartik -_core: - default_config_hash: '-mPyVl2gaejJOcEbMNyCrKWvN61T9BXYb0mLKJ0wPBI' id: exposedformactor_searchpage_1 theme: bartik region: header -weight: -9 +weight: 0 provider: null plugin: 'views_exposed_filter_block:actor_search-page_1' settings: id: 'views_exposed_filter_block:actor_search-page_1' label: '' - label_display: '0' + label_display: visible provider: views views_label: '' visibility: { } diff --git a/config/optional/block.block.views_block__activities_block_2.yml b/config/optional/block.block.views_block__activities_block_2.yml new file mode 100644 index 0000000..978f356 --- /dev/null +++ b/config/optional/block.block.views_block__activities_block_2.yml @@ -0,0 +1,30 @@ +uuid: 62e27553-4443-4047-8212-2af44dd4afa1 +langcode: en +status: true +dependencies: + config: + - views.view.activities + module: + - route_condition + - views + theme: + - bartik +id: views_block__activities_block_2 +theme: bartik +region: content +weight: 0 +provider: null +plugin: 'views_block:activities-block_2' +settings: + id: 'views_block:activities-block_2' + label: '' + label_display: visible + provider: views + context_mapping: { } + views_label: '' + items_per_page: none +visibility: + route: + id: route + negate: false + routes: entity.oc_case.canonical diff --git a/config/optional/core.entity_form_display.oc_activity.application.default.yml b/config/optional/core.entity_form_display.oc_activity.application.default.yml index bd70d58..cf1c1cf 100644 --- a/config/optional/core.entity_form_display.oc_activity.application.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.application.default.yml @@ -19,7 +19,7 @@ content: third_party_settings: { } description: type: string_textarea - weight: 5 + weight: 4 region: content settings: rows: 5 @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -43,24 +43,15 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } time_taken: type: number - weight: 4 + weight: 3 region: content settings: placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_activity.case_note.default.yml b/config/optional/core.entity_form_display.oc_activity.case_note.default.yml index c29897e..f060d32 100644 --- a/config/optional/core.entity_form_display.oc_activity.case_note.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.case_note.default.yml @@ -19,7 +19,7 @@ content: third_party_settings: { } description: type: string_textarea - weight: 5 + weight: 4 region: content settings: rows: 5 @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 4 + weight: 1 region: content settings: size: 60 @@ -43,16 +43,6 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } time_taken: type: number weight: 3 @@ -61,6 +51,7 @@ content: placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_activity.destitution_funds_provided.default.yml b/config/optional/core.entity_form_display.oc_activity.destitution_funds_provided.default.yml index c9d5939..7c62735 100644 --- a/config/optional/core.entity_form_display.oc_activity.destitution_funds_provided.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.destitution_funds_provided.default.yml @@ -21,7 +21,7 @@ content: third_party_settings: { } description: type: string_textarea - weight: 6 + weight: 5 region: content settings: rows: 5 @@ -29,20 +29,20 @@ content: third_party_settings: { } field_amount: type: number - weight: 5 + weight: 4 region: content settings: placeholder: '' third_party_settings: { } field_funds_for: type: options_select - weight: 4 + weight: 3 region: content settings: { } third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -58,17 +58,8 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } hidden: + oc_target: true revision_log: true status: true time_taken: true diff --git a/config/optional/core.entity_form_display.oc_activity.email.default.yml b/config/optional/core.entity_form_display.oc_activity.email.default.yml index 06f9fb7..5b45b94 100644 --- a/config/optional/core.entity_form_display.oc_activity.email.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.email.default.yml @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -43,18 +43,15 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 + time_taken: + type: number + weight: 3 region: content settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true - time_taken: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_activity.interview.default.yml b/config/optional/core.entity_form_display.oc_activity.interview.default.yml index 731863d..0de93d7 100644 --- a/config/optional/core.entity_form_display.oc_activity.interview.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.interview.default.yml @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -43,18 +43,15 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 + time_taken: + type: number + weight: 3 region: content settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true - time_taken: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_activity.lete.default.yml b/config/optional/core.entity_form_display.oc_activity.lete.default.yml index b544eb8..887048f 100644 --- a/config/optional/core.entity_form_display.oc_activity.lete.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.lete.default.yml @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -43,18 +43,15 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 + time_taken: + type: number + weight: 3 region: content settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true - time_taken: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_activity.phone_call.default.yml b/config/optional/core.entity_form_display.oc_activity.phone_call.default.yml index 422e807..eb1630a 100644 --- a/config/optional/core.entity_form_display.oc_activity.phone_call.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.phone_call.default.yml @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -43,18 +43,15 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 + time_taken: + type: number + weight: 3 region: content settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true - time_taken: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_activity.research.default.yml b/config/optional/core.entity_form_display.oc_activity.research.default.yml index dce5ad8..d46e53a 100644 --- a/config/optional/core.entity_form_display.oc_activity.research.default.yml +++ b/config/optional/core.entity_form_display.oc_activity.research.default.yml @@ -27,7 +27,7 @@ content: third_party_settings: { } name: type: string_textfield - weight: 3 + weight: 1 region: content settings: size: 60 @@ -43,18 +43,15 @@ content: size: 60 placeholder: '' third_party_settings: { } - oc_target: - type: entity_reference_autocomplete - weight: 1 + time_taken: + type: number + weight: 3 region: content settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 placeholder: '' third_party_settings: { } hidden: + oc_target: true revision_log: true status: true - time_taken: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_case.accommodation.default.yml b/config/optional/core.entity_form_display.oc_case.accommodation.default.yml index 101cd06..ca217b8 100644 --- a/config/optional/core.entity_form_display.oc_case.accommodation.default.yml +++ b/config/optional/core.entity_form_display.oc_case.accommodation.default.yml @@ -9,33 +9,20 @@ dependencies: - opencase_cases.oc_case_type.accommodation module: - file - - hide_revision_field id: oc_case.accommodation.default targetEntityType: oc_case bundle: accommodation mode: default content: - field_case_finance: - type: options_select - weight: 4 - region: content - settings: { } - third_party_settings: { } - field_outcome: - type: options_select - weight: 7 - region: content - settings: { } - third_party_settings: { } field_type_of_acco: type: options_select - weight: 3 + weight: 2 region: content settings: { } third_party_settings: { } files: type: file_generic - weight: 2 + weight: 3 region: content settings: progress_indicator: throbber @@ -58,22 +45,13 @@ content: size: 60 placeholder: '' third_party_settings: { } - revision_log: - type: hide_revision_field_log_widget - weight: 8 - region: content - settings: - rows: 5 - placeholder: '' - show: true - default: '' - permission_based: false - allow_user_settings: true - third_party_settings: { } hidden: + field_case_finance: true field_fee_calculation: true field_fee_or_equivalent_cost: true + field_outcome: true notes: true + revision_log: true status: true total_fee: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_case.volunteer_engagement.default.yml b/config/optional/core.entity_form_display.oc_case.volunteer_engagement.default.yml new file mode 100644 index 0000000..1a57b11 --- /dev/null +++ b/config/optional/core.entity_form_display.oc_case.volunteer_engagement.default.yml @@ -0,0 +1,41 @@ +uuid: 7010aa94-15ca-4b06-a7b2-0fdac3ed3ea7 +langcode: en +status: true +dependencies: + config: + - opencase_cases.oc_case_type.volunteer_engagement + module: + - file +id: oc_case.volunteer_engagement.default +targetEntityType: oc_case +bundle: volunteer_engagement +mode: default +content: + files: + type: file_generic + weight: 1 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } + name: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + notes: + type: string_textarea + weight: 2 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } +hidden: + oc_target: true + revision_log: true + status: true + user_id: true diff --git a/config/optional/core.entity_form_display.oc_case_fee.fee.default.yml b/config/optional/core.entity_form_display.oc_case_fee.fee.default.yml index 6c6709e..4424dd2 100644 --- a/config/optional/core.entity_form_display.oc_case_fee.fee.default.yml +++ b/config/optional/core.entity_form_display.oc_case_fee.fee.default.yml @@ -11,25 +11,28 @@ mode: default content: amount: type: number - weight: 1 - region: content - settings: - placeholder: '' - third_party_settings: { } - oc_case: - type: entity_reference_autocomplete weight: 0 region: content settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 placeholder: '' third_party_settings: { } + description: + type: string_textarea + weight: 2 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + oc_fee_category: + type: options_select + weight: 1 + region: content + settings: { } + third_party_settings: { } hidden: - description: true name: true - oc_fee_category: true + oc_case: true revision_log: true status: true user_id: true diff --git a/config/optional/core.entity_form_display.oc_case_provision.caseworker.default.yml b/config/optional/core.entity_form_display.oc_case_provision.caseworker.default.yml index 8e7d292..f61741a 100644 --- a/config/optional/core.entity_form_display.oc_case_provision.caseworker.default.yml +++ b/config/optional/core.entity_form_display.oc_case_provision.caseworker.default.yml @@ -3,77 +3,27 @@ langcode: en status: true dependencies: config: - - field.field.oc_case_provision.caseworker.field_test - opencase_cases.oc_case_provision_type.caseworker - module: - - hide_revision_field id: oc_case_provision.caseworker.default targetEntityType: oc_case_provision bundle: caseworker mode: default content: - field_test: - type: entity_reference_autocomplete - weight: 81 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } - oc_case: - type: entity_reference_autocomplete - weight: 0 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } oc_case_provider_role: - type: entity_reference_autocomplete - weight: 2 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } - oc_provider: - type: entity_reference_autocomplete + type: options_select weight: 1 region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + settings: { } third_party_settings: { } - revision_log: - type: hide_revision_field_log_widget - weight: 80 + oc_provider: + type: options_select + weight: 0 region: content - settings: - rows: 5 - placeholder: '' - show: true - default: '' - permission_based: false - allow_user_settings: true - third_party_settings: { } - user_id: - type: entity_reference_autocomplete - weight: 3 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' + settings: { } third_party_settings: { } hidden: name: true + oc_case: true + revision_log: true status: true + user_id: true diff --git a/config/optional/core.entity_view_display.oc_activity.research.default.yml b/config/optional/core.entity_view_display.oc_activity.research.default.yml index 511f191..0a47fc1 100644 --- a/config/optional/core.entity_view_display.oc_activity.research.default.yml +++ b/config/optional/core.entity_view_display.oc_activity.research.default.yml @@ -33,7 +33,7 @@ content: settings: link_to_entity: false third_party_settings: { } - weight: 3 + weight: 1 region: content oc_provider: type: entity_reference_label @@ -43,16 +43,19 @@ content: third_party_settings: { } weight: 2 region: content - oc_target: - type: entity_reference_label + time_taken: + type: number_decimal label: above settings: - link: true + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true third_party_settings: { } - weight: 1 + weight: 3 region: content hidden: + oc_target: true search_api_excerpt: true status: true - time_taken: true user_id: true diff --git a/config/optional/core.entity_view_display.oc_case.accommodation.default.yml b/config/optional/core.entity_view_display.oc_case.accommodation.default.yml index e42b3c2..af03599 100644 --- a/config/optional/core.entity_view_display.oc_case.accommodation.default.yml +++ b/config/optional/core.entity_view_display.oc_case.accommodation.default.yml @@ -10,32 +10,27 @@ dependencies: module: - file - options - - user id: oc_case.accommodation.default targetEntityType: oc_case bundle: accommodation mode: default content: - field_case_finance: - type: list_default - label: above + caseworkers: settings: { } third_party_settings: { } - weight: 2 + weight: 1 region: content - field_outcome: - type: list_default - label: above + fees: settings: { } third_party_settings: { } - weight: 4 + weight: 3 region: content field_type_of_acco: type: list_default label: above settings: { } third_party_settings: { } - weight: 1 + weight: 2 region: content files: type: file_default @@ -43,7 +38,7 @@ content: settings: use_description_as_link_text: true third_party_settings: { } - weight: 6 + weight: 5 region: content oc_target: type: entity_reference_label @@ -62,21 +57,17 @@ content: scale: 2 prefix_suffix: true third_party_settings: { } - weight: 3 - region: content - user_id: - type: author - label: above - settings: { } - third_party_settings: { } - weight: 5 + weight: 4 region: content hidden: changed: true created: true + field_case_finance: true field_fee_calculation: true field_fee_or_equivalent_cost: true + field_outcome: true name: true notes: true search_api_excerpt: true status: true + user_id: true diff --git a/config/optional/core.entity_view_display.oc_case.volunteer_engagement.default.yml b/config/optional/core.entity_view_display.oc_case.volunteer_engagement.default.yml new file mode 100644 index 0000000..0508072 --- /dev/null +++ b/config/optional/core.entity_view_display.oc_case.volunteer_engagement.default.yml @@ -0,0 +1,59 @@ +uuid: be83d248-b875-4cea-b0c9-dc28c4672581 +langcode: en +status: true +dependencies: + config: + - opencase_cases.oc_case_type.volunteer_engagement + module: + - file +id: oc_case.volunteer_engagement.default +targetEntityType: oc_case +bundle: volunteer_engagement +mode: default +content: + fees: + settings: { } + third_party_settings: { } + weight: 2 + region: content + files: + type: file_default + label: above + settings: + use_description_as_link_text: true + third_party_settings: { } + weight: 3 + region: content + notes: + type: basic_string + label: above + settings: { } + third_party_settings: { } + weight: 1 + region: content + oc_target: + type: entity_reference_label + label: above + settings: + link: true + third_party_settings: { } + weight: 0 + region: content + total_fee: + type: number_decimal + label: above + settings: + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true + third_party_settings: { } + weight: 4 + region: content +hidden: + changed: true + created: true + name: true + search_api_excerpt: true + status: true + user_id: true diff --git a/config/optional/core.entity_view_display.oc_case_provision.caseworker.default.yml b/config/optional/core.entity_view_display.oc_case_provision.caseworker.default.yml index 6d3aa24..fbd6654 100644 --- a/config/optional/core.entity_view_display.oc_case_provision.caseworker.default.yml +++ b/config/optional/core.entity_view_display.oc_case_provision.caseworker.default.yml @@ -3,7 +3,6 @@ langcode: en status: true dependencies: config: - - field.field.oc_case_provision.caseworker.field_test - opencase_cases.oc_case_provision_type.caseworker module: - user @@ -12,14 +11,6 @@ targetEntityType: oc_case_provision bundle: caseworker mode: default content: - field_test: - type: entity_reference_label - label: above - settings: - link: true - third_party_settings: { } - weight: 4 - region: content oc_case_provider_role: type: entity_reference_label label: above diff --git a/config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_this_person_provides.yml b/config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_this_person_provides.yml new file mode 100644 index 0000000..54006a9 --- /dev/null +++ b/config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_this_person_provides.yml @@ -0,0 +1,48 @@ +uuid: 65c3dca3-5b99-4357-b781-bbe0e21eea6b +langcode: en +status: true +dependencies: + config: + - user.role.administrator + - user.role.opencase_admin + - user.role.overseer + - user.role.volunteer_co_ord + module: + - opencase_cases + - opencase_entities + - user +id: oc_actor.volunteer.cases_this_person_provides +label: Cases +display_label: true +name: cases_this_person_provides +description: 'Cases that this person is providing' +base_entity_type_id: oc_actor +base_bundle_type_id: volunteer +field_type_id: views +field_type_config: + view_name: cases_by_provider + display: page_2 + arguments: '' +field_type_condition: + 'entity_bundle:oc_actor': + id: 'entity_bundle:oc_actor' + negate: false + context_mapping: + oc_actor: entity_extra_field.target_entity + bundles: + volunteer: volunteer + 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/optional/entity_extra_field.extra_field.oc_actor.client.activities.yml b/config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_with_this_person_as_target.yml similarity index 65% rename from config/optional/entity_extra_field.extra_field.oc_actor.client.activities.yml rename to config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_with_this_person_as_target.yml index 3cb5817..2100723 100644 --- a/config/optional/entity_extra_field.extra_field.oc_actor.client.activities.yml +++ b/config/optional/entity_extra_field.extra_field.oc_actor.volunteer.cases_with_this_person_as_target.yml @@ -1,23 +1,23 @@ -uuid: 2df09597-78e1-4410-82a4-a49dd00349c2 +uuid: f64263d6-4112-4b8b-a862-427adec4b05e langcode: en status: true dependencies: config: + - system.menu.opencase - user.role.authenticated module: - - datetime - - opencase_entities + - opencase_cases - user -id: oc_actor.client.activities -label: Activities -display_label: true -name: activities +id: oc_actor.volunteer.cases_with_this_person_as_target +label: 'Cases with this person as target' +display_label: false +name: cases_with_this_person_as_target description: '' base_entity_type_id: oc_actor -base_bundle_type_id: client +base_bundle_type_id: volunteer field_type_id: views field_type_config: - view_name: activities + view_name: cases display: block_1 arguments: '' field_type_condition: @@ -26,7 +26,8 @@ field_type_condition: negate: false context_mapping: oc_actor: entity_extra_field.target_entity - bundles: { } + bundles: + volunteer: volunteer route: id: route negate: false diff --git a/config/optional/entity_extra_field.extra_field.oc_case.accommodation.fees.yml b/config/optional/entity_extra_field.extra_field.oc_case.accommodation.fees.yml new file mode 100644 index 0000000..2fa6b7c --- /dev/null +++ b/config/optional/entity_extra_field.extra_field.oc_case.accommodation.fees.yml @@ -0,0 +1,47 @@ +uuid: 42039090-fd08-4c7f-b24f-99f440a13916 +langcode: en +status: true +dependencies: + module: + - opencase_cases +id: oc_case.accommodation.fees +label: Fees +display_label: true +name: fees +description: '' +base_entity_type_id: oc_case +base_bundle_type_id: accommodation +field_type_id: views +field_type_config: + view_name: case_fees + display: page_1 + 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: + accommodation: accommodation + asylum_support: asylum_support + employability: employability + enquiry: enquiry + health: health + immigration: immigration + welfare_rights: welfare_rights + 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/optional/entity_extra_field.extra_field.oc_case.volunteer_engagement.fees.yml b/config/optional/entity_extra_field.extra_field.oc_case.volunteer_engagement.fees.yml new file mode 100644 index 0000000..7b75afc --- /dev/null +++ b/config/optional/entity_extra_field.extra_field.oc_case.volunteer_engagement.fees.yml @@ -0,0 +1,53 @@ +uuid: b5603345-fe45-4635-926c-8d0e49f85fba +langcode: en +status: true +dependencies: + config: + - opencase_cases.oc_case_provision_type.caseworker + - user.role.authenticated + module: + - opencase_cases + - user +id: oc_case.volunteer_engagement.fees +label: Caseworkers +display_label: true +name: fees +description: '' +base_entity_type_id: oc_case +base_bundle_type_id: volunteer_engagement +field_type_id: views +field_type_config: + view_name: case_provisions + 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: + accommodation: accommodation + asylum_support: asylum_support + employability: employability + enquiry: enquiry + health: health + immigration: immigration + pro_bono_immigration_service: pro_bono_immigration_service + volunteer_engagement: volunteer_engagement + welfare_rights: welfare_rights + 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/optional/field.field.oc_case_provision.caseworker.field_test.yml b/config/optional/field.field.oc_case_provision.caseworker.field_test.yml deleted file mode 100644 index b016d3a..0000000 --- a/config/optional/field.field.oc_case_provision.caseworker.field_test.yml +++ /dev/null @@ -1,31 +0,0 @@ -uuid: 561fe652-6e6b-401a-a5d7-eef6402f6d07 -langcode: en -status: true -dependencies: - config: - - field.storage.oc_case_provision.field_test - - opencase_cases.oc_case_provision_type.caseworker - - opencase_entities.oc_actor_type.staff_member - - opencase_entities.oc_actor_type.volunteer -id: oc_case_provision.caseworker.field_test -field_name: field_test -entity_type: oc_case_provision -bundle: caseworker -label: test -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: - handler: 'default:oc_actor' - handler_settings: - target_bundles: - staff_member: staff_member - volunteer: volunteer - sort: - field: _none - direction: ASC - auto_create: false - auto_create_bundle: staff_member -field_type: entity_reference diff --git a/config/optional/field.storage.oc_case_provision.field_test.yml b/config/optional/field.storage.oc_case_provision.field_test.yml deleted file mode 100644 index 9071af1..0000000 --- a/config/optional/field.storage.oc_case_provision.field_test.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: f90d1b9f-ee8a-4f79-ae7d-fafd4ec10cea -langcode: en -status: true -dependencies: - module: - - opencase_cases - - opencase_entities -id: oc_case_provision.field_test -field_name: field_test -entity_type: oc_case_provision -type: entity_reference -settings: - target_type: oc_actor -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/config/optional/views.view.activities.yml b/config/optional/views.view.activities.yml index 714863d..311b0a4 100644 --- a/config/optional/views.view.activities.yml +++ b/config/optional/views.view.activities.yml @@ -24,17 +24,17 @@ display: display_options: title: Activities fields: - type: - id: type + name: + id: name table: oc_activity_field_data - field: type + field: name relationship: none group_type: group admin_label: '' - entity_type: oc_activity - entity_field: type + entity_type: null + entity_field: name plugin_id: field - label: 'Activity type' + label: Subject exclude: false alter: alter_text: false @@ -67,7 +67,7 @@ display: element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: true + element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' element_default_classes: true @@ -75,11 +75,11 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label + click_sort_column: value + type: string settings: - link: false - group_column: target_id + link_to_entity: true + group_column: value group_columns: { } group_rows: true delta_limit: 0 @@ -155,17 +155,17 @@ display: multi_type: separator separator: ', ' field_api_classes: false - oc_target: - id: oc_target + type: + id: type table: oc_activity_field_data - field: oc_target + field: type relationship: none group_type: group admin_label: '' entity_type: oc_activity - entity_field: oc_target + entity_field: type plugin_id: field - label: Target + label: 'Activity type' exclude: false alter: alter_text: false @@ -209,7 +209,7 @@ display: click_sort_column: target_id type: entity_reference_label settings: - link: true + link: false group_column: target_id group_columns: { } group_rows: true @@ -285,71 +285,6 @@ display: 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: false - 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: true - 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 @@ -491,44 +426,6 @@ display: validate_options: { } break_phrase: false not: false - oc_provider: - id: oc_provider - table: oc_activity_field_data - field: oc_provider - relationship: none - group_type: group - admin_label: '' - entity_type: oc_activity - entity_field: oc_provider - 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 @@ -640,3 +537,61 @@ display: - url.query_args - user.roles tags: { } + block_2: + id: block_2 + display_title: 'By case' + display_plugin: block + position: 2 + display_options: + 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 + defaults: + arguments: false + display_description: '' + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: { } diff --git a/config/optional/views.view.case_fees.yml b/config/optional/views.view.case_fees.yml new file mode 100644 index 0000000..3084ff5 --- /dev/null +++ b/config/optional/views.view.case_fees.yml @@ -0,0 +1,468 @@ +uuid: 030eab69-63e0-46a4-920b-73efece239c8 +langcode: en +status: true +dependencies: + module: + - opencase_cases +id: case_fees +label: 'Case fees' +module: views +description: '' +tag: '' +base_table: oc_case_fee_field_data +base_field: id +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Case fees' + fields: + amount: + id: amount + table: oc_case_fee_field_data + field: amount + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_fee + entity_field: amount + plugin_id: field + label: Amount + 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: number_decimal + settings: + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true + 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 + oc_fee_category: + id: oc_fee_category + table: oc_case_fee_field_data + field: oc_fee_category + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_fee + entity_field: oc_fee_category + plugin_id: field + label: 'Fee Category' + 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 + description: + id: description + table: oc_case_fee_field_data + field: description + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_fee + entity_field: description + plugin_id: field + label: Description + 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: 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 + edit_oc_case_fee: + id: edit_oc_case_fee + table: oc_case_fee + field: edit_oc_case_fee + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_fee + plugin_id: entity_link_edit + label: 'Link to edit Case Fee' + 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 + text: edit + output_url_as_text: false + absolute: false + delete_oc_case_fee: + id: delete_oc_case_fee + table: oc_case_fee + field: delete_oc_case_fee + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_fee + plugin_id: entity_link_delete + label: 'Link to delete Case Fee' + 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 + text: delete + output_url_as_text: false + absolute: false + pager: + type: mini + options: + offset: 0 + items_per_page: 10 + total_pages: null + id: 0 + tags: + next: ›› + previous: ‹‹ + 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 + 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: none + options: { } + cache: + type: tag + options: { } + empty: { } + sorts: { } + arguments: + oc_case: + id: oc_case + table: oc_case_fee_field_data + field: oc_case + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_fee + 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: + status: + id: status + table: oc_case_fee_field_data + field: status + entity_type: oc_case_fee + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + style: + type: table + row: + type: fields + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + contextual_filters_or: false + relationships: { } + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: true + content: + value: 'Add a fee' + format: basic_html + tokenize: true + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + tags: { } + page_1: + id: page_1 + display_title: Page + display_plugin: page + position: 1 + display_options: + display_extenders: { } + path: opencase/case-fees/%case_id + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + tags: { } diff --git a/config/optional/views.view.case_provisions.yml b/config/optional/views.view.case_provisions.yml index 65ad989..e560a81 100644 --- a/config/optional/views.view.case_provisions.yml +++ b/config/optional/views.view.case_provisions.yml @@ -556,7 +556,7 @@ display: click_sort_column: target_id type: entity_reference_label settings: - link: true + link: false group_column: target_id group_columns: { } group_rows: true @@ -621,7 +621,7 @@ display: click_sort_column: target_id type: entity_reference_label settings: - link: true + link: false group_column: target_id group_columns: { } group_rows: true @@ -632,6 +632,112 @@ display: multi_type: separator separator: ', ' field_api_classes: false + edit_oc_case_provision: + id: edit_oc_case_provision + table: oc_case_provision + field: edit_oc_case_provision + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_provision + 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 + delete_oc_case_provision: + id: delete_oc_case_provision + table: oc_case_provision + field: delete_oc_case_provision + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_provision + plugin_id: entity_link_delete + 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: delete + output_url_as_text: false + absolute: false arguments: oc_case: id: oc_case @@ -688,7 +794,7 @@ display: admin_label: '' plugin_id: text_custom empty: true - content: 'Add a caseworker' + content: 'Add a caseworker' tokenize: true display_extenders: { } cache_metadata: diff --git a/config/optional/views.view.cases.yml b/config/optional/views.view.cases.yml index c80bdd1..1228512 100644 --- a/config/optional/views.view.cases.yml +++ b/config/optional/views.view.cases.yml @@ -219,6 +219,73 @@ display: multi_type: separator separator: ', ' field_api_classes: false + created: + id: created + table: oc_case_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case + entity_field: created + plugin_id: field + label: 'Created on' + 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: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + 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 pager: type: mini options: @@ -256,7 +323,23 @@ display: type: tag options: { } empty: { } - sorts: { } + sorts: + created: + id: created + table: oc_case_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case + entity_field: created + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: '' + exposed: false + granularity: day arguments: { } filters: { } style: @@ -285,7 +368,7 @@ display: tags: { } block_1: id: block_1 - display_title: Block + display_title: 'By target' display_plugin: block position: 2 display_options: @@ -420,6 +503,73 @@ display: multi_type: separator separator: ', ' field_api_classes: false + created: + id: created + table: oc_case_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case + entity_field: created + plugin_id: field + label: 'Created on' + 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: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + 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 arguments: oc_target: id: oc_target @@ -462,6 +612,7 @@ display: defaults: fields: false arguments: false + display_description: '' display_extenders: { } block_description: 'Cases: by target' cache_metadata: @@ -475,10 +626,11 @@ display: tags: { } page_1: id: page_1 - display_title: Page + display_title: All display_plugin: page position: 1 display_options: + display_description: '' display_extenders: { } path: cases/all menu: diff --git a/config/optional/views.view.cases_by_provider.yml b/config/optional/views.view.cases_by_provider.yml index 19ffa11..1bfab8d 100644 --- a/config/optional/views.view.cases_by_provider.yml +++ b/config/optional/views.view.cases_by_provider.yml @@ -3,7 +3,13 @@ langcode: en status: true dependencies: config: + - user.role.administrator - user.role.authenticated + - user.role.caseworker + - user.role.content_editor + - user.role.opencase_admin + - user.role.overseer + - user.role.volunteer_co_ord module: - opencase_cases - opencase_entities @@ -22,7 +28,7 @@ display: display_plugin: default position: 0 display_options: - title: 'Cases by provider' + title: 'My cases' fields: name_1: id: name_1 @@ -122,10 +128,29 @@ display: options: role: authenticated: authenticated + content_editor: content_editor + administrator: administrator + overseer: overseer + caseworker: caseworker + volunteer_co_ord: volunteer_co_ord + opencase_admin: opencase_admin cache: type: tag options: { } - empty: { } + empty: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: true + content: + value: 'This person is not ' + format: basic_html + tokenize: false sorts: { } arguments: uid: @@ -242,8 +267,24 @@ display: display_plugin: page position: 1 display_options: + empty: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: true + content: + value: 'You are not assigned to any cases.' + format: basic_html + tokenize: false + defaults: + empty: false display_extenders: { } - path: cases-by-provider + path: opencase/my-cases cache_metadata: max-age: -1 contexts: @@ -254,4 +295,91 @@ display: - user - user.roles tags: { } - + page_2: + id: page_2 + display_title: 'Page 2' + display_plugin: page + position: 2 + display_options: + title: 'Cases by provider' + empty: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: true + content: + value: 'This person is not assigned to any cases.' + format: basic_html + tokenize: false + arguments: + oc_provider: + id: oc_provider + table: oc_case_provision_field_data + field: oc_provider + relationship: none + group_type: group + admin_label: '' + entity_type: oc_case_provision + entity_field: oc_provider + 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 + defaults: + empty: false + title: false + relationships: false + arguments: false + relationships: + oc_case: + id: oc_case + table: oc_case_provision_field_data + field: oc_case + relationship: none + group_type: group + admin_label: Case + entity_type: oc_case_provision + entity_field: oc_case + plugin_id: standard + required: true + display_extenders: { } + path: opencase/cases-by-provider/%actor_id + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.roles + tags: { }