diff --git a/config/install/views.view.activities.yml b/config/install/views.view.activities.yml index b2edfd6..76d9b6b 100644 --- a/config/install/views.view.activities.yml +++ b/config/install/views.view.activities.yml @@ -389,7 +389,18 @@ display: title: 'Activity List' header: { } footer: { } - empty: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: 'This case has no activities yet. To add one, use the links in the sidebar to the right.' + plugin_id: text_custom relationships: { } arguments: oc_case: diff --git a/config/install/views.view.cases.yml b/config/install/views.view.cases.yml index 5ea8bbc..3c7dd76 100644 --- a/config/install/views.view.cases.yml +++ b/config/install/views.view.cases.yml @@ -48,10 +48,23 @@ display: sort_asc_label: Asc sort_desc_label: Desc pager: - type: some + type: mini options: - items_per_page: 10 + items_per_page: 20 offset: 0 + id: 0 + total_pages: null + tags: + previous: ‹‹ + next: ›› + 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 style: type: table row: @@ -434,7 +447,52 @@ display: empty_zero: false hide_alter_empty: false plugin_id: custom - filters: { } + filters: + type: + id: type + table: oc_case_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: 'Case type' + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + overseer: '0' + caseworker: '0' + volunteer_co_ord: '0' + opencase_admin: '0' + 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: { } + entity_type: oc_case + entity_field: type + plugin_id: bundle sorts: created: id: created @@ -447,14 +505,25 @@ display: exposed: false expose: label: '' - granularity: hour + granularity: day entity_type: oc_case entity_field: created plugin_id: date - title: 'Case List' + title: '' header: { } footer: { } - empty: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: "

Either there are no cases involving this person, or you do not have access to them.

\n" + plugin_id: text_custom relationships: { } arguments: actors_involved_target_id: @@ -495,12 +564,14 @@ display: entity_field: actors_involved plugin_id: numeric display_extenders: { } + use_ajax: true cache_metadata: max-age: -1 contexts: - 'languages:language_content' - 'languages:language_interface' - url + - url.query_args - user.roles tags: { } page_1: @@ -511,11 +582,106 @@ display: display_options: display_extenders: { } path: opencase/oc_actor/%actor_id/case_list + defaults: + filters: false + filter_groups: false + filters: { } + filter_groups: + operator: AND + groups: + 1: AND cache_metadata: max-age: -1 contexts: - 'languages:language_content' - 'languages:language_interface' - url + - url.query_args + - user.roles + tags: { } + page_2: + display_plugin: page + id: page_2 + display_title: 'All Cases' + position: 2 + display_options: + display_extenders: { } + display_description: '' + arguments: { } + defaults: + arguments: false + filters: false + filter_groups: false + empty: false + path: opencase/all-cases + filters: + type: + id: type + table: oc_case_field_data + field: type + relationship: none + group_type: group + admin_label: '' + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: type_op + label: 'Case type' + description: '' + use_operator: false + operator: type_op + identifier: type + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + overseer: '0' + caseworker: '0' + volunteer_co_ord: '0' + opencase_admin: '0' + 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: { } + entity_type: oc_case + entity_field: type + plugin_id: bundle + filter_groups: + operator: AND + groups: + 1: AND + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: "

No cases found

\n

You do not have access to any existing cases.

\n

To add a new case, first search for the person you want to add a case to. If they are not on the system yet you can add them using the Add actors menu in the left sidebar.

\n" + plugin_id: text_custom + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args - user.roles tags: { }