diff --git a/config/admin_toolbar.settings.yml b/config/admin_toolbar.settings.yml new file mode 100644 index 0000000..5965a31 --- /dev/null +++ b/config/admin_toolbar.settings.yml @@ -0,0 +1 @@ +menu_depth: 4 diff --git a/config/core.entity_form_display.oc_case_provision.trainer.default.yml b/config/core.entity_form_display.oc_case_provision.trainer.default.yml new file mode 100644 index 0000000..a8bee7e --- /dev/null +++ b/config/core.entity_form_display.oc_case_provision.trainer.default.yml @@ -0,0 +1,49 @@ +uuid: 70d5503e-2a95-4bd3-8770-6e3ac8ef74a5 +langcode: en +status: true +dependencies: + config: + - field.field.oc_case_provision.trainer.field_rate + - field.field.oc_case_provision.trainer.field_rate_type + - opencase_cases.oc_case_provision_type.trainer +id: oc_case_provision.trainer.default +targetEntityType: oc_case_provision +bundle: trainer +mode: default +content: + field_rate: + weight: 2 + settings: + placeholder: '' + third_party_settings: { } + type: number + region: content + field_rate_type: + weight: 3 + settings: { } + third_party_settings: { } + type: options_select + region: content + oc_case_provider_role: + type: entity_reference_autocomplete + weight: 1 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + oc_provider: + type: entity_reference_autocomplete + weight: 0 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + name: true + user_id: true diff --git a/config/core.entity_view_display.oc_case.training.default.yml b/config/core.entity_view_display.oc_case.training.default.yml index 619a432..194fd14 100644 --- a/config/core.entity_view_display.oc_case.training.default.yml +++ b/config/core.entity_view_display.oc_case.training.default.yml @@ -39,7 +39,7 @@ content: link: true third_party_settings: { } debriefs: - weight: 10 + weight: 11 region: content settings: { } third_party_settings: { } @@ -49,7 +49,7 @@ content: settings: { } third_party_settings: { } evaluations: - weight: 11 + weight: 12 region: content settings: { } third_party_settings: { } @@ -150,10 +150,15 @@ content: weight: 9 third_party_settings: { } type: file_default + trainers: + weight: 10 + region: content + settings: { } + third_party_settings: { } user_id: label: above type: author - weight: 12 + weight: 13 region: content settings: { } third_party_settings: { } diff --git a/config/core.entity_view_display.oc_case_provision.trainer.default.yml b/config/core.entity_view_display.oc_case_provision.trainer.default.yml new file mode 100644 index 0000000..40a0c5e --- /dev/null +++ b/config/core.entity_view_display.oc_case_provision.trainer.default.yml @@ -0,0 +1,53 @@ +uuid: ac137f06-3a96-456e-bb01-d3265df79e38 +langcode: en +status: true +dependencies: + config: + - field.field.oc_case_provision.trainer.field_rate + - field.field.oc_case_provision.trainer.field_rate_type + - opencase_cases.oc_case_provision_type.trainer + module: + - options + - user +id: oc_case_provision.trainer.default +targetEntityType: oc_case_provision +bundle: trainer +mode: default +content: + field_rate: + weight: 1 + label: above + settings: + thousand_separator: '' + decimal_separator: . + scale: 2 + prefix_suffix: true + third_party_settings: { } + type: number_decimal + region: content + field_rate_type: + weight: 2 + label: above + settings: { } + third_party_settings: { } + type: list_default + region: content + name: + label: above + type: string + weight: -4 + region: content + settings: + link_to_entity: false + third_party_settings: { } + user_id: + label: hidden + type: author + weight: 0 + region: content + settings: { } + third_party_settings: { } +hidden: + oc_case_provider_role: true + oc_provider: true + search_api_excerpt: true diff --git a/config/entity_extra_field.extra_field.oc_case.training.trainers.yml b/config/entity_extra_field.extra_field.oc_case.training.trainers.yml new file mode 100644 index 0000000..1e701c6 --- /dev/null +++ b/config/entity_extra_field.extra_field.oc_case.training.trainers.yml @@ -0,0 +1,47 @@ +uuid: ae8f2f7c-3545-46e4-9176-0c48725c38da +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case_provision.field_rate + - field.storage.oc_case_provision.field_rate_type + - user.role.authenticated + module: + - opencase_cases + - options + - user +id: oc_case.training.trainers +label: Trainers +display_label: true +name: trainers +description: '' +base_entity_type_id: oc_case +base_bundle_type_id: training +field_type_id: views +field_type_config: + view_name: case_provisions + display: block_1 + arguments: '' +field_type_condition: + 'entity_bundle:oc_case': + id: 'entity_bundle:oc_case' + bundles: + training: training + context_mapping: + oc_case: entity_extra_field.target_entity + negate: false + route: + id: route + routes: '' + negate: false + request_path: + id: request_path + pages: '' + negate: false + current_theme: + id: current_theme + theme: '' + negate: 0 +field_conditions_all_pass: false +display: + type: view diff --git a/config/feeds.feed_type.csv_umbrella_client.yml b/config/feeds.feed_type.csv_umbrella_client.yml index 185a2bf..27c0a12 100644 --- a/config/feeds.feed_type.csv_umbrella_client.yml +++ b/config/feeds.feed_type.csv_umbrella_client.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.field.oc_organisation.umbrella_client.field_type_of_umbrella_client - opencase_entities.oc_organisation_type.umbrella_client module: - opencase_entities @@ -10,7 +11,7 @@ id: csv_umbrella_client label: 'CSV Umbrella Clients' description: '' help: '' -import_period: 3600 +import_period: -1 fetcher: upload fetcher_configuration: allowed_extensions: 'txt csv tsv xml opml' @@ -23,7 +24,7 @@ parser_configuration: processor: 'entity:oc_organisation' processor_configuration: langcode: en - update_existing: 1 + update_existing: 0 update_non_existent: _delete expire: -1 owner_feed_author: true @@ -32,5 +33,36 @@ processor_configuration: skip_hash_check: false values: type: umbrella_client -custom_sources: { } -mappings: { } +custom_sources: + name: + label: name + value: name + machine_name: name + field_type_of_umbrella_client: + label: field_type_of_umbrella_client + value: field_type_of_umbrella_client + machine_name: field_type_of_umbrella_client + contact_name: + label: contact_name + value: contact_name + machine_name: contact_name +mappings: + - + target: name + map: + value: name + unique: + value: '1' + settings: { } + - + target: field_type_of_umbrella_client + map: + value: field_type_of_umbrella_client + settings: + language: null + - + target: contact_name + map: + value: contact_name + unique: { } + settings: { } diff --git a/config/field.field.oc_case_provision.trainer.field_rate.yml b/config/field.field.oc_case_provision.trainer.field_rate.yml new file mode 100644 index 0000000..fd5842b --- /dev/null +++ b/config/field.field.oc_case_provision.trainer.field_rate.yml @@ -0,0 +1,23 @@ +uuid: 6eabba7d-8c24-400e-9e90-588a1732b89a +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case_provision.field_rate + - opencase_cases.oc_case_provision_type.trainer +id: oc_case_provision.trainer.field_rate +field_name: field_rate +entity_type: oc_case_provision +bundle: trainer +label: Rate +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + min: null + max: null + prefix: £ + suffix: '' +field_type: decimal diff --git a/config/field.field.oc_case_provision.trainer.field_rate_type.yml b/config/field.field.oc_case_provision.trainer.field_rate_type.yml new file mode 100644 index 0000000..7bee225 --- /dev/null +++ b/config/field.field.oc_case_provision.trainer.field_rate_type.yml @@ -0,0 +1,21 @@ +uuid: 5efe46e6-d1eb-45f6-8fb0-6647fd7a9bcb +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case_provision.field_rate_type + - opencase_cases.oc_case_provision_type.trainer + module: + - options +id: oc_case_provision.trainer.field_rate_type +field_name: field_rate_type +entity_type: oc_case_provision +bundle: trainer +label: 'Rate type' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/config/field.storage.oc_case_provision.field_rate.yml b/config/field.storage.oc_case_provision.field_rate.yml new file mode 100644 index 0000000..5673b00 --- /dev/null +++ b/config/field.storage.oc_case_provision.field_rate.yml @@ -0,0 +1,24 @@ +uuid: 18776adb-cf4b-4d4a-9a97-08b4921c2a12 +langcode: en +status: true +dependencies: + module: + - field_permissions + - opencase_cases +third_party_settings: + field_permissions: + permission_type: public +id: oc_case_provision.field_rate +field_name: field_rate +entity_type: oc_case_provision +type: decimal +settings: + precision: 10 + scale: 2 +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/field.storage.oc_case_provision.field_rate_type.yml b/config/field.storage.oc_case_provision.field_rate_type.yml new file mode 100644 index 0000000..f56ecb0 --- /dev/null +++ b/config/field.storage.oc_case_provision.field_rate_type.yml @@ -0,0 +1,30 @@ +uuid: d073da7b-97d5-493d-b8ff-3926f9b0284a +langcode: en +status: true +dependencies: + module: + - opencase_cases + - options +id: oc_case_provision.field_rate_type +field_name: field_rate_type +entity_type: oc_case_provision +type: list_string +settings: + allowed_values: + - + value: none + label: None + - + value: standard + label: Standard + - + value: custom + label: Custom + allowed_values_function: '' +module: options +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/opencase_cases.oc_case_provision_type.trainer.yml b/config/opencase_cases.oc_case_provision_type.trainer.yml new file mode 100644 index 0000000..2972451 --- /dev/null +++ b/config/opencase_cases.oc_case_provision_type.trainer.yml @@ -0,0 +1,6 @@ +uuid: aef80be5-4366-40ee-a878-ac3e40678799 +langcode: en +status: true +dependencies: { } +id: trainer +label: Trainer diff --git a/config/search_api.index.opencase_actors.yml b/config/search_api.index.opencase_actors.yml index 4402356..4cff7ca 100644 --- a/config/search_api.index.opencase_actors.yml +++ b/config/search_api.index.opencase_actors.yml @@ -82,4 +82,5 @@ tracker_settings: options: index_directly: true cron_limit: 50 + track_changes_in_references: true server: opencase_server diff --git a/config/search_api.settings.yml b/config/search_api.settings.yml index 6a3ea2e..a625fdf 100644 --- a/config/search_api.settings.yml +++ b/config/search_api.settings.yml @@ -4,3 +4,25 @@ default_tracker: default tracking_page_size: 100 _core: default_config_hash: n7m4vlCPoB3_1C7l13LKYsifmLur4QR71mOD7S_5hSE +boost_factors: + - !!float 0 + - 0.1 + - 0.2 + - 0.3 + - 0.5 + - 0.6 + - 0.7 + - 0.8 + - 0.9 + - !!float 1 + - 1.1 + - 1.2 + - 1.3 + - 1.4 + - 1.5 + - !!float 2 + - !!float 3 + - !!float 5 + - !!float 8 + - !!float 13 + - !!float 21 diff --git a/config/taxonomy.vocabulary.oc_case_provider_role.yml b/config/taxonomy.vocabulary.oc_case_provider_role.yml new file mode 100644 index 0000000..a821317 --- /dev/null +++ b/config/taxonomy.vocabulary.oc_case_provider_role.yml @@ -0,0 +1,8 @@ +uuid: 4bde2bbb-7fa3-4647-893e-e8bf691b8824 +langcode: en +status: true +dependencies: { } +name: 'Case Provider Roles' +vid: oc_case_provider_role +description: '' +weight: 0 diff --git a/config/views.view.case_provisions.yml b/config/views.view.case_provisions.yml new file mode 100644 index 0000000..0f48fa5 --- /dev/null +++ b/config/views.view.case_provisions.yml @@ -0,0 +1,521 @@ +uuid: db25a718-da8d-49cc-8790-618f30580bed +langcode: en +status: true +dependencies: + config: + - field.storage.oc_case_provision.field_rate + - field.storage.oc_case_provision.field_rate_type + - user.role.authenticated + module: + - opencase_cases + - options + - user +id: case_provisions +label: 'Case Provisions' +module: views +description: '' +tag: '' +base_table: oc_case_provision_field_data +base_field: id +display: + default: + display_plugin: default + id: default + display_title: Master + position: 0 + display_options: + access: + type: role + options: + role: + authenticated: authenticated + 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: { } + row_class: '' + default_row_class: true + override: true + sticky: false + caption: '' + summary: '' + description: '' + columns: + name: name + info: + name: + 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: + name: + id: name + table: oc_case_provision_field_data + field: name + relationship: none + group_type: group + admin_label: '' + label: '' + exclude: true + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: string + settings: + link_to_entity: 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: null + entity_field: name + plugin_id: field + oc_provider: + id: oc_provider + table: oc_case_provision_field_data + field: oc_provider + relationship: none + group_type: group + admin_label: '' + label: Trainer + 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_provision + entity_field: oc_provider + plugin_id: field + field_rate: + id: field_rate + table: oc_case_provision__field_rate + field: field_rate + relationship: none + group_type: group + admin_label: '' + label: Rate + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_decimal + settings: + thousand_separator: ',' + prefix_suffix: true + decimal_separator: . + scale: 2 + 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_rate_type: + id: field_rate_type + table: oc_case_provision__field_rate_type + field: field_rate_type + relationship: none + group_type: group + admin_label: '' + label: 'Rate 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: 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 + oc_case_provider_role: + id: oc_case_provider_role + table: oc_case_provision_field_data + field: oc_case_provider_role + relationship: none + group_type: group + admin_label: '' + label: Role + 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_provision + entity_field: oc_case_provider_role + plugin_id: field + filters: + status: + value: '1' + table: oc_case_provision_field_data + field: status + plugin_id: boolean + entity_type: oc_case_provision + entity_field: status + id: status + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + group: 1 + sorts: { } + header: { } + footer: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: true + content: 'Add trainer

' + plugin_id: text_custom + empty: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + empty: true + tokenize: false + content: + value: "Trainers will appear here once they are added.\r\n" + format: full_html + plugin_id: text + relationships: { } + arguments: + oc_case: + id: oc_case + table: oc_case_provision_field_data + field: oc_case + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: raw + default_argument_options: + index: 2 + use_alias: false + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + 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_provision + entity_field: oc_case + plugin_id: numeric + display_extenders: { } + title: Trainers + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - user.roles + tags: + - 'config:field.storage.oc_case_provision.field_rate' + - 'config:field.storage.oc_case_provision.field_rate_type' + block_1: + display_plugin: block + id: block_1 + display_title: Block + position: 1 + display_options: + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - user.roles + tags: + - 'config:field.storage.oc_case_provision.field_rate' + - 'config:field.storage.oc_case_provision.field_rate_type'