Compare commits

..

112 Commits
1.6.2 ... demo

Author SHA1 Message Date
42bf2c8e77 Removed ActorCaseRelation stuff- can't get it to work, will try again if it's asked for 2021-08-27 08:38:04 +01:00
7e4acae864 Revert "Added actor-case relation"
This reverts commit c7d36df842.
2021-08-27 08:37:16 +01:00
80f86c62fd Merge branch 'demo' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase into demo 2021-08-26 21:42:27 +01:00
794bc0da68 Pulling case_id through when creating an activity and client_id when creating a case. (Only for demo really; bit of tech debt) 2021-08-26 21:41:36 +01:00
892a7ae35b Commented out case access stuff; need to re-add that using relation entities 2021-08-26 19:10:05 +01:00
3586ef5788 Fixed theme function issue after creating entity, and remove "(Client)" etc from name finally! 2021-08-26 18:58:25 +01:00
436607a305 Added some class dependencies which were missing 2021-08-26 17:56:44 +01:00
c7d36df842 Added actor-case relation 2021-08-26 17:55:07 +01:00
8cb50d271b removed config from opencase_defaults 2021-08-26 16:41:12 +01:00
3dcd37bb8c removed circular module dependency 2021-08-07 14:55:52 +00:00
8816441f94 Added custom field formatter to exclude current organisation from entity reference list 2021-07-20 17:09:06 +02:00
73d9d6490a Added redirects to client screen after adding or deleting a linked client 2021-07-20 14:48:50 +02:00
d151b1744e Added Organisation Relation entity with update hook to install it, bumped version 2021-07-16 17:32:40 +02:00
26d78a4f7f Made person's address fields form- and view-configurable, and bumped version 2021-06-29 09:21:04 +02:00
41505594be Added website field to org, and bumped version (to 2.0.0 because ran out of numbers) 2021-06-15 20:13:42 +02:00
3f3945f9a0 Added base field "contact role" to organisation, and bumped version 2021-06-15 19:55:45 +02:00
1cb3a4356a Removed it again - it's the wrong place for it. 2021-06-04 17:45:13 +02:00
34ac278a2e added menu item for managing tags. 2021-06-04 17:40:11 +02:00
b7cfaa9f64 Removed contextual menu block, as it does not work (keeps disappearing). 2021-04-14 11:36:00 +01:00
0df9cfecc8 Added some css classes to the contextual menu, and a temporary css hack. 2021-04-05 19:43:46 +01:00
27f0b33faa Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase 2021-03-23 18:27:19 +00:00
998f72f505 Merge branch 'dev' 2021-03-23 18:25:40 +00:00
4ac33273b9 Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase 2021-03-23 16:47:53 +01:00
99e57d9747 Merge branch 'dev' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase into dev 2021-03-09 10:27:26 -08:00
1d257538fe Changed how destination is set in contextual menu 2021-03-09 10:27:02 -08:00
62a3df034e css 2021-02-22 18:44:42 +01:00
df44524498 css 2021-02-22 18:28:02 +01:00
8d5dda3a7a css 2021-02-22 18:15:30 +01:00
74fac415c8 misc 2021-02-22 11:38:45 +00:00
20cc8cd753 removed EVA stuff from template, plus misc 2021-02-20 15:09:58 +00:00
4647ef6e3e Added equal opps view, and other changes. 2021-02-18 16:46:59 +00:00
1a7757394e Added fields to equal opps entity 2021-02-18 16:10:03 +00:00
fbdc64de3c Added equal opps entity 2021-02-18 15:32:10 +00:00
34a2d9e23b fixed typo kind of thing 2021-02-18 13:33:01 +00:00
bc98ecb541 fixed some issues caused by c&ping from opencase_entities 2021-02-18 12:02:25 +00:00
0f0281c58c Merge branch 'dev' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase into dev 2021-02-14 13:19:14 -08:00
c65012315d css 2021-02-14 13:18:36 -08:00
715f5f34c4 Removed "Entered by" from actor view display 2021-02-14 21:14:33 +00:00
403965fe6f removed error logging, also did something with the search, which now works 2021-02-14 12:39:38 +00:00
eec5b876a3 removed password strength message 2021-02-09 18:26:09 +00:00
077455b4d3 wording on linked person field 2021-02-09 11:05:55 +00:00
7a995060ce Changed max length of full name, and some other things 2021-02-08 21:28:15 +00:00
9646e216aa moved file back into opencase_entities that I had moved by mistake 2021-02-08 17:47:13 +00:00
5afbeb956b Moved everything relating to cases into opencase_cases module 2021-02-08 17:27:18 +00:00
2895dcdab8 help text 2021-02-08 16:14:17 +00:00
3dd71bf2c0 Added full_name field to actors, and made the administer entities permission finer grained 2021-02-08 13:38:54 +00:00
6fbaf433e8 changed "description" label to "notes" 2021-02-07 15:23:46 +00:00
4639ff7ffd css 2021-02-07 15:16:25 +00:00
4285e1952f Added fields to bank account entity 2021-02-07 12:02:47 +00:00
eee7604440 Added Bank Account entity. 2021-02-07 11:59:17 +00:00
0399c83646 made name fields configurable for form and view 2021-02-05 13:47:52 +00:00
2bc1abc7a7 Deleting activity in "No Cases" mode should redirect to first linked person, and other changes 2021-02-05 13:43:11 +00:00
06937b7443 Fixed block config that had gone weird 2021-02-01 17:10:44 +00:00
6d281625b7 Made "opencase_cases" and "opencase_no_cases" modules and gave the latter a version of the contextual menu 2021-02-01 16:49:49 +00:00
208240badc removed support menu as the docs are out of date 2021-02-01 14:33:19 +00:00
c479e3b995 Added "owner" functions to OCEvent.php as it was erroring without them 2021-01-28 16:32:28 +00:00
517938ab7b Added description field to event 2021-01-28 11:54:07 +00:00
b48ba012cb Added Event entity type. 2021-01-28 10:22:20 +00:00
53648faff7 composer require drupal/smtp 2021-01-25 19:02:21 +01:00
a993e09bc6 required paragraphs_collapsible module 2021-01-25 16:23:16 +00:00
3aa4fbc5cf Redirecting to home page after deleting organisation 2021-01-25 15:41:22 +00:00
0caf2cb7c8 Edited case template to put EVA fields at the bottom 2021-01-25 14:07:26 +00:00
e49ad3fc9c Edited template to place "EVA" fields (embedded views) at the top of case page. 2021-01-23 18:12:35 +00:00
146eb2b8ba Adding requires to composer.json 2021-01-21 19:05:52 +00:00
360fe56a6d Update 'composer.json' 2021-01-20 13:58:35 +01:00
91cc94d3d7 Added composer.json 2021-01-20 13:44:33 +01:00
2b9cd117ba Added files field to organisation (base field definition and update hook) and bumped version to 0.198 2021-01-19 15:55:18 +01:00
36eb9d9667 field positions 2020-11-20 17:42:25 +00:00
d026173c8f moved activities view to opencase_default 2020-11-20 17:36:51 +00:00
7ecdfbf3e6 changed field order 2020-11-20 14:19:22 +00:00
113ff6361b moved entity type relations widget into opencase_defaults 2020-11-20 12:04:22 +00:00
ca1a0eda29 Merge branch 'master' of ssh://git.autonomic.zone:2222/autonomic-cooperative/opencase 2020-11-20 11:03:19 +00:00
dfb12d9be6 moved consent field to opencase_defaults and removed automatic "see all people" menu links 2020-11-20 11:00:52 +00:00
ea71314345 Deleted composer.json, not needed with new install instructions 2020-11-19 18:39:28 +01:00
31be127d30 Update 'docs/install.txt' 2020-11-19 18:38:41 +01:00
7c5ee54a44 changed machine name of view from actors to persons 2020-11-18 12:58:39 +00:00
21528a436e changed field description 2020-11-17 12:26:39 +00:00
ffb99bcac6 removed see-all-organisations menu stuff 2020-11-17 12:14:24 +00:00
a7f0e8fb02 removed all-cases menu link 2020-11-17 12:03:36 +00:00
eb405674dc moved cases view into defaults(thought was done already) 2020-11-17 11:58:14 +00:00
342459daa3 removed dependency of opencase module on opencase_search 2020-11-17 11:52:44 +00:00
cde0bbc7e6 moved actors_involved field to defaults 2020-11-17 11:24:18 +00:00
aff262a535 moved everything that references cases view into defaults 2020-11-17 11:09:17 +00:00
0d927126a2 moved contextual menu stuff into defaults 2020-11-17 10:55:16 +00:00
2f485f19c5 moved cases menu link and title overrides into here
They were previously in opencase itself but are not needed for GNO
2020-11-17 10:51:27 +00:00
8b07bbe63f Removed author field and simplified case title field 2020-11-17 10:47:24 +00:00
690ec3b509 Put cases menu link back, and some other things 2020-11-15 17:39:50 +00:00
7a9b95bf0d Wiring up new Organisation entity type 2020-11-12 17:35:34 +00:00
675a85dfb6 generated Organisation entity 2020-11-12 17:13:28 +00:00
17f8ddba2e contextual menu parameterised 2020-11-10 13:42:32 +00:00
27cb58512e Added menu links for seeing lists of things, also updated install.txt 2020-11-09 17:50:09 +00:00
df2c826a33 moved some menu links around for modularity 2020-11-09 16:18:14 +00:00
6f33d59842 changed "Cases" menu label to "See all", as will add more things 2020-11-09 14:49:17 +00:00
e37a41de2b opencase version in composer.json 2020-11-09 12:48:19 +00:00
c47df855bc Docs 2020-11-09 12:43:53 +00:00
af3b4727f1 Added some docs 2020-11-09 12:36:08 +00:00
011029d3b3 moved some menu code around for better modularisation 2020-11-08 18:05:24 +00:00
9af1d58de8 removed "details", see `https://drupal.stackexchange.com/questions/294312/why-has-this-details-accordion-appeared-in-this-view 2020-06-08 20:43:51 +01:00
6d93242fa9 v1.9.2 2020-06-08 14:22:04 +01:00
c9a843a35f (Re-)Added update hook to make contact details revisionable 2020-06-08 14:21:16 +01:00
c46bbc6ffd v1.9 2020-06-05 19:34:44 +01:00
5d1844304a templating for activities 2020-06-05 19:26:59 +01:00
be45fd2d42 sorting by date-and-time in activities view
Also removed date format thing from hook_update_n as not needed
2020-06-05 18:41:46 +01:00
18a0846348 Added name and status changes view
and did some other things, can't remember what
2020-06-05 18:36:14 +01:00
18e32335f5 In progress of adding revision views & making entity displays nicer 2020-05-13 15:41:59 +01:00
b83f0b44b4 v1.7 - Removed seconds from date and time field
Also altered activities view to show this field instead of created date.
2020-03-01 09:45:10 +00:00
7f88d409f0 1.6.5 more git mixup 2020-02-24 17:17:53 +00:00
8841fd4d25 v1.6.4 - more git mixup 2020-02-24 17:09:57 +00:00
87241c1f87 v1.6.3 due to git mixup 2020-02-24 16:59:43 +00:00
2a1607c6d9 Merge branch 'master' of github.com:hoegrammer/opencase 2020-02-24 16:27:37 +00:00
e4a04a254d v1.6.1 2020-02-24 16:26:04 +00:00
f47ded38fa v1.7 - adding datetime field with correct datepicker type & default datetime 2020-02-24 10:57:06 +00:00
324 changed files with 9248 additions and 5570 deletions

View File

@ -1,5 +1,5 @@
# OpenCase # OpenCase
A simple case-management system for small altruistic organisations. A simple case-management system
## The Plan ## The Plan
OpenCase will be available as: OpenCase will be available as:
@ -28,7 +28,7 @@ If you want to install OpenCase for yourself, please get in touch via Issues. It
A demo site, with basic functionality is available at demo.opencase.org.uk. If you are interested, raise an issue and I will get the login to you somehow. A demo site, with basic functionality is available at demo.opencase.org.uk. If you are interested, raise an issue and I will get the login to you somehow.
## Find out more ## Find out more
* More details, including user stories for future development, can be found in the [OpenCase Gitbook](https://hoegrammer.gitbooks.io/zen-crm/content/) * More details, including user stories for future development, can be found in the [OpenCase Gitbook](https://hoegrammer.gitbooks.io/opencase/content/)
* Raise an issue to contact the developer. * Raise an issue to contact the developer.

View File

@ -0,0 +1,5 @@
ciac_grouped_views:
version: 1.x
css:
layout:
css/grouped_views.css: {}

View File

@ -1,14 +1,17 @@
{ {
"name": "drupal/opencase", "name": "autonomic/opencase",
"type": "drupal-module", "type": "drupal-module",
"description": "Simple Case Management", "authors": [
"keywords": ["Drupal"], {
"license": "GPL-2.0+", "name": "autonomic",
"homepage": "https://www.drupal.org/project/opencase", "email": "helo@autonomic.zone"
"minimum-stability": "dev", }
"support": { ],
"issues": "https://www.drupal.org/project/issues/opencase", "require": {
"source": "http://cgit.drupalcode.org/opencase" "composer/installers": "*",
}, "drupal/superfish": "*",
"require": { } "drupal/views_autosubmit": "*",
"drupal/smtp": "*",
"drupal/paragraphs_collapsible": "*"
}
} }

View File

@ -0,0 +1,28 @@
langcode: en
status: true
dependencies:
config:
- views.view.equal_opps_records
module:
- system
- views
theme:
- bartik
id: exposedformequal_opps_recordspage_1
theme: bartik
region: content
weight: 0
provider: null
plugin: 'views_exposed_filter_block:equal_opps_records-page_1'
settings:
id: 'views_exposed_filter_block:equal_opps_records-page_1'
label: ''
provider: views
label_display: visible
views_label: 'Search by (whole) first or last name.'
visibility:
request_path:
id: request_path
pages: /equal-opps-records
negate: false
context_mapping: { }

View File

@ -1,19 +0,0 @@
langcode: en
status: true
dependencies:
module:
- opencase
theme:
- bartik
id: opencasecontextualmenu
theme: bartik
region: sidebar_second
weight: -8
provider: null
plugin: opencase_contextual_menu
settings:
id: opencase_contextual_menu
label: 'OpenCase Contextual Menu'
provider: opencase
label_display: '0'
visibility: { }

View File

@ -0,0 +1,852 @@
langcode: en
status: true
dependencies:
module:
- opencase_entities
- user
id: contact_details_changes
label: 'Contact Details History'
module: views
description: ''
tag: ''
base_table: oc_actor_field_revision
base_field: vid
display:
default:
display_plugin: default
id: default
display_title: Master
position: 0
display_options:
access:
type: perm
options:
perm: 'view published client entities'
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
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
pager:
type: none
options:
offset: 0
style:
type: table
options:
grouping:
1:
field: view_oc_actor
rendered: true
rendered_strip: false
row_class: ''
default_row_class: true
override: true
sticky: false
caption: ''
summary: ''
description: ''
columns:
first_name: first_name
middle_names: middle_names
last_name: last_name
id: id
revision_created: revision_created
view_oc_actor: view_oc_actor
info:
first_name:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
middle_names:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
last_name:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
id:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
revision_created:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
view_oc_actor:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
default: '-1'
empty_table: false
row:
type: fields
options:
inline: { }
separator: ''
hide_empty: false
default_field_elements: true
fields:
revision_created:
id: revision_created
table: oc_actor_revision
field: revision_created
relationship: none
group_type: min
admin_label: ''
label: Date
exclude: false
alter:
alter_text: true
text: '{{ revision_created | date(''d/m/Y'') }}'
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
set_precision: false
precision: 0
decimal: .
separator: ''
format_plural: 0
format_plural_string: !!binary MQNAY291bnQ=
prefix: ''
suffix: ''
click_sort_column: value
type: timestamp
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
field_api_classes: false
entity_type: oc_actor
entity_field: revision_created
plugin_id: field
first_name:
id: first_name
table: oc_actor_field_revision
field: first_name
relationship: none
group_type: group
admin_label: ''
label: 'First Name'
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
entity_type: oc_actor
entity_field: first_name
plugin_id: field
middle_names:
id: middle_names
table: oc_actor_field_revision
field: middle_names
relationship: none
group_type: group
admin_label: ''
label: 'Middle Names'
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
entity_type: oc_actor
entity_field: middle_names
plugin_id: field
last_name:
id: last_name
table: oc_actor_field_revision
field: last_name
relationship: none
group_type: group
admin_label: ''
label: 'Last Name'
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
entity_type: oc_actor
entity_field: last_name
plugin_id: field
email:
id: email
table: oc_actor_field_revision
field: email
relationship: none
group_type: group
admin_label: ''
label: 'Email Address'
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
entity_type: oc_actor
entity_field: email
plugin_id: field
phone:
id: phone
table: oc_actor_field_revision
field: phone
relationship: none
group_type: group
admin_label: ''
label: 'Main Phone Number'
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
entity_type: oc_actor
entity_field: phone
plugin_id: field
phone2:
id: phone2
table: oc_actor_field_revision
field: phone2
relationship: none
group_type: group
admin_label: ''
label: 'Alternative Phone Number'
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
entity_type: oc_actor
entity_field: phone2
plugin_id: field
postal_address:
id: postal_address
table: oc_actor_field_revision
field: postal_address
relationship: none
group_type: group
admin_label: ''
label: 'Postal Address'
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
entity_type: oc_actor
entity_field: postal_address
plugin_id: field
post_code:
id: post_code
table: oc_actor_field_revision
field: post_code
relationship: none
group_type: group
admin_label: ''
label: 'Post Code'
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
entity_type: oc_actor
entity_field: post_code
plugin_id: field
view_oc_actor:
id: view_oc_actor
table: oc_actor_field_revision
field: view_oc_actor
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: true
alter:
alter_text: true
text: "◀\tBack to current record"
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: 'See "rewrite results" (had to do it that way because contains HTML).'
output_url_as_text: false
absolute: false
entity_type: oc_actor
plugin_id: entity_link
filters: { }
sorts:
revision_created:
id: revision_created
table: oc_actor_revision
field: revision_created
relationship: none
group_type: min
admin_label: ''
order: DESC
exposed: false
expose:
label: ''
granularity: second
entity_type: oc_actor
entity_field: revision_created
plugin_id: date
header: { }
footer: { }
empty: { }
relationships: { }
arguments:
id:
id: id
table: oc_actor_field_revision
field: id
relationship: none
group_type: group
admin_label: ''
default_action: 'not found'
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
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
entity_type: oc_actor
entity_field: id
plugin_id: numeric
display_extenders: { }
group_by: true
title: 'Contact Details History'
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- user.permissions
tags: { }
page_1:
display_plugin: page
id: page_1
display_title: Page
position: 1
display_options:
path: opencase/oc_actor/%/contact_details_history
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- user.permissions
tags: { }

View File

@ -0,0 +1,308 @@
langcode: en
status: true
dependencies:
config:
- system.menu.opencase
module:
- opencase_entities
- user
- views_autosubmit
id: equal_opps_records
label: 'Equal Opps Records'
module: views
description: ''
tag: ''
base_table: oc_equal_opps
base_field: id
display:
default:
display_plugin: default
id: default
display_title: Master
position: 0
display_options:
access:
type: perm
options:
perm: 'view published equal opps entities'
cache:
type: tag
options: { }
query:
type: views_query
options:
disable_sql_rewrite: false
distinct: false
replica: false
query_comment: ''
query_tags: { }
exposed_form:
type: autosubmit
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
autosubmit_hide: true
pager:
type: mini
options:
items_per_page: 10
offset: 0
id: 0
total_pages: null
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
tags:
previous:
next:
style:
type: table
row:
type: fields
fields:
name:
id: name
table: oc_equal_opps
field: name
relationship: none
group_type: group
admin_label: ''
label: Name
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: 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
entity_type: null
entity_field: name
plugin_id: field
filters:
status:
value: '1'
table: oc_equal_opps
field: status
plugin_id: boolean
entity_type: oc_equal_opps
entity_field: status
id: status
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
group: 1
first_name:
id: first_name
table: oc_actor_field_data
field: first_name
relationship: oc_actor
group_type: group
admin_label: ''
operator: '='
value: ''
group: 1
exposed: true
expose:
operator_id: first_name_op
label: 'First Name'
description: ''
use_operator: false
operator: first_name_op
operator_limit_selection: false
operator_list: { }
identifier: first_name
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
gno_standard_user: '0'
placeholder: ''
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_actor
entity_field: first_name
plugin_id: string
last_name:
id: last_name
table: oc_actor_field_data
field: last_name
relationship: oc_actor
group_type: group
admin_label: ''
operator: '='
value: ''
group: 1
exposed: true
expose:
operator_id: last_name_op
label: 'Last Name'
description: ''
use_operator: false
operator: last_name_op
operator_limit_selection: false
operator_list: { }
identifier: last_name
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
gno_standard_user: '0'
placeholder: ''
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_actor
entity_field: last_name
plugin_id: string
sorts: { }
title: 'Equal Opps Records'
header: { }
footer: { }
empty:
area:
id: area
table: views
field: area
relationship: none
group_type: group
admin_label: ''
empty: true
tokenize: false
content:
value: 'There is no Equal Opps record by that name. Please check the spelling'
format: basic_html
plugin_id: text
relationships:
oc_actor:
id: oc_actor
table: oc_equal_opps
field: oc_actor
relationship: none
group_type: group
admin_label: Person
required: true
entity_type: oc_equal_opps
entity_field: oc_actor
plugin_id: standard
arguments: { }
display_extenders: { }
use_ajax: true
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user.permissions
tags: { }
page_1:
display_plugin: page
id: page_1
display_title: Page
position: 1
display_options:
display_extenders: { }
path: equal-opps-records
exposed_block: true
menu:
type: normal
title: 'Equal Opps Records'
description: ''
expanded: false
parent: opencase.see_all
weight: 10
context: '0'
menu_name: opencase
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- user.permissions
tags: { }

View File

@ -0,0 +1,12 @@
opencase.oc_event.*:
type: config_entity
label: 'Event config'
mapping:
id:
type: string
label: 'ID'
label:
type: label
label: 'Label'
uuid:
type: string

View File

@ -1,9 +1,45 @@
/* MOVE THIS INTO MORE!! */
.top_ups_bought.add-activity-link {
display: none;
}
/* */
body { body {
font-size: 100% !important; font-size: 100% !important;
} }
.field--type-entity-reference-revisions .field__items {
margin-left: 2em;
}
.field--type-entity-reference-revisions .field__items .field{
margin-top: 0;
}
.field--type-entity-reference-revisions .field__items .paragraph{
margin-top: 0.5em;
margin-bottom: 0.5em;
}
/* remove this confusing thing from user creation page */
#edit-password-policy-status {
display: none;
}
.form-composite > .fieldset-wrapper > .description, .form-item .description {
font-size: 1em !important;
}
div[data-drupal-selector=edit-user-bulk-form] {
display: none;
}
.layout-container {
max-width: 95% !important;
}
/* Free the people from the tyranny of the useless search button */ /* Free the people from the tyranny of the useless search button */
#edit-submit-actor-search{ #edit-submit-actor-search, #edit-submit-actor-search--2{
display: none; display: none;
} }
@ -46,3 +82,44 @@ body {
td.views-field { td.views-field {
vertical-align: top; vertical-align: top;
} }
/* Entity displays */
.oc_entity .left {
display: inline-block;
width: 45%;
padding: 1em;
}
.oc_entity .right {
display: inline-block;
width: 45%;
padding: 1em;
float: right;
}
.oc_entity .field {
margin-top: 1em;
}
/* Make entity reference field labels match normal field labels */
.field--type-entity-reference .field__label {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 1em !important;
font-weight: bold !important;
}
/* Styling for grouped views */
table.views-table.views-view-table caption {
text-align: left;
margin-bottom: 1em;
margin-top: 2em;
font-weight: bold;
}
/* remove "details" accordion, see https://drupal.stackexchange.com/questions/294312/why-has-this-details-accordion-appeared-in-this-view */
.views-table details {
display: none;
}
form.oc-organisation-relation-form tr:first-child {
display: none;
}

67
docs/install.txt Normal file
View File

@ -0,0 +1,67 @@
composer create-project drupal/recommended-project:8.9.8 drupal
# ADD THIS TO drupal/composer.json IN THE REPOSITORIES SECTION
,{
"type": "vcs",
"url": "https://git.autonomic.zone/autonomic-cooperative/opencase.git"
}
# INSTALL MODULES VIA COMPOSER (this will add them to composer.json, which is better than using a premade one, because this way the versions will all sort themselves out)
composer require drupal/admin_toolbar drupal/security_review drupal/smtp drupal/opencase drupal/superfish
# CREATE DIRECTORIES AND SET UP FILE PERMISSIONS
# start in drupal directory
mkdir -p config/sync
mkdir private
# if web server user =/= deployment user:
# start in drupal directory
sudo chgrp www-data config/sync
cd web
cp sites/default/default.settings.php sites/default/settings.php
sudo chgrp www-data . -R
mkdir sites/default/files
sudo chmod g+w sites/default/files -R
chmod g+w sites/default/settings.php
sudo find -type d -exec chmod g+s {} \;
sudo chmod g-w sites/default/
sudo chmod g-w sites
sudo chmod g-w sites ./sites/example.settings.local.php ./sites/development.services.yml ./sites/example.sites.php ./sites/default/default.services.yml ./sites/default/default.settings.php ./autoload.php
sudo chmod g-w -R modules/
sudo chmod g-w -R core
sudo chmod g-w profiles index.php update.php
sudo chmod g-w themes -R
sudo chmod g-w web.config robots.txt
cd ../
sudo chmod g-w -R web/modules
sudo chgrp www-data private
sudo chmod g+w,o-r,o-x private
# INSTALL THE SITE
- Create a database
- Go to the url and run the installer
# make settings file unwriteable now that it has been generated
sudo chmod a-w sites/default/settings.php
# ENABLE all the above modules
drush en admin_toolbar security_review smtp opencase -y
# TODO set $trusted_host_patterns (in settings.php)
# TODO private files (in settings.php)
# TODO Set all the HTML roles to admin only - /admin/config/content/formats
# TODO run security review (make eveything untrusted except CRM Admin and Admin) - /admin/config/security-review
# TODO homepage -> /opencase/whatever-the-chosen-homepage, 403 - /user/login - /admin/config/system/site-information
# TODO disable blocks: tools, main navigation, footer menu - /admin/structure/block
# TODO logo & colours - admin/appearance/settings/bartik
# TODO disallow registering an account & turn off personal contact forms - /admin/config/people/accounts
# TODO add linked actor field to form display and display display - top of both
# TODO change which contact form is the default - /admin/structure/contact
# TODO change "short" date formate to d/m/Y - /admin/config/regional/date-time

View File

@ -1,4 +1,4 @@
opencase_entities.oc_case_type.*: opencase_cases.oc_case_type.*:
type: config_entity type: config_entity
label: 'Case type config' label: 'Case type config'
mapping: mapping:

View File

@ -0,0 +1,37 @@
<?php
/**
* @file
* Contains oc_case.page.inc.
*
* Page callback for Case entities.
*/
use Drupal\Core\Render\Element;
/**
* Prepares variables for Case templates.
*
* Default template: oc_case.html.twig.
*
* @param array $variables
* An associative array containing:
* - elements: An associative array containing the user information and any
* - attributes: HTML attributes for the containing element.
*/
function template_preprocess_oc_case(array &$variables) {
// Separate the fields into two sections to be displayed in two columns.
// Remove the name (title) field as this is displayed anyway.
$variables['id'] = $variables['elements']['#oc_case']->get('id')[0]->get('value')->getValue();
$variables['base_fields'] = array();
$variables['other_fields'] = array();
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
if (in_array($key, ['created', 'changed', 'files', 'actors_involved', 'status', 'user_id'])) {
$variables['base_fields'][$key] = $variables['elements'][$key];
} else {
$variables['other_fields'][$key] = $variables['elements'][$key];
unset($variables['other_fields']['name']);
}
}
}

View File

@ -0,0 +1,11 @@
name: 'Opencase Cases'
type: module
description: 'Provides case entities and a required field on activities linking them to a case.'
core: 8.x
package: OpenCase
dependencies:
0: opencase_entities
1: datetime
4: options
5: paragraphs
6: user

View File

@ -0,0 +1,12 @@
entity.oc_case.add_form:
route_name: entity.oc_case.add_page
title: 'Add Case'
appears_on:
- entity.oc_case.collection
entity.oc_case_type.add_form:
route_name: entity.oc_case_type.add_form
title: 'Add Case type'
appears_on:
- entity.oc_case_type.collection

View File

@ -0,0 +1,25 @@
opencase_cases.manage_case_types:
title: 'Manage case types'
description: 'Configure types of cases and their fields'
menu_name: opencase
parent: opencase.opencase_admin_menu
url: internal:/admin/opencase/oc_case_type
weight: 2
# Case menu items definition
entity.oc_case.collection:
title: 'Case list'
route_name: entity.oc_case.collection
description: 'List Case entities'
parent: system.admin_structure
weight: 100
# Case type menu items definition
entity.oc_case_type.collection:
title: 'Case type'
route_name: entity.oc_case_type.collection
description: 'List Case type (bundles)'
parent: system.admin_structure
weight: 99

View File

@ -0,0 +1,23 @@
# Case routing definition
entity.oc_case.canonical:
route_name: entity.oc_case.canonical
base_route: entity.oc_case.canonical
title: 'View'
entity.oc_case.edit_form:
route_name: entity.oc_case.edit_form
base_route: entity.oc_case.canonical
title: 'Edit'
entity.oc_case.version_history:
route_name: entity.oc_case.version_history
base_route: entity.oc_case.canonical
title: 'Revisions'
entity.oc_case.delete_form:
route_name: entity.oc_case.delete_form
base_route: entity.oc_case.canonical
title: Delete
weight: 10

View File

@ -0,0 +1,140 @@
<?php
/**
* @file
* Contains opencase_cases.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function opencase_cases_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the opencase_cases module.
case 'help.page.opencase_cases':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Provides case entities and a required field on activities linking them to a case.') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function opencase_cases_theme() {
return [
'opencase_cases' => [
'render element' => 'children',
],
'oc_case' => [
'render element' => 'elements',
'file' => 'oc_case.page.inc',
'template' => 'oc_case',
],
'oc_case_content_add_list' => [
'render element' => 'content',
'variables' => ['content' => NULL],
'file' => 'oc_case.page.inc',
]
];
}
function opencase_cases_entity_base_field_info($entity_type) {
$fields = array();
// Add Case field to Activity
if ($entity_type->id() === 'oc_activity') {
$fields['oc_case'] = \Drupal\Core\Field\BaseFieldDefinition::create('entity_reference')
->setLabel(t('Case'))
->setDescription(t('The case this activity belongs to.'))
->setSetting('target_type', 'oc_case')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setCardinality(1)
->setDefaultValueCallback('opencase_cases_default_activity_case_value')
->setDisplayOptions('view', [
'type' => 'string',
'weight' => -3,
])
->setRequired(TRUE);
}
return $fields;
}
/**
* When creating an activity, it sets the case id from the URL.
*/
function opencase_cases_default_activity_case_value() {
return array(\Drupal::request()->query->get('case_id'));
}
/**
* Implementation of hook_form_alter()
* Changes what page is redirected to after deleting things
*/
function opencase_cases_form_alter(&$form, &$form_state, $form_id) {
if (preg_match('/oc_actor_.*_delete_form/', $form_id) or (preg_match('/oc_case_.*_delete_form/', $form_id)) or (preg_match('/oc_organisation_.*_delete_form/', $form_id))) {
$form['actions']['submit']['#submit'][] = '_opencase_cases_redirect_to_home';
$form['actions']['cancel']['#url'] = $form_state->getFormObject()->getEntity()->toUrl();
}
if (preg_match('/oc_activity_.*_delete_form/', $form_id)) {
$form['actions']['submit']['#submit'][] = '_opencase_cases_delete_activity_redirect';
$form['actions']['cancel']['#url'] = $form_state->getFormObject()->getEntity()->toUrl();
}
}
function _opencase_cases_redirect_to_home($form, &$form_state) {
$form_state->setRedirect('<front>');
}
function _opencase_cases_delete_activity_redirect($form, &$form_state) {
$case_id = $form_state->getFormObject()->getEntity()->oc_case->target_id;
$form_state->setRedirect('entity.oc_case.canonical', ['oc_case' => $case_id]);
}
/**
* Implements hook_theme_suggestions_HOOK().
*/
function opencase_cases_theme_suggestions_oc_case(array $variables) {
$suggestions = [];
$entity = $variables['elements']['#oc_case'];
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
$suggestions[] = 'oc_case__' . $sanitized_view_mode;
$suggestions[] = 'oc_case__' . $entity->bundle();
$suggestions[] = 'oc_case__' . $entity->bundle() . '__' . $sanitized_view_mode;
$suggestions[] = 'oc_case__' . $entity->id();
$suggestions[] = 'oc_case__' . $entity->id() . '__' . $sanitized_view_mode;
return $suggestions;
}
//function opencase_views_query_alter(Drupal\views\ViewExecutable $view, $query) {
// if ($view->getBaseEntityType() && $view->getBaseEntityType()->id() == 'oc_case') {
// $query->addTag('oc_case_access');
// }
// if ($view->getBaseEntityType() && $view->getBaseEntityType()->id() == 'oc_activity') {
// $query->addTag('oc_activity_access');
// }
//}
//
//function opencase_query_oc_case_access_alter($query) {
// if (\Drupal::currentUser()->hasPermission('view published case entities')) {
// return;
// }
// $linked_actor_id = CaseInvolvement::getLinkedActorId(\Drupal::currentUser());
// $query->addJoin('INNER', 'oc_case__actors_involved', 'access_filter', 'access_filter.entity_id = oc_case_field_data.id');
// $query->condition('access_filter.actors_involved_target_id', $linked_actor_id);
//}
//
//function opencase_query_oc_activity_access_alter($query) {
// if (\Drupal::currentUser()->hasPermission('view published case entities')) {
// return;
// }
// $linked_actor_id = CaseInvolvement::getLinkedActorId(\Drupal::currentUser());
// $query->addJoin('INNER', 'oc_case__actors_involved', 'access_filter', 'access_filter.entity_id = oc_activity_field_data.oc_case');
// $query->condition('access_filter.actors_involved_target_id', $linked_actor_id);
//}

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
class CaseInvolvement { class CaseInvolvement {

View File

@ -1,12 +1,12 @@
<?php <?php
namespace Drupal\opencase_entities\Controller; namespace Drupal\opencase_cases\Controller;
use Drupal\Component\Utility\Xss; use Drupal\Component\Utility\Xss;
use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\opencase_entities\Entity\OCCaseInterface; use Drupal\opencase_cases\Entity\OCCaseInterface;
/** /**
* Class OCCaseController. * Class OCCaseController.
@ -48,7 +48,7 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
/** /**
* Generates an overview table of older revisions of a Case . * Generates an overview table of older revisions of a Case .
* *
* @param \Drupal\opencase_entities\Entity\OCCaseInterface $oc_case * @param \Drupal\opencase_cases\Entity\OCCaseInterface $oc_case
* A Case object. * A Case object.
* *
* @return array * @return array
@ -75,7 +75,7 @@ class OCCaseController extends ControllerBase implements ContainerInjectionInter
$latest_revision = TRUE; $latest_revision = TRUE;
foreach (array_reverse($vids) as $vid) { foreach (array_reverse($vids) as $vid) {
/** @var \Drupal\opencase_entities\OCCaseInterface $revision */ /** @var \Drupal\opencase_cases\OCCaseInterface $revision */
$revision = $oc_case_storage->loadRevision($vid); $revision = $oc_case_storage->loadRevision($vid);
// Only show revisions that are affected by the language that is being // Only show revisions that are affected by the language that is being
// displayed. // displayed.

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Entity; namespace Drupal\opencase_cases\Entity;
use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Field\BaseFieldDefinition; use Drupal\Core\Field\BaseFieldDefinition;
@ -13,28 +13,28 @@ use Drupal\user\UserInterface;
/** /**
* Defines the Case entity. * Defines the Case entity.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
* *
* @ContentEntityType( * @ContentEntityType(
* id = "oc_case", * id = "oc_case",
* label = @Translation("Case"), * label = @Translation("Case"),
* bundle_label = @Translation("Case type"), * bundle_label = @Translation("Case type"),
* handlers = { * handlers = {
* "storage" = "Drupal\opencase_entities\OCCaseStorage", * "storage" = "Drupal\opencase_cases\OCCaseStorage",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder", * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\opencase_entities\OCCaseListBuilder", * "list_builder" = "Drupal\opencase_cases\OCCaseListBuilder",
* "views_data" = "Drupal\opencase_entities\Entity\OCCaseViewsData", * "views_data" = "Drupal\opencase_cases\Entity\OCCaseViewsData",
* "translation" = "Drupal\opencase_entities\OCCaseTranslationHandler", * "translation" = "Drupal\opencase_cases\OCCaseTranslationHandler",
* *
* "form" = { * "form" = {
* "default" = "Drupal\opencase_entities\Form\OCCaseForm", * "default" = "Drupal\opencase_cases\Form\OCCaseForm",
* "add" = "Drupal\opencase_entities\Form\OCCaseForm", * "add" = "Drupal\opencase_cases\Form\OCCaseForm",
* "edit" = "Drupal\opencase_entities\Form\OCCaseForm", * "edit" = "Drupal\opencase_cases\Form\OCCaseForm",
* "delete" = "Drupal\opencase_entities\Form\OCCaseDeleteForm", * "delete" = "Drupal\opencase_cases\Form\OCCaseDeleteForm",
* }, * },
* "access" = "Drupal\opencase_entities\OCCaseAccessControlHandler", * "access" = "Drupal\opencase_cases\OCCaseAccessControlHandler",
* "route_provider" = { * "route_provider" = {
* "html" = "Drupal\opencase_entities\OCCaseHtmlRouteProvider", * "html" = "Drupal\opencase_cases\OCCaseHtmlRouteProvider",
* }, * },
* }, * },
* base_table = "oc_case", * base_table = "oc_case",
@ -74,17 +74,6 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
use EntityChangedTrait; use EntityChangedTrait;
/**
* When creating a case, it sets the first involved party to the actor
* id from the URL, and the second to the author's linked actor
* (if it exists and is different)
*/
public static function defaultVal() {
$author_linked_actor_id = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id())->get('field_linked_opencase_actor')->target_id;
$currently_viewed_actor_id = \Drupal::request()->query->get('actor_id');
return array_unique([$currently_viewed_actor_id, $author_linked_actor_id]);
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
@ -222,20 +211,21 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setDefaultValue(TRUE); ->setDefaultValue(TRUE);
$fields['user_id'] = BaseFieldDefinition::create('entity_reference') $fields['user_id'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Entered by')) ->setLabel(t('Created by'))
->setDescription(t('The user ID of author of the Case entity.')) ->setDescription(t('The user ID of author of the Case entity.'))
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setSetting('target_type', 'user') ->setSetting('target_type', 'user')
->setSetting('handler', 'default') ->setSetting('handler', 'default')
->setTranslatable(TRUE) ->setTranslatable(TRUE)
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setDisplayOptions('view', [ ->setDisplayOptions('view', [
'label' => 'inline', 'label' => 'above',
'type' => 'author', 'type' => 'author',
'weight' => -4, 'weight' => 80,
]); ]);
$fields['name'] = BaseFieldDefinition::create('string') $fields['name'] = BaseFieldDefinition::create('string')
->setLabel(t('Case Title')) ->setLabel(t('Title'))
->setDescription(t('A short phrase summing up what this case is about.'))
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setSettings([ ->setSettings([
'max_length' => 50, 'max_length' => 50,
@ -245,37 +235,13 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setDisplayOptions('view', [ ->setDisplayOptions('view', [
'label' => 'hidden', 'label' => 'hidden',
'type' => 'string', 'type' => 'string',
'weight' => -3,
]) ])
->setDisplayOptions('form', [ ->setDisplayOptions('form', [
'type' => 'string_textfield', 'type' => 'string_textfield',
'weight' => -3, 'weight' => -100,
]) ])
->setRequired(TRUE); ->setRequired(TRUE);
$fields['actors_involved'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Involved Parties'))
->setDescription(t('People involved in this case. To add one, start typing their name.'))
->setSetting('target_type', 'oc_actor')
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setCardinality(-1)
->setDisplayOptions('form', [
'type' => 'entity_reference_autocomplete',
'weight' => -2,
'settings' => [
'match_operator' => 'CONTAINS',
'size' => '60',
'autocomplete_type' => 'tags',
'placeholder' => '',
],
])
->setDisplayOptions('view', [
'label' => 'above',
'weight' => -2
])
->setDefaultValueCallback('Drupal\opencase_entities\Entity\OCCase::defaultVal')
->setRequired(TRUE);
$fields['files'] = BaseFieldDefinition::create('file') $fields['files'] = BaseFieldDefinition::create('file')
->setLabel(t('Files')) ->setLabel(t('Files'))
@ -286,6 +252,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setSetting('description_field', 'true') ->setSetting('description_field', 'true')
->setSetting('uri_scheme', 'private') ->setSetting('uri_scheme', 'private')
->setCardinality(-1) ->setCardinality(-1)
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setDisplayOptions('form', [ ->setDisplayOptions('form', [
'type' => 'file_generic', 'type' => 'file_generic',
'weight' => -1, 'weight' => -1,
@ -295,17 +263,24 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
]) ])
->setDisplayOptions('view', [ ->setDisplayOptions('view', [
'label' => 'above', 'label' => 'above',
'weight' => -1,
'settings' => ['use_description_as_link_text' => 'true'] 'settings' => ['use_description_as_link_text' => 'true']
]); ]);
$fields['created'] = BaseFieldDefinition::create('created') $fields['created'] = BaseFieldDefinition::create('created')
->setLabel(t('Created')) ->setLabel(t('Created on'))
->setDescription(t('The time that the entity was created.')); ->setDescription(t('When the case was created.'))
->setDisplayOptions('view', [
'label' => 'above',
'weight' => 80,
]);
$fields['changed'] = BaseFieldDefinition::create('changed') $fields['changed'] = BaseFieldDefinition::create('changed')
->setLabel(t('Changed')) ->setLabel(t('Last updated'))
->setDescription(t('The time that the entity was last edited.')); ->setDescription(t('When the case was last edited.'))
->setDisplayOptions('view', [
'label' => 'above',
'weight' => 80,
]);
$fields['revision_translation_affected'] = BaseFieldDefinition::create('boolean') $fields['revision_translation_affected'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Revision translation affected')) ->setLabel(t('Revision translation affected'))

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Entity; namespace Drupal\opencase_cases\Entity;
use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\RevisionLogInterface; use Drupal\Core\Entity\RevisionLogInterface;
@ -10,7 +10,7 @@ use Drupal\user\EntityOwnerInterface;
/** /**
* Provides an interface for defining Case entities. * Provides an interface for defining Case entities.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface, EntityChangedInterface, EntityOwnerInterface { interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface, EntityChangedInterface, EntityOwnerInterface {
@ -30,7 +30,7 @@ interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface,
* @param string $name * @param string $name
* The Case name. * The Case name.
* *
* @return \Drupal\opencase_entities\Entity\OCCaseInterface * @return \Drupal\opencase_cases\Entity\OCCaseInterface
* The called Case entity. * The called Case entity.
*/ */
public function setName($name); public function setName($name);
@ -49,7 +49,7 @@ interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface,
* @param int $timestamp * @param int $timestamp
* The Case creation timestamp. * The Case creation timestamp.
* *
* @return \Drupal\opencase_entities\Entity\OCCaseInterface * @return \Drupal\opencase_cases\Entity\OCCaseInterface
* The called Case entity. * The called Case entity.
*/ */
public function setCreatedTime($timestamp); public function setCreatedTime($timestamp);
@ -70,7 +70,7 @@ interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface,
* @param bool $published * @param bool $published
* TRUE to set this Case to published, FALSE to set it to unpublished. * TRUE to set this Case to published, FALSE to set it to unpublished.
* *
* @return \Drupal\opencase_entities\Entity\OCCaseInterface * @return \Drupal\opencase_cases\Entity\OCCaseInterface
* The called Case entity. * The called Case entity.
*/ */
public function setPublished($published); public function setPublished($published);
@ -89,7 +89,7 @@ interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface,
* @param int $timestamp * @param int $timestamp
* The UNIX timestamp of when this revision was created. * The UNIX timestamp of when this revision was created.
* *
* @return \Drupal\opencase_entities\Entity\OCCaseInterface * @return \Drupal\opencase_cases\Entity\OCCaseInterface
* The called Case entity. * The called Case entity.
*/ */
public function setRevisionCreationTime($timestamp); public function setRevisionCreationTime($timestamp);
@ -108,7 +108,7 @@ interface OCCaseInterface extends ContentEntityInterface, RevisionLogInterface,
* @param int $uid * @param int $uid
* The user ID of the revision author. * The user ID of the revision author.
* *
* @return \Drupal\opencase_entities\Entity\OCCaseInterface * @return \Drupal\opencase_cases\Entity\OCCaseInterface
* The called Case entity. * The called Case entity.
*/ */
public function setRevisionUserId($uid); public function setRevisionUserId($uid);

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Entity; namespace Drupal\opencase_cases\Entity;
use Drupal\Core\Config\Entity\ConfigEntityBundleBase; use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
@ -11,20 +11,20 @@ use Drupal\Core\Config\Entity\ConfigEntityBundleBase;
* id = "oc_case_type", * id = "oc_case_type",
* label = @Translation("Case type"), * label = @Translation("Case type"),
* handlers = { * handlers = {
* "access" = "Drupal\opencase_entities\OCCaseTypeAccessControlHandler", * "access" = "Drupal\opencase_cases\OCCaseTypeAccessControlHandler",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder", * "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "list_builder" = "Drupal\opencase_entities\OCCaseTypeListBuilder", * "list_builder" = "Drupal\opencase_cases\OCCaseTypeListBuilder",
* "form" = { * "form" = {
* "add" = "Drupal\opencase_entities\Form\OCCaseTypeForm", * "add" = "Drupal\opencase_cases\Form\OCCaseTypeForm",
* "edit" = "Drupal\opencase_entities\Form\OCCaseTypeForm", * "edit" = "Drupal\opencase_cases\Form\OCCaseTypeForm",
* "delete" = "Drupal\opencase_entities\Form\OCCaseTypeDeleteForm" * "delete" = "Drupal\opencase_cases\Form\OCCaseTypeDeleteForm"
* }, * },
* "route_provider" = { * "route_provider" = {
* "html" = "Drupal\opencase_entities\OCCaseTypeHtmlRouteProvider", * "html" = "Drupal\opencase_cases\OCCaseTypeHtmlRouteProvider",
* }, * },
* }, * },
* config_prefix = "oc_case_type", * config_prefix = "oc_case_type",
* admin_permission = "administer opencase entity bundles", * admin_permission = "administer case bundles",
* bundle_of = "oc_case", * bundle_of = "oc_case",
* entity_keys = { * entity_keys = {
* "id" = "id", * "id" = "id",

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Entity; namespace Drupal\opencase_cases\Entity;
use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\Core\Config\Entity\ConfigEntityInterface;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Entity; namespace Drupal\opencase_cases\Entity;
use Drupal\views\EntityViewsData; use Drupal\views\EntityViewsData;

View File

@ -1,13 +1,13 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm; use Drupal\Core\Entity\ContentEntityDeleteForm;
/** /**
* Provides a form for deleting Case entities. * Provides a form for deleting Case entities.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseDeleteForm extends ContentEntityDeleteForm { class OCCaseDeleteForm extends ContentEntityDeleteForm {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Entity\ContentEntityForm; use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
@ -8,7 +8,7 @@ use Drupal\Core\Form\FormStateInterface;
/** /**
* Form controller for Case edit forms. * Form controller for Case edit forms.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseForm extends ContentEntityForm { class OCCaseForm extends ContentEntityForm {
@ -16,7 +16,7 @@ class OCCaseForm extends ContentEntityForm {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function buildForm(array $form, FormStateInterface $form_state) { public function buildForm(array $form, FormStateInterface $form_state) {
/* @var $entity \Drupal\opencase_entities\Entity\OCCase */ /* @var $entity \Drupal\opencase_cases\Entity\OCCase */
$form = parent::buildForm($form, $form_state); $form = parent::buildForm($form, $form_state);
if (!$this->entity->isNew()) { if (!$this->entity->isNew()) {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Database\Connection; use Drupal\Core\Database\Connection;
use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityStorageInterface;
@ -12,7 +12,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
* Provides a form for deleting a Case revision. * Provides a form for deleting a Case revision.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseRevisionDeleteForm extends ConfirmFormBase { class OCCaseRevisionDeleteForm extends ConfirmFormBase {
@ -20,7 +20,7 @@ class OCCaseRevisionDeleteForm extends ConfirmFormBase {
/** /**
* The Case revision. * The Case revision.
* *
* @var \Drupal\opencase_entities\Entity\OCCaseInterface * @var \Drupal\opencase_cases\Entity\OCCaseInterface
*/ */
protected $revision; protected $revision;

View File

@ -1,19 +1,19 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Datetime\DateFormatterInterface; use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\ConfirmFormBase; use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\opencase_entities\Entity\OCCaseInterface; use Drupal\opencase_cases\Entity\OCCaseInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
* Provides a form for reverting a Case revision. * Provides a form for reverting a Case revision.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseRevisionRevertForm extends ConfirmFormBase { class OCCaseRevisionRevertForm extends ConfirmFormBase {
@ -21,7 +21,7 @@ class OCCaseRevisionRevertForm extends ConfirmFormBase {
/** /**
* The Case revision. * The Case revision.
* *
* @var \Drupal\opencase_entities\Entity\OCCaseInterface * @var \Drupal\opencase_cases\Entity\OCCaseInterface
*/ */
protected $revision; protected $revision;
@ -130,12 +130,12 @@ class OCCaseRevisionRevertForm extends ConfirmFormBase {
/** /**
* Prepares a revision to be reverted. * Prepares a revision to be reverted.
* *
* @param \Drupal\opencase_entities\Entity\OCCaseInterface $revision * @param \Drupal\opencase_cases\Entity\OCCaseInterface $revision
* The revision to be reverted. * The revision to be reverted.
* @param \Drupal\Core\Form\FormStateInterface $form_state * @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form. * The current state of the form.
* *
* @return \Drupal\opencase_entities\Entity\OCCaseInterface * @return \Drupal\opencase_cases\Entity\OCCaseInterface
* The prepared revision ready to be stored. * The prepared revision ready to be stored.
*/ */
protected function prepareRevertedRevision(OCCaseInterface $revision, FormStateInterface $form_state) { protected function prepareRevertedRevision(OCCaseInterface $revision, FormStateInterface $form_state) {

View File

@ -1,18 +1,18 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Datetime\DateFormatterInterface; use Drupal\Core\Datetime\DateFormatterInterface;
use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Language\LanguageManagerInterface; use Drupal\Core\Language\LanguageManagerInterface;
use Drupal\opencase_entities\Entity\OCCaseInterface; use Drupal\opencase_cases\Entity\OCCaseInterface;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
/** /**
* Provides a form for reverting a Case revision for a single translation. * Provides a form for reverting a Case revision for a single translation.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseRevisionRevertTranslationForm extends OCCaseRevisionRevertForm { class OCCaseRevisionRevertTranslationForm extends OCCaseRevisionRevertForm {
@ -93,7 +93,7 @@ class OCCaseRevisionRevertTranslationForm extends OCCaseRevisionRevertForm {
protected function prepareRevertedRevision(OCCaseInterface $revision, FormStateInterface $form_state) { protected function prepareRevertedRevision(OCCaseInterface $revision, FormStateInterface $form_state) {
$revert_untranslated_fields = $form_state->getValue('revert_untranslated_fields'); $revert_untranslated_fields = $form_state->getValue('revert_untranslated_fields');
/** @var \Drupal\opencase_entities\Entity\OCCaseInterface $default_revision */ /** @var \Drupal\opencase_cases\Entity\OCCaseInterface $default_revision */
$latest_revision = $this->OCCaseStorage->load($revision->id()); $latest_revision = $this->OCCaseStorage->load($revision->id());
$latest_revision_translation = $latest_revision->getTranslation($this->langcode); $latest_revision_translation = $latest_revision->getTranslation($this->langcode);

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
@ -8,7 +8,7 @@ use Drupal\Core\Form\FormStateInterface;
/** /**
* Class OCCaseSettingsForm. * Class OCCaseSettingsForm.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseSettingsForm extends FormBase { class OCCaseSettingsForm extends FormBase {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Entity\EntityConfirmFormBase; use Drupal\Core\Entity\EntityConfirmFormBase;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities\Form; namespace Drupal\opencase_cases\Form;
use Drupal\Core\Entity\EntityForm; use Drupal\Core\Entity\EntityForm;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
@ -30,7 +30,7 @@ class OCCaseTypeForm extends EntityForm {
'#type' => 'machine_name', '#type' => 'machine_name',
'#default_value' => $oc_case_type->id(), '#default_value' => $oc_case_type->id(),
'#machine_name' => [ '#machine_name' => [
'exists' => '\Drupal\opencase_entities\Entity\OCCaseType::load', 'exists' => '\Drupal\opencase_cases\Entity\OCCaseType::load',
], ],
'#disabled' => !$oc_case_type->isNew(), '#disabled' => !$oc_case_type->isNew(),
]; ];

View File

@ -1,17 +1,17 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\EntityAccessControlHandler; use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Access\AccessResult; use Drupal\Core\Access\AccessResult;
use Drupal\opencase_entities\CaseInvolvement; use Drupal\opencase_cases\CaseInvolvement;
/** /**
* Access controller for the Case entity. * Access controller for the Case entity.
* *
* @see \Drupal\opencase_entities\Entity\OCCase. * @see \Drupal\opencase_cases\Entity\OCCase.
*/ */
class OCCaseAccessControlHandler extends EntityAccessControlHandler { class OCCaseAccessControlHandler extends EntityAccessControlHandler {
@ -19,7 +19,7 @@ class OCCaseAccessControlHandler extends EntityAccessControlHandler {
* {@inheritdoc} * {@inheritdoc}
*/ */
protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) { protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
/** @var \Drupal\opencase_entities\Entity\OCCaseInterface $entity */ /** @var \Drupal\opencase_cases\Entity\OCCaseInterface $entity */
switch ($operation) { switch ($operation) {
case 'view': case 'view':
if (!$entity->isPublished()) { if (!$entity->isPublished()) {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider; use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
@ -64,7 +64,7 @@ class OCCaseHtmlRouteProvider extends AdminHtmlRouteProvider {
$route $route
->setDefaults([ ->setDefaults([
'_title' => "{$entity_type->getLabel()} revisions", '_title' => "{$entity_type->getLabel()} revisions",
'_controller' => '\Drupal\opencase_entities\Controller\OCCaseController::revisionOverview', '_controller' => '\Drupal\opencase_cases\Controller\OCCaseController::revisionOverview',
]) ])
->setRequirement('_permission', 'access case revisions') ->setRequirement('_permission', 'access case revisions')
->setOption('_admin_route', TRUE); ->setOption('_admin_route', TRUE);
@ -87,8 +87,8 @@ class OCCaseHtmlRouteProvider extends AdminHtmlRouteProvider {
$route = new Route($entity_type->getLinkTemplate('revision')); $route = new Route($entity_type->getLinkTemplate('revision'));
$route $route
->setDefaults([ ->setDefaults([
'_controller' => '\Drupal\opencase_entities\Controller\OCCaseController::revisionShow', '_controller' => '\Drupal\opencase_cases\Controller\OCCaseController::revisionShow',
'_title_callback' => '\Drupal\opencase_entities\Controller\OCCaseController::revisionPageTitle', '_title_callback' => '\Drupal\opencase_cases\Controller\OCCaseController::revisionPageTitle',
]) ])
->setRequirement('_permission', 'access case revisions') ->setRequirement('_permission', 'access case revisions')
->setOption('_admin_route', TRUE); ->setOption('_admin_route', TRUE);
@ -111,7 +111,7 @@ class OCCaseHtmlRouteProvider extends AdminHtmlRouteProvider {
$route = new Route($entity_type->getLinkTemplate('revision_revert')); $route = new Route($entity_type->getLinkTemplate('revision_revert'));
$route $route
->setDefaults([ ->setDefaults([
'_form' => '\Drupal\opencase_entities\Form\OCCaseRevisionRevertForm', '_form' => '\Drupal\opencase_cases\Form\OCCaseRevisionRevertForm',
'_title' => 'Revert to earlier revision', '_title' => 'Revert to earlier revision',
]) ])
->setRequirement('_permission', 'revert all case revisions') ->setRequirement('_permission', 'revert all case revisions')
@ -135,7 +135,7 @@ class OCCaseHtmlRouteProvider extends AdminHtmlRouteProvider {
$route = new Route($entity_type->getLinkTemplate('revision_delete')); $route = new Route($entity_type->getLinkTemplate('revision_delete'));
$route $route
->setDefaults([ ->setDefaults([
'_form' => '\Drupal\opencase_entities\Form\OCCaseRevisionDeleteForm', '_form' => '\Drupal\opencase_cases\Form\OCCaseRevisionDeleteForm',
'_title' => 'Delete earlier revision', '_title' => 'Delete earlier revision',
]) ])
->setRequirement('_permission', 'delete all case revisions') ->setRequirement('_permission', 'delete all case revisions')
@ -159,7 +159,7 @@ class OCCaseHtmlRouteProvider extends AdminHtmlRouteProvider {
$route = new Route($entity_type->getLinkTemplate('translation_revert')); $route = new Route($entity_type->getLinkTemplate('translation_revert'));
$route $route
->setDefaults([ ->setDefaults([
'_form' => '\Drupal\opencase_entities\Form\OCCaseRevisionRevertTranslationForm', '_form' => '\Drupal\opencase_cases\Form\OCCaseRevisionRevertTranslationForm',
'_title' => 'Revert to earlier revision of a translation', '_title' => 'Revert to earlier revision of a translation',
]) ])
->setRequirement('_permission', 'revert all case revisions') ->setRequirement('_permission', 'revert all case revisions')
@ -183,7 +183,7 @@ class OCCaseHtmlRouteProvider extends AdminHtmlRouteProvider {
$route = new Route("/admin/structure/{$entity_type->id()}/settings"); $route = new Route("/admin/structure/{$entity_type->id()}/settings");
$route $route
->setDefaults([ ->setDefaults([
'_form' => 'Drupal\opencase_entities\Form\OCCaseSettingsForm', '_form' => 'Drupal\opencase_cases\Form\OCCaseSettingsForm',
'_title' => "{$entity_type->getLabel()} settings", '_title' => "{$entity_type->getLabel()} settings",
]) ])
->setRequirement('_permission', $entity_type->getAdminPermission()) ->setRequirement('_permission', $entity_type->getAdminPermission())

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityListBuilder; use Drupal\Core\Entity\EntityListBuilder;
@ -9,7 +9,7 @@ use Drupal\Core\Link;
/** /**
* Defines a class to build a listing of Case entities. * Defines a class to build a listing of Case entities.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseListBuilder extends EntityListBuilder { class OCCaseListBuilder extends EntityListBuilder {
@ -27,7 +27,7 @@ class OCCaseListBuilder extends EntityListBuilder {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function buildRow(EntityInterface $entity) { public function buildRow(EntityInterface $entity) {
/* @var $entity \Drupal\opencase_entities\Entity\OCCase */ /* @var $entity \Drupal\opencase_cases\Entity\OCCase */
$row['id'] = $entity->id(); $row['id'] = $entity->id();
$row['name'] = Link::createFromRoute( $row['name'] = Link::createFromRoute(
$entity->label(), $entity->label(),

View File

@ -1,11 +1,11 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\Sql\SqlContentEntityStorage; use Drupal\Core\Entity\Sql\SqlContentEntityStorage;
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Language\LanguageInterface;
use Drupal\opencase_entities\Entity\OCCaseInterface; use Drupal\opencase_cases\Entity\OCCaseInterface;
/** /**
* Defines the storage handler class for Case entities. * Defines the storage handler class for Case entities.
@ -13,7 +13,7 @@ use Drupal\opencase_entities\Entity\OCCaseInterface;
* This extends the base storage class, adding required special handling for * This extends the base storage class, adding required special handling for
* Case entities. * Case entities.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
class OCCaseStorage extends SqlContentEntityStorage implements OCCaseStorageInterface { class OCCaseStorage extends SqlContentEntityStorage implements OCCaseStorageInterface {

View File

@ -1,11 +1,11 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\ContentEntityStorageInterface; use Drupal\Core\Entity\ContentEntityStorageInterface;
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Language\LanguageInterface;
use Drupal\opencase_entities\Entity\OCCaseInterface; use Drupal\opencase_cases\Entity\OCCaseInterface;
/** /**
* Defines the storage handler class for Case entities. * Defines the storage handler class for Case entities.
@ -13,14 +13,14 @@ use Drupal\opencase_entities\Entity\OCCaseInterface;
* This extends the base storage class, adding required special handling for * This extends the base storage class, adding required special handling for
* Case entities. * Case entities.
* *
* @ingroup opencase_entities * @ingroup opencase_cases
*/ */
interface OCCaseStorageInterface extends ContentEntityStorageInterface { interface OCCaseStorageInterface extends ContentEntityStorageInterface {
/** /**
* Gets a list of Case revision IDs for a specific Case. * Gets a list of Case revision IDs for a specific Case.
* *
* @param \Drupal\opencase_entities\Entity\OCCaseInterface $entity * @param \Drupal\opencase_cases\Entity\OCCaseInterface $entity
* The Case entity. * The Case entity.
* *
* @return int[] * @return int[]
@ -42,7 +42,7 @@ interface OCCaseStorageInterface extends ContentEntityStorageInterface {
/** /**
* Counts the number of revisions in the default language. * Counts the number of revisions in the default language.
* *
* @param \Drupal\opencase_entities\Entity\OCCaseInterface $entity * @param \Drupal\opencase_cases\Entity\OCCaseInterface $entity
* The Case entity. * The Case entity.
* *
* @return int * @return int

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\content_translation\ContentTranslationHandler; use Drupal\content_translation\ContentTranslationHandler;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\EntityAccessControlHandler; use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
@ -11,7 +11,7 @@ use Drupal\Core\Access\AccessResult;
* Defines the access control handler for the OCCaseType Config Entity. * Defines the access control handler for the OCCaseType Config Entity.
* Always allows viewing the label of the bundle. * Always allows viewing the label of the bundle.
* *
* @see Drupal\opencase_entities\Entity\OCCaseType * @see Drupal\opencase_cases\Entity\OCCaseType
*/ */
class OCCaseTypeAccessControlHandler extends EntityAccessControlHandler { class OCCaseTypeAccessControlHandler extends EntityAccessControlHandler {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider; use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Drupal\opencase_entities; namespace Drupal\opencase_cases;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder; use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;

View File

@ -0,0 +1,23 @@
{#
/**
* @file
* Default theme implementation to present a list of custom content entity types/bundles.
*
* Available variables:
* - types: A collection of all the available custom entity types/bundles.
* Each type/bundle contains the following:
* - link: A link to add a content entity of this type.
* - description: A description of this content entity types/bundle.
*
* @see template_preprocess_oc_activity_content_add_list()
*
* @ingroup themeable
*/
#}
{% spaceless %}
<dl>
{% for id,type in bundles %}
<dt><a href="/opencase/oc_case/add/{{ id }}?client_id={{ client_id }}">{{ type.label }}</a></dt>
{% endfor %}
</dl>
{% endspaceless %}

View File

@ -16,7 +16,18 @@
*/ */
#} #}
<div{{ attributes.addClass('oc_case') }}> <div{{ attributes.addClass('oc_case') }}>
{% if content %} <h2>{{ title }}</h2>
{{- content -}} <div class="oc_entity">
{% endif %} <div class="left">
{{ base_fields.actors_involved }}
{{ base_fields.changed }}
{{ base_fields.created }}
{{ base_fields.user_id }}
</div>
<div class="right">
{% for field in other_fields %}
{{ field }}
{% endfor %}
</div>
</div>
</div> </div>

View File

@ -0,0 +1 @@
<!-- Add you custom twig html here -->

View File

@ -2,18 +2,19 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- user.role.authenticated - field.storage.oc_actor.field_asylum_status
- field.storage.oc_actor.field_marital_
module: module:
- opencase_entities - opencase_entities
- options
- user - user
id: cases id: name_and_status_changes
label: Cases label: 'Name and Status Changes'
module: views module: views
description: '' description: ''
tag: '' tag: ''
base_table: oc_case_field_data base_table: oc_actor_field_revision
base_field: id base_field: vid
core: 8.x
display: display:
default: default:
display_plugin: default display_plugin: default
@ -22,12 +23,11 @@ display:
position: 0 position: 0
display_options: display_options:
access: access:
type: role type: perm
options: options:
role: perm: 'view published case entities'
authenticated: authenticated
cache: cache:
type: none type: tag
options: { } options: { }
query: query:
type: views_query type: views_query
@ -40,48 +40,112 @@ display:
exposed_form: exposed_form:
type: basic type: basic
options: options:
submit_button: Apply submit_button: Go
reset_button: false reset_button: false
reset_button_label: Reset reset_button_label: Reset
exposed_sorts_label: 'Sort by' exposed_sorts_label: 'Sort by'
expose_sort_order: true expose_sort_order: false
sort_asc_label: Asc sort_asc_label: Asc
sort_desc_label: Desc sort_desc_label: Desc
pager: pager:
type: mini type: none
options: options:
items_per_page: 50
offset: 0 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: style:
type: table type: table
options:
grouping:
-
field: view_oc_actor
rendered: true
rendered_strip: false
row_class: ''
default_row_class: true
override: true
sticky: false
caption: ''
summary: ''
description: ''
columns:
first_name: first_name
middle_names: middle_names
last_name: last_name
field_asylum_status-revision_id: field_asylum_status-revision_id
field_marital_-revision_id: field_marital_-revision_id
view_oc_actor: view_oc_actor
revision_created: revision_created
info:
first_name:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
middle_names:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
last_name:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_asylum_status-revision_id:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_marital_-revision_id:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
view_oc_actor:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
revision_created:
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
default: '-1'
empty_table: false
row: row:
type: fields type: fields
options:
inline: { }
separator: ''
hide_empty: false
default_field_elements: true
fields: fields:
id: revision_created:
id: id id: revision_created
table: oc_case_field_data table: oc_actor_revision
field: id field: revision_created
relationship: none relationship: none
group_type: group group_type: min
admin_label: '' admin_label: ''
label: ID label: 'Date changed'
exclude: true exclude: false
alter: alter:
alter_text: false alter_text: true
text: '' text: '{{ revision_created | date(''d/m/Y'') }}'
make_link: false make_link: false
path: '' path: ''
absolute: false absolute: false
@ -118,11 +182,17 @@ display:
hide_empty: false hide_empty: false
empty_zero: false empty_zero: false
hide_alter_empty: true hide_alter_empty: true
set_precision: false
precision: 0
decimal: .
separator: ''
format_plural: 0
format_plural_string: !!binary MQNAY291bnQ=
prefix: ''
suffix: ''
click_sort_column: value click_sort_column: value
type: number_integer type: timestamp
settings: settings: { }
thousand_separator: ''
prefix_suffix: true
group_column: value group_column: value
group_columns: { } group_columns: { }
group_rows: true group_rows: true
@ -131,24 +201,23 @@ display:
delta_reversed: false delta_reversed: false
delta_first_last: false delta_first_last: false
multi_type: separator multi_type: separator
separator: ', '
field_api_classes: false field_api_classes: false
entity_type: oc_case entity_type: oc_actor
entity_field: id entity_field: revision_created
plugin_id: field plugin_id: field
name: first_name:
id: name id: first_name
table: oc_case_field_data table: oc_actor_field_revision
field: name field: first_name
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
label: 'Case Title' label: 'First Name'
exclude: false exclude: false
alter: alter:
alter_text: false alter_text: false
text: '' text: ''
make_link: true make_link: false
path: '' path: ''
absolute: false absolute: false
external: false external: false
@ -159,7 +228,7 @@ display:
rel: '' rel: ''
link_class: '' link_class: ''
prefix: '' prefix: ''
suffix: foo suffix: ''
target: '' target: ''
nl2br: false nl2br: false
max_length: 0 max_length: 0
@ -198,147 +267,17 @@ display:
multi_type: separator multi_type: separator
separator: ', ' separator: ', '
field_api_classes: false field_api_classes: false
entity_type: null entity_type: oc_actor
entity_field: name entity_field: first_name
plugin_id: field plugin_id: field
type: middle_names:
id: type id: middle_names
table: oc_case_field_data table: oc_actor_field_revision
field: type field: middle_names
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
label: Type label: 'Middle Names'
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
entity_type: oc_case
entity_field: type
plugin_id: field
actors_involved_target_id:
id: actors_involved_target_id
table: oc_case__actors_involved
field: actors_involved_target_id
relationship: none
group_type: group
admin_label: ''
label: 'Involved Parties'
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: true
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
entity_type: oc_case
entity_field: actors_involved
plugin_id: field
created:
id: created
table: oc_case_field_data
field: created
relationship: none
group_type: group
admin_label: ''
label: Created
exclude: false exclude: false
alter: alter:
alter_text: false alter_text: false
@ -380,11 +319,9 @@ display:
empty_zero: false empty_zero: false
hide_alter_empty: true hide_alter_empty: true
click_sort_column: value click_sort_column: value
type: timestamp type: string
settings: settings:
date_format: short link_to_entity: false
custom_date_format: ''
timezone: ''
group_column: value group_column: value
group_columns: { } group_columns: { }
group_rows: true group_rows: true
@ -395,21 +332,21 @@ display:
multi_type: separator multi_type: separator
separator: ', ' separator: ', '
field_api_classes: false field_api_classes: false
entity_type: oc_case entity_type: oc_actor
entity_field: created entity_field: middle_names
plugin_id: field plugin_id: field
nothing: last_name:
id: nothing id: last_name
table: views table: oc_actor_field_revision
field: nothing field: last_name
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
label: 'Go to' label: 'Last Name'
exclude: false exclude: false
alter: alter:
alter_text: true alter_text: false
text: "<ul><li><a href='/opencase/oc_case/{{ id }}'>Details/Files</a></li>\n<li><a href='/opencase/oc_case/{{ id}}/activity_list'>Activities</a>\n</li></ul>" text: ''
make_link: false make_link: false
path: '' path: ''
absolute: false absolute: false
@ -445,152 +382,347 @@ display:
empty: '' empty: ''
hide_empty: false hide_empty: false
empty_zero: false empty_zero: false
hide_alter_empty: false hide_alter_empty: true
plugin_id: custom click_sort_column: value
filters: null type: string
sorts: settings:
created: link_to_entity: false
id: created group_column: value
table: oc_case_field_data group_columns: { }
field: created group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: oc_actor
entity_field: last_name
plugin_id: field
field_asylum_status-revision_id:
id: field_asylum_status-revision_id
table: oc_actor_revision__field_asylum_status
field: field_asylum_status-revision_id
relationship: none relationship: none
group_type: group group_type: group
admin_label: '' admin_label: ''
order: DESC label: 'Asylum status'
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: list_default
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
plugin_id: field
field_marital_-revision_id:
id: field_marital_-revision_id
table: oc_actor_revision__field_marital_
field: field_marital_-revision_id
relationship: none
group_type: group
admin_label: ''
label: 'Marital status'
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: list_default
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
plugin_id: field
view_oc_actor:
id: view_oc_actor
table: oc_actor_field_revision
field: view_oc_actor
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: true
alter:
alter_text: true
text: 'View current record for this person &#9660;'
make_link: true
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: 'See "rewrite results" (had to do it that way because contains HTML).'
output_url_as_text: false
absolute: false
entity_type: oc_actor
plugin_id: entity_link
filters:
first_name:
id: first_name
table: oc_actor_field_revision
field: first_name
relationship: none
group_type: group
admin_label: ''
operator: starts
value: ''
group: 1
exposed: true
expose:
operator_id: first_name_op
label: 'First Name'
description: ''
use_operator: false
operator: first_name_op
operator_limit_selection: false
operator_list: { }
identifier: first_name
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'
placeholder: ''
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_actor
entity_field: first_name
plugin_id: string
last_name:
id: last_name
table: oc_actor_field_revision
field: last_name
relationship: none
group_type: group
admin_label: ''
operator: starts
value: ''
group: 1
exposed: true
expose:
operator_id: last_name_op
label: 'Last Name'
description: ''
use_operator: false
operator: last_name_op
operator_limit_selection: false
operator_list: { }
identifier: last_name
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'
placeholder: ''
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_actor
entity_field: last_name
plugin_id: string
sorts:
revision_created:
id: revision_created
table: oc_actor_revision
field: revision_created
relationship: none
group_type: min
admin_label: ''
order: ASC
exposed: false exposed: false
expose: expose:
label: '' label: ''
granularity: day granularity: second
entity_type: oc_case entity_type: oc_actor
entity_field: created entity_field: revision_created
plugin_id: date plugin_id: date
title: ''
header: { } header: { }
footer: { } 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: "<p>Either there are no cases involving this person, or you do not have access to them.</p> <p>To create a case, use the sidebar menu to the right</p>"
plugin_id: text_custom
relationships: { } relationships: { }
arguments: arguments: { }
actors_involved_target_id:
id: actors_involved_target_id
table: oc_case__actors_involved
field: actors_involved_target_id
relationship: none
group_type: group
admin_label: ''
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
items_per_page: 25
override: false
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
entity_type: oc_case
entity_field: actors_involved
plugin_id: numeric
display_extenders: { } display_extenders: { }
group_by: true
use_ajax: true use_ajax: true
title: 'Name, Asylum and Marital Status Report'
cache_metadata: cache_metadata:
max-age: -1 max-age: -1
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
- url - url
- url.query_args - user.permissions
- user.roles tags:
tags: { } - 'config:field.storage.oc_actor.field_asylum_status'
- 'config:field.storage.oc_actor.field_marital_'
page_1: page_1:
display_plugin: page display_plugin: page
id: page_1 id: page_1
display_title: Page display_title: Page
position: 1 position: 1
display_options: display_options:
display_extenders: { } path: opencase/reporting/name_and_status_changes
path: opencase/oc_actor/%actor_id/case_list display_extenders:
defaults: library_in_views_display_extender: { }
filters: false
filter_groups: false
filters: { }
filter_groups:
operator: AND
groups:
1: AND
cache_metadata: cache_metadata:
max-age: -1 max-age: -1
contexts: contexts:
- 'languages:language_content' - 'languages:language_content'
- 'languages:language_interface' - 'languages:language_interface'
- url - url
- url.query_args - user.permissions
- user.roles tags:
tags: { } - 'config:field.storage.oc_actor.field_asylum_status'
page_2: - 'config:field.storage.oc_actor.field_marital_'
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: null
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: "<h1>No cases found</h1>\n<p>You do not have access to any existing cases.</p>\n<p>To <b>add a new case</b>, first search for the person you want to create a case for, using the search bar at the top right of the screen. If they are not on the system yet, add them using the <b>Add People</b> tab.</p>\n"
plugin_id: text_custom
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url.query_args
- user.roles
tags: { }

View File

@ -6,3 +6,4 @@ package: 'OpenCase'
dependencies: dependencies:
- opencase_defaults - opencase_defaults
- opencase_reporting - opencase_reporting
- opencase_cases

View File

@ -0,0 +1,7 @@
opencase_default_reporting.report_on_status_changes:
title: 'Status Changes'
description: "Report on changes to people's name, asylum or marital status"
parent: opencase_reporting.reporting_menu
url: internal:/opencase/reporting/name_and_status_changes
weight: 2

View File

@ -17,6 +17,7 @@ function opencase_default_reporting_uninstall() {
'views.view.reporting_clients', 'views.view.reporting_clients',
'views.view.reporting_volunteers', 'views.view.reporting_volunteers',
'views.view.reporting_cases', 'views.view.reporting_cases',
'views.view.name_and_status_changes',
'facets.facet.asylum_status_export', 'facets.facet.asylum_status_export',
'facets.facet.disability', 'facets.facet.disability',
'facets.facet.nationalities_export', 'facets.facet.nationalities_export',

View File

@ -1,11 +0,0 @@
langcode: en
status: true
dependencies: { }
id: contact_opencase
label: 'Contact the OpenCase Developers'
recipients:
- naomi@aktivix.org
reply: ''
weight: 0
message: 'Thank you for your message. The OpenCase team will get back to you ASAP.'
redirect: ''

View File

@ -1,5 +0,0 @@
default_form: contact_opencase
flood:
limit: 5
interval: 3600
user_default_enabled: false

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- opencase_entities.oc_case_type.accommodation
id: oc_case.accommodation.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: accommodation
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- opencase_entities.oc_case_type.asylum_support
id: oc_case.asylum_support.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: asylum_support
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- opencase_entities.oc_case_type.employability
id: oc_case.employability.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: employability
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- opencase_entities.oc_case_type.health
id: oc_case.health.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: health
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- opencase_entities.oc_case_type.immigration
id: oc_case.immigration.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: immigration
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_case_type.volunteer_engagement
id: oc_case.volunteer_engagement.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: volunteer_engagement
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,24 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- opencase_entities.oc_case_type.welfare_rights
id: oc_case.welfare_rights.actors_involved
field_name: actors_involved
entity_type: oc_case
bundle: welfare_rights
label: 'Involved Parties'
description: 'People involved in this case. To add one, start typing their name.'
required: true
translatable: true
default_value: { }
default_value_callback: 'Drupal\opencase_entities\Entity\OCCase::defaultVal'
settings:
handler_settings:
target_bundles:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -1,11 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_activity_type.case_note
id: oc_activity.case_note.default
targetEntityType: oc_activity
bundle: case_note
mode: default
content: { }
hidden: { }

View File

@ -1,26 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.destitution_funds_provided.field_amount
- field.field.oc_activity.destitution_funds_provided.field_funds_for
- opencase_entities.oc_activity_type.destitution_funds_provided
id: oc_activity.destitution_funds_provided.default
targetEntityType: oc_activity
bundle: destitution_funds_provided
mode: default
content:
field_amount:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_funds_for:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,29 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.volunteer_training_session.field_date_attended
- field.field.oc_activity.volunteer_training_session.field_type_of_session
- opencase_entities.oc_activity_type.volunteer_training_session
module:
- datetime
id: oc_activity.volunteer_training_session.default
targetEntityType: oc_activity
bundle: volunteer_training_session
mode: default
content:
field_date_attended:
weight: 27
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_type_of_session:
weight: 26
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
hidden: { }

View File

@ -1,146 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.client.field_asylum_status
- field.field.oc_actor.client.field_confidentiality_form
- field.field.oc_actor.client.field_date_of_birth
- field.field.oc_actor.client.field_dependants
- field.field.oc_actor.client.field_disability
- field.field.oc_actor.client.field_ethnic_o
- field.field.oc_actor.client.field_gender_identified_with
- field.field.oc_actor.client.field_how_heard
- field.field.oc_actor.client.field_income
- field.field.oc_actor.client.field_languages_spoken
- field.field.oc_actor.client.field_marital_
- field.field.oc_actor.client.field_nationalities
- field.field.oc_actor.client.field_referred_by
- field.field.oc_actor.client.field_sex
- opencase_entities.oc_actor_type.client
module:
- datetime
- file
id: oc_actor.client.default
targetEntityType: oc_actor
bundle: client
mode: default
content:
field_asylum_status:
weight: 4
settings: { }
third_party_settings: { }
type: options_select
region: content
field_client_field_1:
weight: 26
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_confidentiality_form:
weight: 13
settings:
progress_indicator: throbber
third_party_settings: { }
type: file_generic
region: content
field_date_of_birth:
weight: 0
settings: { }
third_party_settings: { }
type: datetime_default
region: content
field_dependants:
weight: 10
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_disability:
weight: 8
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_ethnic_o:
weight: 5
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_gender_identified_with:
weight: 1
settings: { }
third_party_settings: { }
type: options_select
region: content
field_how_heard:
weight: 11
settings: { }
third_party_settings: { }
type: options_select
region: content
field_income:
weight: 9
settings: { }
third_party_settings: { }
type: options_select
region: content
field_languages_spoken:
weight: 7
settings: { }
third_party_settings: { }
type: options_select
region: content
field_marital_:
weight: 3
settings: { }
third_party_settings: { }
type: options_select
region: content
field_nationalities:
type: options_select
weight: 6
region: content
settings: { }
third_party_settings: { }
field_referred_by:
weight: 12
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_sex:
weight: 2
settings: { }
third_party_settings: { }
type: options_select
region: content
name:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
user_id:
type: entity_reference_autocomplete
weight: 5
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
region: content
third_party_settings: { }
hidden: { }

View File

@ -1,43 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.volunteer.field_languages_spoken
- field.field.oc_actor.volunteer.field_nationalities
- field.field.oc_actor.volunteer.field_osic_level
- field.field.oc_actor.volunteer.field_skills
- opencase_entities.oc_actor_type.volunteer
id: oc_actor.volunteer.default
targetEntityType: oc_actor
bundle: volunteer
mode: default
content:
field_languages_spoken:
weight: 1
settings: { }
third_party_settings: { }
type: options_select
region: content
field_nationalities:
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_osic_level:
weight: 2
settings: { }
third_party_settings: { }
type: options_select
region: content
field_skills:
type: string_textarea
weight: 3
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.accommodation.field_case_finance
- field.field.oc_case.accommodation.field_fee_calculation
- field.field.oc_case.accommodation.field_fee_or_equivalent_cost
- field.field.oc_case.accommodation.field_outcome
- field.field.oc_case.accommodation.field_type_of_acco
- opencase_entities.oc_case_type.accommodation
module:
- file
id: oc_case.accommodation.default
targetEntityType: oc_case
bundle: accommodation
mode: default
content:
field_case_finance:
weight: 1
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 3
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 2
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_acco:
weight: 0
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.asylum_support.field_case_finance
- field.field.oc_case.asylum_support.field_fee_calculation
- field.field.oc_case.asylum_support.field_fee_or_equivalent_cost
- field.field.oc_case.asylum_support.field_outcome
- field.field.oc_case.asylum_support.field_type_of_as
- opencase_entities.oc_case_type.asylum_support
module:
- file
id: oc_case.asylum_support.default
targetEntityType: oc_case
bundle: asylum_support
mode: default
content:
field_case_finance:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 29
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_as:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,57 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.employability.field_case_finance
- field.field.oc_case.employability.field_fee_calculation
- field.field.oc_case.employability.field_fee_or_equivalent_cost
- field.field.oc_case.employability.field_gave_list_of_agencies
- field.field.oc_case.employability.field_outcome
- field.field.oc_case.employability.field_type_of_employability_help
- opencase_entities.oc_case_type.employability
module:
- file
id: oc_case.employability.default
targetEntityType: oc_case
bundle: employability
mode: default
content:
field_case_finance:
weight: 28
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 29
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_gave_list_of_agencies:
weight: 27
settings:
display_label: true
third_party_settings: { }
type: boolean_checkbox
region: content
field_outcome:
weight: 31
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_employability_help:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.health.field_case_finance
- field.field.oc_case.health.field_fee_calculation
- field.field.oc_case.health.field_fee_or_equivalent_cost
- field.field.oc_case.health.field_outcome
- field.field.oc_case.health.field_type_health
- opencase_entities.oc_case_type.health
module:
- file
id: oc_case.health.default
targetEntityType: oc_case
bundle: health
mode: default
content:
field_case_finance:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 29
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_health:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,56 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.immigration.field_case_finance
- field.field.oc_case.immigration.field_fee_calculation
- field.field.oc_case.immigration.field_fee_or_equivalent_cost
- field.field.oc_case.immigration.field_level
- field.field.oc_case.immigration.field_outcome
- field.field.oc_case.immigration.field_type_of_applicat
- opencase_entities.oc_case_type.immigration
module:
- file
id: oc_case.immigration.default
targetEntityType: oc_case
bundle: immigration
mode: default
content:
field_case_finance:
weight: 28
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 29
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_level:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
field_outcome:
weight: 31
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_applicat:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,49 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.welfare_rights.field_case_finance
- field.field.oc_case.welfare_rights.field_fee_calculation
- field.field.oc_case.welfare_rights.field_fee_or_equivalent_cost
- field.field.oc_case.welfare_rights.field_outcome
- field.field.oc_case.welfare_rights.field_type_of_welfare_rights_iss
- opencase_entities.oc_case_type.welfare_rights
module:
- file
id: oc_case.welfare_rights.default
targetEntityType: oc_case
bundle: welfare_rights
mode: default
content:
field_case_finance:
weight: 27
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_calculation:
weight: 29
settings: { }
third_party_settings: { }
type: options_select
region: content
field_fee_or_equivalent_cost:
weight: 28
settings:
placeholder: ''
third_party_settings: { }
type: number
region: content
field_outcome:
weight: 30
settings: { }
third_party_settings: { }
type: options_select
region: content
field_type_of_welfare_rights_iss:
weight: 26
settings: { }
third_party_settings: { }
type: options_select
region: content
hidden: { }

View File

@ -1,13 +0,0 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_activity_type.case_note
module:
- user
id: oc_activity.case_note.default
targetEntityType: oc_activity
bundle: case_note
mode: default
content: { }
hidden: { }

View File

@ -1,34 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.destitution_funds_provided.field_amount
- field.field.oc_activity.destitution_funds_provided.field_funds_for
- opencase_entities.oc_activity_type.destitution_funds_provided
module:
- options
- user
id: oc_activity.destitution_funds_provided.default
targetEntityType: oc_activity
bundle: destitution_funds_provided
mode: default
content:
field_amount:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_funds_for:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,33 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_activity.volunteer_training_session.field_date_attended
- field.field.oc_activity.volunteer_training_session.field_type_of_session
- opencase_entities.oc_activity_type.volunteer_training_session
module:
- datetime
- user
id: oc_activity.volunteer_training_session.default
targetEntityType: oc_activity
bundle: volunteer_training_session
mode: default
content:
field_date_attended:
weight: 1
label: above
settings:
format_type: medium
timezone_override: ''
third_party_settings: { }
type: datetime_default
region: content
field_type_of_session:
weight: 0
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
hidden: { }

View File

@ -1,144 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.client.field_asylum_status
- field.field.oc_actor.client.field_confidentiality_form
- field.field.oc_actor.client.field_date_of_birth
- field.field.oc_actor.client.field_dependants
- field.field.oc_actor.client.field_disability
- field.field.oc_actor.client.field_ethnic_o
- field.field.oc_actor.client.field_gender_identified_with
- field.field.oc_actor.client.field_how_heard
- field.field.oc_actor.client.field_income
- field.field.oc_actor.client.field_languages_spoken
- field.field.oc_actor.client.field_marital_
- field.field.oc_actor.client.field_nationalities
- field.field.oc_actor.client.field_referred_by
- opencase_entities.oc_actor_type.client
module:
- datetime
- file
- options
- user
id: oc_actor.client.default
targetEntityType: oc_actor
bundle: client
mode: default
content:
field_asylum_status:
weight: 6
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_client_field_1:
weight: 1
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_confidentiality_form:
weight: 15
label: above
settings:
use_description_as_link_text: true
third_party_settings: { }
type: file_default
region: content
field_date_of_birth:
weight: 3
label: above
settings:
timezone_override: ''
format_type: short
third_party_settings: { }
type: datetime_default
region: content
field_dependants:
weight: 12
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_disability:
weight: 10
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_ethnic_o:
weight: 7
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_gender_identified_with:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_how_heard:
weight: 13
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_income:
weight: 11
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_languages_spoken:
weight: 9
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_marital_:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_nationalities:
weight: 8
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_referred_by:
weight: 14
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
name:
label: above
type: string
weight: -4
region: content
settings:
link_to_entity: false
third_party_settings: { }
hidden: { }

View File

@ -1,85 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_actor.volunteer.field_languages_spoken
- field.field.oc_actor.volunteer.field_nationalities
- field.field.oc_actor.volunteer.field_osic_level
- field.field.oc_actor.volunteer.field_skills
- opencase_entities.oc_actor_type.volunteer
module:
- options
- user
id: oc_actor.volunteer.default
targetEntityType: oc_actor
bundle: volunteer
mode: default
content:
field_languages_spoken:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_nationalities:
weight: 3
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_osic_level:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_sdfdsfds:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: text_default
region: content
field_skills:
type: basic_string
weight: 6
region: content
label: above
settings: { }
third_party_settings: { }
name:
label: above
type: string
weight: -4
region: content
settings:
link_to_entity: false
third_party_settings: { }
phone:
label: above
type: string
weight: 0
region: content
settings:
link_to_entity: false
third_party_settings: { }
phone2:
label: above
type: string
weight: 1
region: content
settings:
link_to_entity: false
third_party_settings: { }
postal_address:
label: above
type: basic_string
weight: 2
region: content
settings: { }
third_party_settings: { }
hidden: { }

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.accommodation.field_case_finance
- field.field.oc_case.accommodation.field_fee_calculation
- field.field.oc_case.accommodation.field_fee_or_equivalent_cost
- field.field.oc_case.accommodation.field_outcome
- field.field.oc_case.accommodation.field_type_of_acco
- opencase_entities.oc_case_type.accommodation
module:
- file
- options
- user
id: oc_case.accommodation.default
targetEntityType: oc_case
bundle: accommodation
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_acco:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.asylum_support.field_case_finance
- field.field.oc_case.asylum_support.field_fee_calculation
- field.field.oc_case.asylum_support.field_fee_or_equivalent_cost
- field.field.oc_case.asylum_support.field_outcome
- field.field.oc_case.asylum_support.field_type_of_as
- opencase_entities.oc_case_type.asylum_support
module:
- file
- options
- user
id: oc_case.asylum_support.default
targetEntityType: oc_case
bundle: asylum_support
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_as:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,70 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.employability.field_case_finance
- field.field.oc_case.employability.field_fee_calculation
- field.field.oc_case.employability.field_fee_or_equivalent_cost
- field.field.oc_case.employability.field_gave_list_of_agencies
- field.field.oc_case.employability.field_outcome
- field.field.oc_case.employability.field_type_of_employability_help
- opencase_entities.oc_case_type.employability
module:
- file
- options
- user
id: oc_case.employability.default
targetEntityType: oc_case
bundle: employability
mode: default
content:
field_case_finance:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 3
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_gave_list_of_agencies:
weight: 1
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
type: boolean
region: content
field_outcome:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_employability_help:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.health.field_case_finance
- field.field.oc_case.health.field_fee_calculation
- field.field.oc_case.health.field_fee_or_equivalent_cost
- field.field.oc_case.health.field_outcome
- field.field.oc_case.health.field_type_health
- opencase_entities.oc_case_type.health
module:
- file
- options
- user
id: oc_case.health.default
targetEntityType: oc_case
bundle: health
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_health:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,67 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.immigration.field_case_finance
- field.field.oc_case.immigration.field_fee_calculation
- field.field.oc_case.immigration.field_fee_or_equivalent_cost
- field.field.oc_case.immigration.field_level
- field.field.oc_case.immigration.field_outcome
- field.field.oc_case.immigration.field_type_of_applicat
- opencase_entities.oc_case_type.immigration
module:
- file
- options
- user
id: oc_case.immigration.default
targetEntityType: oc_case
bundle: immigration
mode: default
content:
field_case_finance:
weight: 2
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 3
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_level:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_outcome:
weight: 5
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_applicat:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,59 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.field.oc_case.welfare_rights.field_case_finance
- field.field.oc_case.welfare_rights.field_fee_calculation
- field.field.oc_case.welfare_rights.field_fee_or_equivalent_cost
- field.field.oc_case.welfare_rights.field_outcome
- field.field.oc_case.welfare_rights.field_type_of_welfare_rights_iss
- opencase_entities.oc_case_type.welfare_rights
module:
- file
- options
- user
id: oc_case.welfare_rights.default
targetEntityType: oc_case
bundle: welfare_rights
mode: default
content:
field_case_finance:
weight: 1
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_calculation:
weight: 3
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_fee_or_equivalent_cost:
weight: 2
label: above
settings:
thousand_separator: ''
decimal_separator: .
scale: 2
prefix_suffix: true
third_party_settings: { }
type: number_decimal
region: content
field_outcome:
weight: 4
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
field_type_of_welfare_rights_iss:
weight: 0
label: above
settings: { }
third_party_settings: { }
type: list_default
region: content
hidden: { }

View File

@ -1,22 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_amount
- opencase_entities.oc_activity_type.destitution_funds_provided
id: oc_activity.destitution_funds_provided.field_amount
field_name: field_amount
entity_type: oc_activity
bundle: destitution_funds_provided
label: Amount
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: £
suffix: ''
field_type: decimal

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_funds_for
- opencase_entities.oc_activity_type.destitution_funds_provided
module:
- options
id: oc_activity.destitution_funds_provided.field_funds_for
field_name: field_funds_for
entity_type: oc_activity
bundle: destitution_funds_provided
label: For
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_date_attended
- opencase_entities.oc_activity_type.volunteer_training_session
module:
- datetime
id: oc_activity.volunteer_training_session.field_date_attended
field_name: field_date_attended
entity_type: oc_activity
bundle: volunteer_training_session
label: 'Date attended'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_activity.field_type_of_session
- opencase_entities.oc_activity_type.volunteer_training_session
id: oc_activity.volunteer_training_session.field_type_of_session
field_name: field_type_of_session
entity_type: oc_activity
bundle: volunteer_training_session
label: 'Type of session'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_asylum_status
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_asylum_status
field_name: field_asylum_status
entity_type: oc_actor
bundle: client
label: 'Asylum status'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,26 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_confidentiality_form
- opencase_entities.oc_actor_type.client
module:
- file
id: oc_actor.client.field_confidentiality_form
field_name: field_confidentiality_form
entity_type: oc_actor
bundle: client
label: 'Confidentiality Form'
description: 'Data protection/confidentiality/complaints form signed and uploaded'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: pdf
max_filesize: ''
description_field: false
handler: 'default:file'
handler_settings: { }
field_type: file

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_date_of_birth
- opencase_entities.oc_actor_type.client
module:
- datetime
id: oc_actor.client.field_date_of_birth
field_name: field_date_of_birth
entity_type: oc_actor
bundle: client
label: 'Date of birth'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_dependants
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_dependants
field_name: field_dependants
entity_type: oc_actor
bundle: client
label: Dependants
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_disability
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_disability
field_name: field_disability
entity_type: oc_actor
bundle: client
label: Disability
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_ethnic_o
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_ethnic_o
field_name: field_ethnic_o
entity_type: oc_actor
bundle: client
label: 'Ethnic origin'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_gender_identified_with
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_gender_identified_with
field_name: field_gender_identified_with
entity_type: oc_actor
bundle: client
label: 'Gender identified with'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_how_heard
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_how_heard
field_name: field_how_heard
entity_type: oc_actor
bundle: client
label: 'How did you hear about the service?'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_income
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_income
field_name: field_income
entity_type: oc_actor
bundle: client
label: Income
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_languages_spoken
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_languages_spoken
field_name: field_languages_spoken
entity_type: oc_actor
bundle: client
label: 'Languages spoken'
description: 'Hold down <b>Ctrl</b> (or the Mac equivalent) while clicking, and you can select more than one.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_marital_
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_marital_
field_name: field_marital_
entity_type: oc_actor
bundle: client
label: 'Marital status'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_nationalities
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_nationalities
field_name: field_nationalities
entity_type: oc_actor
bundle: client
label: Nationality
description: 'To select multiple nationalities, hold down <b>Ctrl</b> (or the Mac equivalent) while clicking.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,18 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_referred_by
- opencase_entities.oc_actor_type.client
id: oc_actor.client.field_referred_by
field_name: field_referred_by
entity_type: oc_actor
bundle: client
label: 'Referred by'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_sex
- opencase_entities.oc_actor_type.client
module:
- options
id: oc_actor.client.field_sex
field_name: field_sex
entity_type: oc_actor
bundle: client
label: Sex
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_languages_spoken
- opencase_entities.oc_actor_type.volunteer
module:
- options
id: oc_actor.volunteer.field_languages_spoken
field_name: field_languages_spoken
entity_type: oc_actor
bundle: volunteer
label: 'Languages spoken'
description: 'Hold down <b>Ctrl</b> (or the Mac equivalent) while clicking, and you can select more than one.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_nationalities
- opencase_entities.oc_actor_type.volunteer
module:
- options
id: oc_actor.volunteer.field_nationalities
field_name: field_nationalities
entity_type: oc_actor
bundle: volunteer
label: Nationality
description: 'To select multiple nationalities, hold down <b>Ctrl</b> (or the Mac equivalent) while clicking.'
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

View File

@ -1,20 +0,0 @@
langcode: en
status: true
dependencies:
config:
- field.storage.oc_actor.field_osic_level
- opencase_entities.oc_actor_type.volunteer
module:
- options
id: oc_actor.volunteer.field_osic_level
field_name: field_osic_level
entity_type: oc_actor
bundle: volunteer
label: 'OSIC level'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: list_string

Some files were not shown because too many files have changed in this diff Show More