Compare commits

..

36 Commits
0.2.1 ... 0.2.3

Author SHA1 Message Date
7bf0f67a06 Added a bunch of config, apparently wasn't in git 2018-07-05 17:57:10 +02:00
8dc840a53d Made ALL of opencase_defaults config optional.
The idea is you can install it, and use as a basis to configure your own things and then if you uninstall it it shouldn't lose your stuff.
2018-07-05 17:11:32 +02:00
288751274b Moved more contact form config. 2018-07-05 16:16:42 +02:00
aa130aeede moved more contact form config to main module 2018-07-05 16:15:18 +02:00
f373ac419e Added menu links for "add actors" menu to defaults
Because it has hard coded bundles.
Also remove some config files that were not needed any more.
2018-07-05 16:09:57 +02:00
b1d5c4eddf Moved contact form to opencase module
Using optional config.
2018-07-05 16:07:34 +02:00
6c6c6d5c92 Added menu link config to opencase module.
For opencase-admin and openc (OpenCase Global) menus.
2018-07-05 15:56:19 +02:00
73e7ff2656 Uninstall hook in opencase module
Also moved more config files about.
2018-07-05 14:05:50 +02:00
8dd56d5b51 OpenCase Search module - uninstall hook working. 2018-07-05 13:55:45 +02:00
d229e02f67 moved search config into its own module. 2018-07-05 13:22:45 +02:00
7ef0628bd6 Deleted features, moved everything into submodules. 2018-07-05 12:29:09 +02:00
5863fb7faa moved some files around
trying to organise what was features into submodules
2018-07-05 12:24:14 +02:00
36939720fe User roles as well as bundles are now in module
opencase_defaults... also changed its title
2018-06-29 16:30:05 +02:00
7e04836ff1 Moved bundle configs from feature into module 2018-06-29 16:23:12 +02:00
b28c7a3f5d removed opencase_search module
it wasn't doing anything - the feature is what does stuff
2018-06-29 15:52:39 +02:00
5688f89857 removed dependency of opencase on opencase-search 2018-06-29 15:38:43 +02:00
cf0078d1be removed date format configs
easier than working out how to override them
2018-06-29 15:12:39 +02:00
f4c3512501 straighforward bugfix 2018-06-29 14:51:12 +02:00
4c7cd2067b Made new module, "opencase_defaults".Added a role 2018-06-29 13:04:35 +02:00
a0ab7282b8 Added bundle labels to cases & activities views
This involved creating access control handlers for cases and activities (also did one for actors for good measure) and regenerating the opencase_features_opencase_ui feature so as to add the "type" field to the views
2018-06-18 18:15:00 +02:00
12afa00df8 Added permission for configuring opencase bundles 2018-06-18 17:11:45 +02:00
1878d1e2fd fixed bugs in entity type relations/widgets 2018-06-18 16:29:24 +02:00
050bee1a9b added /vender to .gitignore 2018-06-18 15:23:04 +02:00
d46142ee2b finished entity type relations 2018-06-13 17:51:14 +02:00
fd1a0d5156 Allowed activity types are a property of case type 2018-06-13 16:29:21 +02:00
e601fde1ef Refactored case-type - client-type relationship
and corresponding part of widget
2018-06-13 13:31:04 +02:00
74b6f90c94 Entity relations working in all directions 2018-06-12 18:12:30 +02:00
e10096c1ca Relations between case type and actor types done 2018-06-12 17:16:40 +02:00
8941cdfb49 refactoring 2018-06-12 16:11:28 +02:00
9715401dfc Factored actor type widget stuff into a class 2018-06-12 15:38:30 +02:00
7448048f2d Changed default value of Involved Parties to array 2018-06-12 14:11:35 +02:00
48e5080a9c Relation between case types and actor types
Allowed actor types for a case are saved in a base field override for the "involved parties" field.
2018-06-12 14:02:09 +02:00
cba43a04e5 Added config for relatin case types to actor types 2018-05-28 16:21:56 +02:00
ce1d3ca38b CSS'd out the new revision checkbox
I ultimately want to keep it, but will reinstate when I find a way of putting it somewhere sensible on the page
2018-05-28 15:24:15 +02:00
8294a9647f Added access control to activities view
Just auth user for now
2018-05-28 15:14:18 +02:00
c261552cc1 Added private files setting to case entity 2018-05-28 15:11:06 +02:00
194 changed files with 935 additions and 202 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.swp
vendor

View File

@ -5,13 +5,12 @@ dependencies:
- system.menu.opencase-admin
module:
- system
- user
theme:
- bartik
id: opencase
theme: bartik
region: sidebar_first
weight: -6
weight: -8
provider: null
plugin: 'system_menu_block:opencase-admin'
settings:
@ -21,11 +20,4 @@ settings:
label_display: visible
level: 1
depth: 0
visibility:
user_role:
id: user_role
roles:
administrator: administrator
negate: false
context_mapping:
user: '@user.current_user_context:current_user'
visibility: { }

View File

@ -5,15 +5,15 @@ dependencies:
- opencase
theme:
- bartik
id: opencasecontextualmenu_2
id: opencasecontextualmenu
theme: bartik
region: sidebar_second
weight: 0
weight: -8
provider: null
plugin: opencase_contextual_menu
settings:
id: opencase_contextual_menu
label: 'OpenCase Contextual Menu'
provider: opencase
label_display: '0'
label_display: visible
visibility: { }

View File

@ -1,8 +1,11 @@
langcode: en
status: true
dependencies:
config:
- user.role.authenticated
module:
- opencase_entities
- user
id: activities
label: Activities
module: views
@ -19,8 +22,10 @@ display:
position: 0
display_options:
access:
type: none
options: { }
type: role
options:
role:
authenticated: authenticated
cache:
type: tag
options: { }
@ -130,6 +135,71 @@ display:
entity_type: null
entity_field: name
plugin_id: field
type:
id: type
table: oc_activity_field_data
field: type
relationship: none
group_type: group
admin_label: ''
label: Type
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: false
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: oc_activity
entity_field: type
plugin_id: field
description:
id: description
table: oc_activity_field_data
@ -367,6 +437,7 @@ display:
- 'languages:language_interface'
- url
- url.query_args
- user.roles
tags: { }
page_1:
display_plugin: page
@ -383,4 +454,5 @@ display:
- 'languages:language_interface'
- url
- url.query_args
- user.roles
tags: { }

View File

@ -188,6 +188,71 @@ display:
entity_type: null
entity_field: name
plugin_id: field
type:
id: type
table: oc_case_field_data
field: type
relationship: none
group_type: group
admin_label: ''
label: Type
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: entity_reference_label
settings:
link: false
group_column: target_id
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
entity_type: oc_case
entity_field: type
plugin_id: field
actors_involved_target_id:
id: actors_involved_target_id
table: oc_case__actors_involved

View File

@ -8,3 +8,8 @@
#edit-revision-log-message-wrapper{
display: none;
}
/* Same for revision checkbox. */
.js-form-item.form-item.js-form-type-checkbox.form-type-checkbox.js-form-item-new-revision.form-item-new-revision {
display: none;
}

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: accommodation
label: Accommodation

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: asylum_support
label: 'Asylum support'

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: employability
label: Employability

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: health
label: Health

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: immigration
label: Immigration

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: volunteer_engagement
label: 'Volunteer Engagement'

View File

@ -1,5 +0,0 @@
langcode: en
status: true
dependencies: { }
id: welfare_rights
label: 'Welfare Rights'

View File

@ -1,2 +0,0 @@
bundle: opencase_features
required: true

View File

@ -1,11 +0,0 @@
name: 'Ciac Bundles'
type: module
core: 8.x
dependencies:
- datetime
- field
- file
- opencase_entities
- options
- user
package: 'OpenCase Features'

View File

@ -1,2 +0,0 @@
bundle: opencase_features
required: true

View File

@ -1,11 +0,0 @@
name: 'Opencase Search'
type: module
core: 8.x
dependencies:
- block
- opencase_entities
- search_api
- search_api_db
- user
- views
package: 'OpenCase Features'

View File

@ -1,7 +0,0 @@
langcode: en
status: true
dependencies: { }
id: long
label: 'Default long date'
locked: false
pattern: 'D j M Y - H:i'

View File

@ -1,7 +0,0 @@
langcode: en
status: true
dependencies: { }
id: medium
label: 'Default medium date'
locked: false
pattern: 'd/m/Y - H:i'

View File

@ -1,7 +0,0 @@
langcode: en
status: true
dependencies: { }
id: short
label: 'Default short date'
locked: false
pattern: d/m/Y

View File

@ -1,2 +0,0 @@
bundle: opencase_features
required: true

View File

@ -1,12 +0,0 @@
name: 'OpenCase UI'
type: module
core: 8.x
dependencies:
- block
- contact
- opencase
- opencase_entities
- system
- user
- views
package: 'OpenCase Features'

View File

@ -1,4 +0,0 @@
name: 'Opencase User Roles'
type: module
core: 8.x
package: 'OpenCase Features'

View File

@ -0,0 +1,14 @@
{
"name": "drupal/opencase_defaults",
"type": "drupal-module",
"description": "OpenCase Default Configuration",
"keywords": ["Drupal"],
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/opencase_defaults",
"minimum-stability": "dev",
"support": {
"issues": "https://www.drupal.org/project/issues/opencase_defaults",
"source": "http://cgit.drupalcode.org/opencase_defaults"
},
"require": { }
}

View File

@ -16,9 +16,9 @@ provider: null
plugin: 'system_menu_block:opencase-add-actors'
settings:
id: 'system_menu_block:opencase-add-actors'
label: 'OpenCase Add Actors'
label: 'Add Records'
provider: system
label_display: '0'
label_display: visible
level: 1
depth: 0
visibility:

View File

@ -0,0 +1,24 @@
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

@ -0,0 +1,24 @@
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

@ -0,0 +1,24 @@
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

@ -0,0 +1,24 @@
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

@ -0,0 +1,24 @@
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

@ -0,0 +1,24 @@
langcode: en
status: true
dependencies:
config:
- opencase_entities.oc_actor_type.client
- opencase_entities.oc_actor_type.volunteer
- 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:
client: client
volunteer: volunteer
handler: default
field_type: entity_reference

View File

@ -0,0 +1,24 @@
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

@ -15,7 +15,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_funds_for:
weight: 27

View File

@ -32,7 +32,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_outcome:
weight: 26

View File

@ -32,7 +32,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_outcome:
weight: 30

View File

@ -33,7 +33,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_gave_list_of_agencies:
weight: 27

View File

@ -32,7 +32,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_outcome:
weight: 30

View File

@ -33,7 +33,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_level:
weight: 26

View File

@ -32,7 +32,7 @@ content:
settings:
placeholder: ''
third_party_settings: { }
type: number
type: number_decimal
region: content
field_outcome:
weight: 30

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