diff --git a/CHANGELOG.md b/CHANGELOG.md index 586374214..cc58f451e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,19 @@ Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +* [PR-553](https://github.com/itk-dev/deltag.aarhus.dk/pull/553) + * Add animated svg icons comment, reply, thumbs-up + +* [PR-552](https://github.com/itk-dev/deltag.aarhus.dk/pull/552) + * Add styling for dialog proposal categories + +* [PR-551](https://github.com/itk-dev/deltag.aarhus.dk/pull/551) + * Remove old video field and disabled Azure video module + * Enable Comments module + * Add Support comment flag + * Add Honeypot module + * Add ITK Video module and Video paragraph for Video Tool + ## [4.13.1] - 2025-09-15 * [PR-548](https://github.com/itk-dev/deltag.aarhus.dk/pull/548) diff --git a/composer.json b/composer.json index f0411e6a5..3ae1e5a3b 100755 --- a/composer.json +++ b/composer.json @@ -37,13 +37,15 @@ "drupal/entity_browser": "^2.6", "drupal/entityqueue": "^1.0@alpha", "drupal/field_group": "^3.0", - "drupal/flag": "^4.0@alpha", + "drupal/file_resup": "^2.0", + "drupal/flag": "^5.0", "drupal/hoeringsportal_audit_log": "^1.0", "drupal/hoeringsportal_citizen_proposal": "^1.0", "drupal/hoeringsportal_citizen_proposal_archiving": "^1.0", "drupal/hoeringsportal_data": "^1.0", "drupal/hoeringsportal_deskpro": "^1.0", "drupal/hoeringsportal_openid_connect": "^1.0", + "drupal/honeypot": "^2.2", "drupal/image_widget_crop": "^3.0", "drupal/inline_entity_form": "^3.0", "drupal/jquery_ui_accordion": "^2.0", @@ -64,6 +66,7 @@ "drupal/textfield_counter": "^2.5", "drupal/token_filter": "^2.1", "drupal/toolbar_visibility": "dev-3435073-automated-drupal-11#2b0a7e687bdef04e80a0a765a8e6eb8f7b846d03", + "drupal/twig_extensions": "^2.5", "drupal/twig_tweak": "^3.2", "drupal/upgrade_status": "^4.3", "drupal/view_custom_table": "^2.0", @@ -78,6 +81,7 @@ "itk-dev/itk_azure_video": "^2.0", "itk-dev/itk_pretix": "^1.3", "itk-dev/itk_siteimprove": "^1.2", + "itk-dev/itk_video": "^1.0", "itk-dev/serviceplatformen": "^1.5", "itk-dev/web_accessibility_statement": "^1.0", "onelogin/php-saml": "^4.0", diff --git a/composer.lock b/composer.lock index cbc6ffc2a..dd4772678 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b414c55f416209302d2d1f1f78549451", + "content-hash": "fa1f35924a98cade3aa6db37ae3d0948", "packages": [ { "name": "asm89/stack-cors", @@ -3452,19 +3452,67 @@ "issues": "https://www.drupal.org/project/issues/field_group" } }, + { + "name": "drupal/file_resup", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/file_resup.git", + "reference": "2.0.3" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/file_resup-2.0.3.zip", + "reference": "2.0.3", + "shasum": "e10a6ad658beabef280953a9d0ee1df46dbdd318" + }, + "require": { + "drupal/core": "^9 || ^10 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.3", + "datestamp": "1741046701", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "anrikun", + "homepage": "https://www.drupal.org/user/410199" + }, + { + "name": "tim bozeman", + "homepage": "https://www.drupal.org/user/2241356" + } + ], + "description": "Allows users to add large files, multiple files, and resume uploads.", + "homepage": "https://www.drupal.org/project/file_resup", + "support": { + "source": "https://git.drupalcode.org/project/file_resup" + } + }, { "name": "drupal/flag", - "version": "4.0.0-beta7", + "version": "5.0.1", "source": { "type": "git", "url": "https://git.drupalcode.org/project/flag.git", - "reference": "8.x-4.0-beta7" + "reference": "5.0.1" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/flag-8.x-4.0-beta7.zip", - "reference": "8.x-4.0-beta7", - "shasum": "6f74fcaec0db3c54934cdf8f25acb67c0c2d7f07" + "url": "https://ftp.drupal.org/files/projects/flag-5.0.1.zip", + "reference": "5.0.1", + "shasum": "8487a0d34b3c52f47d8af1631e1947497057f500" }, "require": { "drupal/core": "^10.3 || ^11" @@ -3472,11 +3520,11 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-4.0-beta7", - "datestamp": "1743851261", + "version": "5.0.1", + "datestamp": "1757658472", "security-coverage": { - "status": "not-covered", - "message": "Beta releases are not covered by Drupal security advisories." + "status": "covered", + "message": "Covered by Drupal's security advisory policy" } } }, @@ -3689,6 +3737,76 @@ "relative": true } }, + { + "name": "drupal/honeypot", + "version": "2.2.2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/honeypot.git", + "reference": "2.2.2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/honeypot-2.2.2.zip", + "reference": "2.2.2", + "shasum": "828872d31d1a2c37a818cacae7fcd77a60996c66" + }, + "require": { + "drupal/core": "^10.3 || ^11" + }, + "require-dev": { + "drupal/rules": "^4.0", + "drupal/webform": "^6.2" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.2.2", + "datestamp": "1739854442", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Jeff Geerling", + "homepage": "https://www.drupal.org/user/389011", + "email": "geerlingguy@mac.com" + }, + { + "name": "manuel garcia", + "homepage": "https://www.drupal.org/user/213194" + }, + { + "name": "tr", + "homepage": "https://www.drupal.org/user/202830" + }, + { + "name": "vijaycs85", + "homepage": "https://www.drupal.org/user/93488" + } + ], + "description": "Mitigates spam form submissions using the honeypot method.", + "homepage": "https://www.drupal.org/project/honeypot", + "keywords": [ + "deterrent", + "form", + "honeypot", + "honeytrap", + "php", + "spam" + ], + "support": { + "source": "https://git.drupalcode.org/project/honeypot", + "issues": "https://www.drupal.org/project/issues/honeypot" + } + }, { "name": "drupal/image_widget_crop", "version": "3.0.0", @@ -5284,6 +5402,62 @@ }, "time": "2024-12-10T15:53:09+00:00" }, + { + "name": "drupal/twig_extensions", + "version": "2.5.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/twig_extensions.git", + "reference": "8.x-2.5" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/twig_extensions-8.x-2.5.zip", + "reference": "8.x-2.5", + "shasum": "bdd02c598780cc448c209dfe2660b68b5fa7d308" + }, + "require": { + "drupal/core": "^10 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-2.5", + "datestamp": "1749640515", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "dieterholvoet", + "homepage": "https://www.drupal.org/user/3567222" + }, + { + "name": "joelpittet", + "homepage": "https://www.drupal.org/user/160302" + }, + { + "name": "joseph.olstad", + "homepage": "https://www.drupal.org/user/1321830" + }, + { + "name": "smulvih2", + "homepage": "https://www.drupal.org/user/795442" + } + ], + "description": "Adds the twig/extensions package to Drupal, providing common additional features for Twig that do not directly belong in core.", + "homepage": "https://www.drupal.org/project/twig_extensions", + "support": { + "source": "https://git.drupalcode.org/project/twig_extensions" + } + }, { "name": "drupal/twig_tweak", "version": "3.4.1", @@ -7129,6 +7303,49 @@ }, "time": "2025-06-27T14:13:39+00:00" }, + { + "name": "itk-dev/itk_video", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/itk-dev/itk_video.git", + "reference": "2467441cea83fa8085605d59690242e30b71ab0b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/itk-dev/itk_video/zipball/2467441cea83fa8085605d59690242e30b71ab0b", + "reference": "2467441cea83fa8085605d59690242e30b71ab0b", + "shasum": "" + }, + "require": { + "drush/drush": "^12 || ^13", + "ext-dom": "*", + "psr/cache": "^3.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", + "drupal/coder": "^8.3", + "ergebnis/composer-normalize": "^2.44", + "mglaman/phpstan-drupal": "^2.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-deprecation-rules": "^2.0" + }, + "type": "drupal-module", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Module that provides Video integration", + "keywords": [ + "drupal" + ], + "support": { + "issues": "https://github.com/itk-dev/itk_video/issues", + "source": "https://github.com/itk-dev/itk_video/tree/1.0.0" + }, + "time": "2025-10-20T11:13:09+00:00" + }, { "name": "itk-dev/openid-connect", "version": "3.2.1", @@ -20865,7 +21082,6 @@ "chx/drupal-issue-fork": 20, "drupal/email_registration": 5, "drupal/entityqueue": 15, - "drupal/flag": 15, "drupal/openid_connect": 15, "drupal/toolbar_visibility": 20, "drupal/viewsreference": 10, diff --git a/config/sync/comment.settings.yml b/config/sync/comment.settings.yml new file mode 100644 index 000000000..5b7ad98a8 --- /dev/null +++ b/config/sync/comment.settings.yml @@ -0,0 +1,3 @@ +_core: + default_config_hash: YNUW2Ij5uE7a4oaXp3i_2lvaFdYM1zNKPPfnEjB0jEc +log_ip_addresses: false diff --git a/config/sync/comment.type.early_inclusion_comment.yml b/config/sync/comment.type.early_inclusion_comment.yml new file mode 100644 index 000000000..ad2b1e65f --- /dev/null +++ b/config/sync/comment.type.early_inclusion_comment.yml @@ -0,0 +1,8 @@ +uuid: f524e7fb-c700-4c0a-8ea1-f1f993fc1a2a +langcode: da +status: true +dependencies: { } +id: early_inclusion_comment +label: Comment +target_entity_type_id: node +description: 'Comments related to early inclusion' diff --git a/config/sync/core.base_field_override.node.dialogue.promote.yml b/config/sync/core.base_field_override.node.dialogue.promote.yml new file mode 100644 index 000000000..58b886311 --- /dev/null +++ b/config/sync/core.base_field_override.node.dialogue.promote.yml @@ -0,0 +1,22 @@ +uuid: 0a2a5a5c-f160-4b5c-bf59-a75341db0c24 +langcode: da +status: true +dependencies: + config: + - node.type.dialogue +id: node.dialogue.promote +field_name: promote +entity_type: node +bundle: dialogue +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.node.dialogue.status.yml b/config/sync/core.base_field_override.node.dialogue.status.yml new file mode 100644 index 000000000..14432c000 --- /dev/null +++ b/config/sync/core.base_field_override.node.dialogue.status.yml @@ -0,0 +1,22 @@ +uuid: 69b80e94-9ff6-4499-a636-4224450a2c28 +langcode: da +status: true +dependencies: + config: + - node.type.dialogue +id: node.dialogue.status +field_name: status +entity_type: node +bundle: dialogue +label: Udgivet +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.node.dialogue_proposal.promote.yml b/config/sync/core.base_field_override.node.dialogue_proposal.promote.yml new file mode 100644 index 000000000..e4d05402d --- /dev/null +++ b/config/sync/core.base_field_override.node.dialogue_proposal.promote.yml @@ -0,0 +1,22 @@ +uuid: de7a9b01-3c91-46bf-b779-29641009f7c1 +langcode: da +status: true +dependencies: + config: + - node.type.dialogue_proposal +id: node.dialogue_proposal.promote +field_name: promote +entity_type: node +bundle: dialogue_proposal +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.base_field_override.node.dialogue_proposal.title.yml b/config/sync/core.base_field_override.node.dialogue_proposal.title.yml new file mode 100644 index 000000000..8706e8250 --- /dev/null +++ b/config/sync/core.base_field_override.node.dialogue_proposal.title.yml @@ -0,0 +1,18 @@ +uuid: f98bf0d7-6ebc-486b-b1c5-2895395bd739 +langcode: da +status: true +dependencies: + config: + - node.type.dialogue_proposal +id: node.dialogue_proposal.title +field_name: title +entity_type: node +bundle: dialogue_proposal +label: 'Proposal title' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/core.entity_form_display.comment.early_inclusion_comment.default.yml b/config/sync/core.entity_form_display.comment.early_inclusion_comment.default.yml new file mode 100644 index 000000000..3bdf32daf --- /dev/null +++ b/config/sync/core.entity_form_display.comment.early_inclusion_comment.default.yml @@ -0,0 +1,24 @@ +uuid: 231d1efa-b51c-40bd-8b41-4653beeabb38 +langcode: da +status: true +dependencies: + config: + - comment.type.early_inclusion_comment + - field.field.comment.early_inclusion_comment.field_comment +id: comment.early_inclusion_comment.default +targetEntityType: comment +bundle: early_inclusion_comment +mode: default +content: + field_comment: + type: string_textarea + weight: 0 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } +hidden: + author: true + langcode: true + subject: true diff --git a/config/sync/core.entity_form_display.node.dialogue.default.yml b/config/sync/core.entity_form_display.node.dialogue.default.yml new file mode 100644 index 000000000..1734f2708 --- /dev/null +++ b/config/sync/core.entity_form_display.node.dialogue.default.yml @@ -0,0 +1,181 @@ +uuid: d546e211-6219-4f6c-88d0-f9d2d6e7f63d +langcode: da +status: true +dependencies: + config: + - entity_browser.browser.itk_image_browser + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - entity_browser + - field_group + - hoeringsportal_data + - paragraphs +third_party_settings: + field_group: + group_information: + children: + - field_department + - field_type + - field_area + label: Informationer + region: content + parent_name: '' + weight: 6 + format_type: details + format_settings: + classes: '' + show_empty_fields: true + id: '' + label_as_html: false + open: true + description: '' + required_fields: false + group_proposal_settings: + children: + - field_dialogue_proposal_config + - field_dialogue_proposal_category + - field_dialogue_proposal_location + - field_dialogue_proposal_zoom + label: 'Proposal settings' + region: content + parent_name: '' + weight: 5 + format_type: details + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + open: true + description: '' + required_fields: false +id: node.dialogue.default +targetEntityType: node +bundle: dialogue +mode: default +content: + field_area: + type: options_buttons + weight: 7 + region: content + settings: { } + third_party_settings: { } + field_content_sections: + type: paragraphs + weight: 4 + region: content + settings: + title: Paragraph + title_plural: Paragraphs + edit_mode: closed_expand_nested + closed_mode: summary + autocollapse: none + closed_mode_threshold: 0 + add_mode: modal + form_display_mode: default + default_paragraph_type: _none + features: + add_above: '0' + collapse_edit_all: collapse_edit_all + convert: '0' + duplicate: duplicate + third_party_settings: { } + field_department: + type: options_buttons + weight: 5 + region: content + settings: { } + third_party_settings: { } + field_dialogue_proposal_category: + type: options_buttons + weight: 29 + region: content + settings: { } + third_party_settings: { } + field_dialogue_proposal_config: + type: options_buttons + weight: 28 + region: content + settings: { } + third_party_settings: { } + field_dialogue_proposal_location: + type: hoeringsportal_data_map_default + weight: 30 + region: content + settings: + available_types: + point: point + localplanids: 0 + localplanids_node: 0 + third_party_settings: { } + field_dialogue_proposal_zoom: + type: string_textfield + weight: 31 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_teaser: + type: string_textarea + weight: 2 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_top_images: + type: entity_browser_entity_reference + weight: 1 + region: content + settings: + entity_browser: itk_image_browser + field_widget_display: rendered_entity + field_widget_edit: true + field_widget_remove: true + field_widget_replace: false + open: false + field_widget_display_settings: + view_mode: material_display + selection_mode: selection_append + third_party_settings: { } + field_type: + type: options_buttons + weight: 6 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + weight: 3 + region: content + settings: + display_label: true + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + langcode: true + path: true + promote: true + published_at: true + sticky: true + uid: true + url_redirects: true diff --git a/config/sync/core.entity_form_display.node.dialogue_proposal.default.yml b/config/sync/core.entity_form_display.node.dialogue_proposal.default.yml new file mode 100644 index 000000000..ad9f5534f --- /dev/null +++ b/config/sync/core.entity_form_display.node.dialogue_proposal.default.yml @@ -0,0 +1,82 @@ +uuid: f9fb8e18-a231-4417-a860-58efbca035dc +langcode: da +status: true +dependencies: + config: + - field.field.node.dialogue_proposal.field_comments + - field.field.node.dialogue_proposal.field_dialogue + - field.field.node.dialogue_proposal.field_dialogue_proposal_category + - field.field.node.dialogue_proposal.field_dialogue_proposal_descr + - field.field.node.dialogue_proposal.field_image_upload + - field.field.node.dialogue_proposal.field_location + - image.style.thumbnail + - node.type.dialogue_proposal + module: + - hoeringsportal_data + - svg_image +id: node.dialogue_proposal.default +targetEntityType: node +bundle: dialogue_proposal +mode: default +content: + field_dialogue: + type: entity_reference_autocomplete + weight: 5 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + field_dialogue_proposal_category: + type: options_buttons + weight: 2 + region: content + settings: { } + third_party_settings: { } + field_dialogue_proposal_descr: + type: string_textarea + weight: 1 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_image_upload: + type: image_image + weight: 3 + region: content + settings: + progress_indicator: throbber + preview_image_style: thumbnail + third_party_settings: { } + field_location: + type: hoeringsportal_data_map_default + weight: 4 + region: content + settings: + available_types: + point: point + localplanids: 0 + localplanids_node: 0 + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + field_comments: true + langcode: true + path: true + promote: true + published_at: true + status: true + sticky: true + uid: true + url_redirects: true diff --git a/config/sync/core.entity_form_display.node.hearing.default.yml b/config/sync/core.entity_form_display.node.hearing.default.yml index e99cbc6c2..5239bd827 100644 --- a/config/sync/core.entity_form_display.node.hearing.default.yml +++ b/config/sync/core.entity_form_display.node.hearing.default.yml @@ -28,9 +28,9 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: + - allowed_formats - datetime - entity_browser - field_group @@ -93,7 +93,7 @@ third_party_settings: label: eDoc region: content parent_name: '' - weight: 12 + weight: 11 format_type: details format_settings: classes: '' @@ -106,7 +106,7 @@ third_party_settings: label: Kontakt region: content parent_name: '' - weight: 13 + weight: 12 format_type: details format_settings: classes: '' @@ -120,7 +120,7 @@ third_party_settings: label: 'Vil du vide mere?' region: content parent_name: '' - weight: 15 + weight: 14 format_type: details format_settings: classes: '' @@ -134,7 +134,7 @@ third_party_settings: label: GetOrganized region: content parent_name: '' - weight: 14 + weight: 13 format_type: details format_settings: classes: '' @@ -150,7 +150,7 @@ third_party_settings: label: Høringssvarsystem region: content parent_name: '' - weight: 17 + weight: 16 format_type: details format_settings: classes: '' @@ -166,13 +166,13 @@ mode: default content: field_area: type: options_buttons - weight: 32 + weight: 35 region: content settings: { } third_party_settings: { } field_contact: type: text_textarea - weight: 12 + weight: 15 region: content settings: rows: 5 @@ -180,13 +180,13 @@ content: third_party_settings: { } field_delete_date: type: datetime_default - weight: 28 + weight: 31 region: content settings: { } third_party_settings: { } field_department: type: options_buttons - weight: 35 + weight: 17 region: content settings: { } third_party_settings: { } @@ -200,7 +200,7 @@ content: third_party_settings: { } field_deskpro_agent_email: type: email_default - weight: 9 + weight: 15 region: content settings: placeholder: '' @@ -208,7 +208,7 @@ content: third_party_settings: { } field_deskpro_department_id: type: string_textfield - weight: 8 + weight: 14 region: content settings: size: 60 @@ -216,7 +216,7 @@ content: third_party_settings: { } field_edoc_casefile_id: type: string_textfield - weight: 11 + weight: 14 region: content settings: size: 60 @@ -248,13 +248,13 @@ content: third_party_settings: { } field_lokalplaner: type: hoeringsportal_data_localplan_default - weight: 30 + weight: 33 region: content settings: { } third_party_settings: { } field_map: type: hoeringsportal_data_map_default - weight: 6 + weight: 5 region: content settings: available_types: @@ -299,22 +299,29 @@ content: settings: rows: 5 placeholder: '' - third_party_settings: { } + third_party_settings: + maxlength: + maxlength_js: null + maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' + maxlength_js_enforce: false + allowed_formats: + hide_help: '0' + hide_guidelines: '0' field_project_reference: type: options_select - weight: 31 + weight: 34 region: content settings: { } third_party_settings: { } field_reply_deadline: type: datetime_default - weight: 27 + weight: 30 region: content settings: { } third_party_settings: { } field_start_date: type: datetime_default - weight: 26 + weight: 29 region: content settings: { } third_party_settings: { } @@ -328,18 +335,10 @@ content: third_party_settings: { } field_type: type: options_buttons - weight: 29 + weight: 32 region: content settings: { } third_party_settings: { } - field_video_embed: - type: string_textarea - weight: 5 - region: content - settings: - rows: 3 - placeholder: '' - third_party_settings: { } published_at: type: publication_date_timestamp weight: 10 @@ -366,7 +365,7 @@ content: maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' maxlength_js_enforce: false url_redirects: - weight: 16 + weight: 15 region: content settings: { } third_party_settings: { } diff --git a/config/sync/core.entity_form_display.node.landing_page.default.yml b/config/sync/core.entity_form_display.node.landing_page.default.yml index 713b9ca61..c666bffee 100644 --- a/config/sync/core.entity_form_display.node.landing_page.default.yml +++ b/config/sync/core.entity_form_display.node.landing_page.default.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - entity_browser.browser.itk_image_browser + - field.field.node.landing_page.field_header_label - field.field.node.landing_page.field_media_image_single - field.field.node.landing_page.field_section - field.field.node.landing_page.field_show_page_title @@ -19,9 +20,17 @@ targetEntityType: node bundle: landing_page mode: default content: + field_header_label: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } field_media_image_single: type: entity_browser_entity_reference - weight: 3 + weight: 4 region: content settings: entity_browser: itk_image_browser @@ -36,7 +45,7 @@ content: third_party_settings: { } field_section: type: paragraphs - weight: 4 + weight: 5 region: content settings: title: sektion @@ -56,14 +65,14 @@ content: third_party_settings: { } field_show_page_title: type: boolean_checkbox - weight: 1 + weight: 2 region: content settings: display_label: true third_party_settings: { } field_teaser: type: string_textarea - weight: 2 + weight: 3 region: content settings: rows: 5 @@ -71,19 +80,19 @@ content: third_party_settings: { } path: type: path - weight: 6 + weight: 7 region: content settings: { } third_party_settings: { } published_at: type: publication_date_timestamp - weight: 8 + weight: 9 region: content settings: { } third_party_settings: { } status: type: boolean_checkbox - weight: 7 + weight: 8 region: content settings: display_label: true @@ -98,7 +107,7 @@ content: third_party_settings: { } uid: type: entity_reference_autocomplete - weight: 5 + weight: 6 region: content settings: match_operator: CONTAINS @@ -107,7 +116,7 @@ content: placeholder: '' third_party_settings: { } url_redirects: - weight: 9 + weight: 10 region: content settings: { } third_party_settings: { } diff --git a/config/sync/core.entity_form_display.paragraph.video.default.yml b/config/sync/core.entity_form_display.paragraph.video.default.yml new file mode 100644 index 000000000..27dba7831 --- /dev/null +++ b/config/sync/core.entity_form_display.paragraph.video.default.yml @@ -0,0 +1,25 @@ +uuid: 13c23b13-33a2-4839-aa78-901fc3b3a3be +langcode: da +status: true +dependencies: + config: + - field.field.paragraph.video.field_video + - paragraphs.paragraphs_type.video + module: + - itk_video +id: paragraph.video.default +targetEntityType: paragraph +bundle: video +mode: default +content: + field_video: + type: itk_video_widget + weight: 0 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } +hidden: + created: true + status: true diff --git a/config/sync/core.entity_view_display.comment.early_inclusion_comment.default.yml b/config/sync/core.entity_view_display.comment.early_inclusion_comment.default.yml new file mode 100644 index 000000000..c356e9d00 --- /dev/null +++ b/config/sync/core.entity_view_display.comment.early_inclusion_comment.default.yml @@ -0,0 +1,28 @@ +uuid: b46bd223-172f-4262-8850-9722c21c895a +langcode: da +status: true +dependencies: + config: + - comment.type.early_inclusion_comment + - field.field.comment.early_inclusion_comment.field_comment +id: comment.early_inclusion_comment.default +targetEntityType: comment +bundle: early_inclusion_comment +mode: default +content: + field_comment: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 11 + region: content + flag_support_comment: + settings: { } + third_party_settings: { } + weight: 10 + region: content +hidden: + langcode: true + links: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.citizen_proposal.hearing_ticket_add.yml b/config/sync/core.entity_view_display.node.citizen_proposal.hearing_ticket_add.yml new file mode 100644 index 000000000..eb73a539e --- /dev/null +++ b/config/sync/core.entity_view_display.node.citizen_proposal.hearing_ticket_add.yml @@ -0,0 +1,54 @@ +uuid: 36272da6-85ec-49f0-860c-b2d987c785b1 +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.hearing_ticket_add + - field.field.node.citizen_proposal.field_author_allow_email + - field.field.node.citizen_proposal.field_author_email + - field.field.node.citizen_proposal.field_author_email_display + - field.field.node.citizen_proposal.field_author_name + - field.field.node.citizen_proposal.field_author_phone + - field.field.node.citizen_proposal.field_author_uuid + - field.field.node.citizen_proposal.field_content_state + - field.field.node.citizen_proposal.field_getorganized_case_id + - field.field.node.citizen_proposal.field_more_info + - field.field.node.citizen_proposal.field_proposal + - field.field.node.citizen_proposal.field_remarks + - field.field.node.citizen_proposal.field_vote_end + - field.field.node.citizen_proposal.field_vote_start + - node.type.citizen_proposal + module: + - user +id: node.citizen_proposal.hearing_ticket_add +targetEntityType: node +bundle: citizen_proposal +mode: hearing_ticket_add +content: + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_author_allow_email: true + field_author_email: true + field_author_email_display: true + field_author_name: true + field_author_phone: true + field_author_uuid: true + field_content_state: true + field_getorganized_case_id: true + field_more_info: true + field_proposal: true + field_remarks: true + field_vote_end: true + field_vote_start: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.citizen_proposal.hearing_ticket_view.yml b/config/sync/core.entity_view_display.node.citizen_proposal.hearing_ticket_view.yml new file mode 100644 index 000000000..b10f08256 --- /dev/null +++ b/config/sync/core.entity_view_display.node.citizen_proposal.hearing_ticket_view.yml @@ -0,0 +1,54 @@ +uuid: 93ee4e68-5ee4-4d11-b067-34a56a855249 +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.hearing_ticket_view + - field.field.node.citizen_proposal.field_author_allow_email + - field.field.node.citizen_proposal.field_author_email + - field.field.node.citizen_proposal.field_author_email_display + - field.field.node.citizen_proposal.field_author_name + - field.field.node.citizen_proposal.field_author_phone + - field.field.node.citizen_proposal.field_author_uuid + - field.field.node.citizen_proposal.field_content_state + - field.field.node.citizen_proposal.field_getorganized_case_id + - field.field.node.citizen_proposal.field_more_info + - field.field.node.citizen_proposal.field_proposal + - field.field.node.citizen_proposal.field_remarks + - field.field.node.citizen_proposal.field_vote_end + - field.field.node.citizen_proposal.field_vote_start + - node.type.citizen_proposal + module: + - user +id: node.citizen_proposal.hearing_ticket_view +targetEntityType: node +bundle: citizen_proposal +mode: hearing_ticket_view +content: + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_author_allow_email: true + field_author_email: true + field_author_email_display: true + field_author_name: true + field_author_phone: true + field_author_uuid: true + field_content_state: true + field_getorganized_case_id: true + field_more_info: true + field_proposal: true + field_remarks: true + field_vote_end: true + field_vote_start: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.dialogue.citizen_proposal_add.yml b/config/sync/core.entity_view_display.node.dialogue.citizen_proposal_add.yml new file mode 100644 index 000000000..d3464f194 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.citizen_proposal_add.yml @@ -0,0 +1,48 @@ +uuid: 554b7ea3-c8e7-4b12-819e-92b1dae1a34a +langcode: da +status: false +dependencies: + config: + - core.entity_view_mode.node.citizen_proposal_add + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.citizen_proposal_add +targetEntityType: node +bundle: dialogue +mode: citizen_proposal_add +content: + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_area: true + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_teaser: true + field_top_images: true + field_type: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.dialogue.citizen_proposal_approval.yml b/config/sync/core.entity_view_display.node.dialogue.citizen_proposal_approval.yml new file mode 100644 index 000000000..8e36716af --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.citizen_proposal_approval.yml @@ -0,0 +1,48 @@ +uuid: e22ffe91-a3a0-47d2-8be3-8513bd783313 +langcode: da +status: false +dependencies: + config: + - core.entity_view_mode.node.citizen_proposal_approval + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.citizen_proposal_approval +targetEntityType: node +bundle: dialogue +mode: citizen_proposal_approval +content: + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_area: true + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_teaser: true + field_top_images: true + field_type: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.dialogue.default.yml b/config/sync/core.entity_view_display.node.dialogue.default.yml new file mode 100644 index 000000000..2be90dbd6 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.default.yml @@ -0,0 +1,83 @@ +uuid: 08ce4a5a-b200-4bdd-828a-b48a45579fc5 +langcode: da +status: true +dependencies: + config: + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - entity_reference_revisions + - user +id: node.dialogue.default +targetEntityType: node +bundle: dialogue +mode: default +content: + field_area: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 3 + region: content + field_content_sections: + type: entity_reference_revisions_entity_view + label: hidden + settings: + view_mode: default + link: '' + third_party_settings: { } + weight: 5 + region: content + field_department: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 2 + region: content + field_teaser: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 1 + region: content + field_top_images: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: full + link: false + third_party_settings: { } + weight: 0 + region: content + field_type: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 4 + region: content +hidden: + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue.dialogue_proposal_add.yml b/config/sync/core.entity_view_display.node.dialogue.dialogue_proposal_add.yml new file mode 100644 index 000000000..b38dcedf5 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.dialogue_proposal_add.yml @@ -0,0 +1,40 @@ +uuid: 7cb85841-fd38-423f-848d-c7c71de0d2ca +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.dialogue_proposal_add + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.dialogue_proposal_add +targetEntityType: node +bundle: dialogue +mode: dialogue_proposal_add +content: { } +hidden: + field_area: true + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_teaser: true + field_top_images: true + field_type: true + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue.hearing_ticket_add.yml b/config/sync/core.entity_view_display.node.dialogue.hearing_ticket_add.yml new file mode 100644 index 000000000..1ec338c47 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.hearing_ticket_add.yml @@ -0,0 +1,62 @@ +uuid: f3355016-5833-4ee5-9878-0888dace520e +langcode: da +status: false +dependencies: + config: + - core.entity_view_mode.node.hearing_ticket_add + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.hearing_ticket_add +targetEntityType: node +bundle: dialogue +mode: hearing_ticket_add +content: + field_area: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 9 + region: right + field_type: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 7 + region: right + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_teaser: true + field_top_images: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.dialogue.hearing_ticket_view.yml b/config/sync/core.entity_view_display.node.dialogue.hearing_ticket_view.yml new file mode 100644 index 000000000..d88c10673 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.hearing_ticket_view.yml @@ -0,0 +1,62 @@ +uuid: 540e861d-500b-47a4-8d29-ef8e99ec82dd +langcode: da +status: false +dependencies: + config: + - core.entity_view_mode.node.hearing_ticket_view + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.hearing_ticket_view +targetEntityType: node +bundle: dialogue +mode: hearing_ticket_view +content: + field_area: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 10 + region: right + field_type: + type: entity_reference_label + label: above + settings: + link: false + third_party_settings: { } + weight: 8 + region: right + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_teaser: true + field_top_images: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.dialogue.list_display.yml b/config/sync/core.entity_view_display.node.dialogue.list_display.yml new file mode 100644 index 000000000..e0b552c3d --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.list_display.yml @@ -0,0 +1,60 @@ +uuid: 6c27a54f-de42-4014-b694-3e5281db0ede +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.list_display + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.list_display +targetEntityType: node +bundle: dialogue +mode: list_display +content: + field_area: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 4 + region: content + field_teaser: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 1 + region: content + field_type: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 3 + region: content +hidden: + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_top_images: true + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue.search_result.yml b/config/sync/core.entity_view_display.node.dialogue.search_result.yml new file mode 100644 index 000000000..a7b0f907a --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.search_result.yml @@ -0,0 +1,40 @@ +uuid: b35d709a-3d90-4576-9cd0-453435af1f8c +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.search_result + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.search_result +targetEntityType: node +bundle: dialogue +mode: search_result +content: { } +hidden: + field_area: true + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_teaser: true + field_top_images: true + field_type: true + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue.teaser.yml b/config/sync/core.entity_view_display.node.dialogue.teaser.yml new file mode 100644 index 000000000..c15867243 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue.teaser.yml @@ -0,0 +1,68 @@ +uuid: 1261e6d7-89db-42b7-a869-5192d0a2d231 +langcode: da +status: false +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.dialogue.field_area + - field.field.node.dialogue.field_content_sections + - field.field.node.dialogue.field_department + - field.field.node.dialogue.field_dialogue_proposal_category + - field.field.node.dialogue.field_dialogue_proposal_config + - field.field.node.dialogue.field_dialogue_proposal_location + - field.field.node.dialogue.field_dialogue_proposal_zoom + - field.field.node.dialogue.field_teaser + - field.field.node.dialogue.field_top_images + - field.field.node.dialogue.field_type + - node.type.dialogue + module: + - user +id: node.dialogue.teaser +targetEntityType: node +bundle: dialogue +mode: teaser +content: + field_area: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 1 + region: content + field_teaser: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content + field_type: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 3 + region: content + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_content_sections: true + field_department: true + field_dialogue_proposal_category: true + field_dialogue_proposal_config: true + field_dialogue_proposal_location: true + field_dialogue_proposal_zoom: true + field_top_images: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.dialogue_proposal.default.yml b/config/sync/core.entity_view_display.node.dialogue_proposal.default.yml new file mode 100644 index 000000000..28e62aa4f --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue_proposal.default.yml @@ -0,0 +1,88 @@ +uuid: 9b2fde90-6e46-46f6-9c7d-d03b19b500f2 +langcode: da +status: true +dependencies: + config: + - core.entity_view_display.comment.early_inclusion_comment.default + - field.field.node.dialogue_proposal.field_comments + - field.field.node.dialogue_proposal.field_dialogue + - field.field.node.dialogue_proposal.field_dialogue_proposal_category + - field.field.node.dialogue_proposal.field_dialogue_proposal_descr + - field.field.node.dialogue_proposal.field_image_upload + - field.field.node.dialogue_proposal.field_location + - node.type.dialogue_proposal + module: + - comment + - hoeringsportal_data + - svg_image + - user +id: node.dialogue_proposal.default +targetEntityType: node +bundle: dialogue_proposal +mode: default +content: + field_comments: + type: comment_default + label: hidden + settings: + view_mode: default + pager_id: 0 + third_party_settings: { } + weight: 6 + region: content + field_dialogue: + type: entity_reference_label + label: hidden + settings: + link: true + third_party_settings: { } + weight: 3 + region: content + field_dialogue_proposal_category: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 5 + region: content + field_dialogue_proposal_descr: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 1 + region: content + field_image_upload: + type: image + label: hidden + settings: + image_link: '' + image_style: '' + image_loading: + attribute: lazy + svg_attributes: + width: null + height: null + svg_render_as_image: true + third_party_settings: { } + weight: 2 + region: content + field_location: + type: hoeringsportal_data_map_default + label: hidden + settings: { } + third_party_settings: { } + weight: 4 + region: content + flag_support_proposal: + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue_proposal.list_display.yml b/config/sync/core.entity_view_display.node.dialogue_proposal.list_display.yml new file mode 100644 index 000000000..b035a341c --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue_proposal.list_display.yml @@ -0,0 +1,50 @@ +uuid: d0775ba9-b2c5-4111-911b-e1f53c493fe6 +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.list_display + - field.field.node.dialogue_proposal.field_comments + - field.field.node.dialogue_proposal.field_dialogue + - field.field.node.dialogue_proposal.field_dialogue_proposal_category + - field.field.node.dialogue_proposal.field_dialogue_proposal_descr + - field.field.node.dialogue_proposal.field_image_upload + - field.field.node.dialogue_proposal.field_location + - node.type.dialogue_proposal + module: + - user +id: node.dialogue_proposal.list_display +targetEntityType: node +bundle: dialogue_proposal +mode: list_display +content: + field_dialogue_proposal_category: + type: entity_reference_label + label: hidden + settings: + link: false + third_party_settings: { } + weight: 2 + region: content + field_dialogue_proposal_descr: + type: basic_string + label: hidden + settings: { } + third_party_settings: { } + weight: 1 + region: content + flag_support_proposal: + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + field_comments: true + field_dialogue: true + field_image_upload: true + field_location: true + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue_proposal.search_result.yml b/config/sync/core.entity_view_display.node.dialogue_proposal.search_result.yml new file mode 100644 index 000000000..a381e88a5 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue_proposal.search_result.yml @@ -0,0 +1,37 @@ +uuid: ec2b860f-c2fb-471d-9577-6a8f8889c434 +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.search_result + - field.field.node.dialogue_proposal.field_comments + - field.field.node.dialogue_proposal.field_dialogue + - field.field.node.dialogue_proposal.field_dialogue_proposal_category + - field.field.node.dialogue_proposal.field_dialogue_proposal_descr + - field.field.node.dialogue_proposal.field_image_upload + - field.field.node.dialogue_proposal.field_location + - node.type.dialogue_proposal + module: + - user +id: node.dialogue_proposal.search_result +targetEntityType: node +bundle: dialogue_proposal +mode: search_result +content: + flag_support_proposal: + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + field_comments: true + field_dialogue: true + field_dialogue_proposal_category: true + field_dialogue_proposal_descr: true + field_image_upload: true + field_location: true + langcode: true + links: true + published_at: true + search_api_excerpt: true + sharing_buttons: true diff --git a/config/sync/core.entity_view_display.node.dialogue_proposal.teaser.yml b/config/sync/core.entity_view_display.node.dialogue_proposal.teaser.yml new file mode 100644 index 000000000..e0474bc67 --- /dev/null +++ b/config/sync/core.entity_view_display.node.dialogue_proposal.teaser.yml @@ -0,0 +1,45 @@ +uuid: c041ee64-d7bf-49b2-b331-53fb81983d10 +langcode: da +status: false +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.dialogue_proposal.field_comments + - field.field.node.dialogue_proposal.field_dialogue + - field.field.node.dialogue_proposal.field_dialogue_proposal_category + - field.field.node.dialogue_proposal.field_dialogue_proposal_descr + - field.field.node.dialogue_proposal.field_image_upload + - field.field.node.dialogue_proposal.field_location + - node.type.dialogue_proposal + module: + - user +id: node.dialogue_proposal.teaser +targetEntityType: node +bundle: dialogue_proposal +mode: teaser +content: + flag_support_proposal: + settings: { } + third_party_settings: { } + weight: 10 + region: content + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content + sharing_buttons: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_comments: true + field_dialogue: true + field_dialogue_proposal_category: true + field_dialogue_proposal_descr: true + field_image_upload: true + field_location: true + langcode: true + published_at: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.hearing.default.yml b/config/sync/core.entity_view_display.node.hearing.default.yml index 4b10a91a2..354d9fb03 100644 --- a/config/sync/core.entity_view_display.node.hearing.default.yml +++ b/config/sync/core.entity_view_display.node.hearing.default.yml @@ -27,7 +27,6 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: - datetime @@ -63,8 +62,8 @@ third_party_settings: - field_teaser - field_description - field_media_document - - field_video_embed - field_media_image + - field_video - 'dynamic_block_field:node-hearing_tickets' right: - 'dynamic_block_field:node-quicklinks' @@ -83,16 +82,6 @@ third_party_settings: - field_map - 'dynamic_block_field:node-nearest_hearings' fields: - 'dynamic_token_field:node-header_information': - plugin_id: 'dynamic_token_field:node-header_information' - weight: 9 - label: hidden - formatter: default - 'dynamic_token_field:node-node_id_hearing': - plugin_id: 'dynamic_token_field:node-node_id_hearing' - weight: 15 - label: above - formatter: default 'dynamic_block_field:node-hearing_tickets': plugin_id: 'dynamic_block_field:node-hearing_tickets' weight: 7 @@ -105,12 +94,12 @@ third_party_settings: formatter: default 'dynamic_block_field:node-nearest_hearings': plugin_id: 'dynamic_block_field:node-nearest_hearings' - weight: 20 + weight: 21 label: above formatter: default 'dynamic_block_field:node-project_timeline': plugin_id: 'dynamic_block_field:node-project_timeline' - weight: 18 + weight: 19 label: hidden formatter: default 'dynamic_block_field:node-quicklinks': @@ -118,6 +107,16 @@ third_party_settings: weight: 8 label: above formatter: default + 'dynamic_token_field:node-header_information': + plugin_id: 'dynamic_token_field:node-header_information' + weight: 9 + label: hidden + formatter: default + 'dynamic_token_field:node-node_id_hearing': + plugin_id: 'dynamic_token_field:node-node_id_hearing' + weight: 15 + label: above + formatter: default node_title: plugin_id: node_title weight: 1 @@ -166,7 +165,7 @@ content: label: hidden settings: { } third_party_settings: { } - weight: 19 + weight: 20 region: footer field_media_document: type: entity_reference_entity_view @@ -188,7 +187,7 @@ content: third_party_settings: ds: ds_limit: '' - weight: 6 + weight: 5 region: left field_more_info: type: text_default @@ -230,17 +229,10 @@ content: third_party_settings: { } weight: 12 region: right - field_video_embed: - type: basic_string - label: hidden - settings: { } - third_party_settings: { } - weight: 5 - region: left sharing_buttons: settings: { } third_party_settings: { } - weight: 100 + weight: 18 region: right hidden: field_content_state: true diff --git a/config/sync/core.entity_view_display.node.hearing.hearing_ticket_add.yml b/config/sync/core.entity_view_display.node.hearing.hearing_ticket_add.yml index cdef11973..5b4b54576 100644 --- a/config/sync/core.entity_view_display.node.hearing.hearing_ticket_add.yml +++ b/config/sync/core.entity_view_display.node.hearing.hearing_ticket_add.yml @@ -28,7 +28,6 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: - datetime @@ -181,7 +180,6 @@ hidden: field_media_image: true field_project_reference: true field_teaser: true - field_video_embed: true langcode: true links: true published_at: true diff --git a/config/sync/core.entity_view_display.node.hearing.hearing_ticket_view.yml b/config/sync/core.entity_view_display.node.hearing.hearing_ticket_view.yml index 6a7219fd7..da91fa07e 100644 --- a/config/sync/core.entity_view_display.node.hearing.hearing_ticket_view.yml +++ b/config/sync/core.entity_view_display.node.hearing.hearing_ticket_view.yml @@ -28,7 +28,6 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: - datetime @@ -193,7 +192,6 @@ hidden: field_media_image: true field_project_reference: true field_teaser: true - field_video_embed: true langcode: true links: true published_at: true diff --git a/config/sync/core.entity_view_display.node.hearing.list_display.yml b/config/sync/core.entity_view_display.node.hearing.list_display.yml index e153ac768..b1c581041 100644 --- a/config/sync/core.entity_view_display.node.hearing.list_display.yml +++ b/config/sync/core.entity_view_display.node.hearing.list_display.yml @@ -28,7 +28,6 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: - ds @@ -99,7 +98,6 @@ hidden: field_reply_deadline: true field_start_date: true field_tags: true - field_video_embed: true langcode: true links: true published_at: true diff --git a/config/sync/core.entity_view_display.node.hearing.search_result.yml b/config/sync/core.entity_view_display.node.hearing.search_result.yml index a14d9c6ee..80d4c65f8 100644 --- a/config/sync/core.entity_view_display.node.hearing.search_result.yml +++ b/config/sync/core.entity_view_display.node.hearing.search_result.yml @@ -8,6 +8,7 @@ dependencies: - field.field.node.hearing.field_contact - field.field.node.hearing.field_content_state - field.field.node.hearing.field_delete_date + - field.field.node.hearing.field_department - field.field.node.hearing.field_description - field.field.node.hearing.field_deskpro_agent_email - field.field.node.hearing.field_deskpro_department_id @@ -27,7 +28,6 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: - ds @@ -90,7 +90,6 @@ hidden: field_tags: true field_teaser: true field_type: true - field_video_embed: true langcode: true links: true published_at: true diff --git a/config/sync/core.entity_view_display.node.hearing.teaser.yml b/config/sync/core.entity_view_display.node.hearing.teaser.yml index c7f07a2be..689f17231 100644 --- a/config/sync/core.entity_view_display.node.hearing.teaser.yml +++ b/config/sync/core.entity_view_display.node.hearing.teaser.yml @@ -28,7 +28,6 @@ dependencies: - field.field.node.hearing.field_tags - field.field.node.hearing.field_teaser - field.field.node.hearing.field_type - - field.field.node.hearing.field_video_embed - node.type.hearing module: - datetime @@ -117,7 +116,6 @@ hidden: field_more_info: true field_project_reference: true field_tags: true - field_video_embed: true langcode: true links: true published_at: true diff --git a/config/sync/core.entity_view_display.node.landing_page.default.yml b/config/sync/core.entity_view_display.node.landing_page.default.yml index b904b9da7..137cd2edb 100644 --- a/config/sync/core.entity_view_display.node.landing_page.default.yml +++ b/config/sync/core.entity_view_display.node.landing_page.default.yml @@ -3,6 +3,7 @@ langcode: da status: true dependencies: config: + - field.field.node.landing_page.field_header_label - field.field.node.landing_page.field_media_image_single - field.field.node.landing_page.field_section - field.field.node.landing_page.field_show_page_title @@ -12,34 +13,19 @@ dependencies: - ds - entity_reference_revisions - user -third_party_settings: - ds: - layout: - id: ds_1col - library: null - disable_css: false - entity_classes: all_classes - settings: - label: '' - classes: - layout_class: { } - wrappers: - ds_content: div - outer_wrapper: div - attributes: '' - link_attribute: '' - link_custom: '' - regions: - ds_content: - - field_section - - field_teaser - - field_media_image_single - - field_show_page_title id: node.landing_page.default targetEntityType: node bundle: landing_page mode: default content: + field_header_label: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 0 + region: content field_media_image_single: type: entity_reference_entity_view label: hidden @@ -47,8 +33,8 @@ content: view_mode: content_display link: false third_party_settings: { } - weight: 2 - region: ds_content + weight: 3 + region: content field_section: type: entity_reference_revisions_entity_view label: hidden @@ -58,8 +44,8 @@ content: third_party_settings: ds: ds_limit: '' - weight: 0 - region: ds_content + weight: 1 + region: content field_show_page_title: type: boolean label: hidden @@ -68,15 +54,15 @@ content: format_custom_false: '' format_custom_true: '' third_party_settings: { } - weight: 3 - region: ds_content + weight: 4 + region: content field_teaser: type: basic_string label: hidden settings: { } third_party_settings: { } - weight: 1 - region: ds_content + weight: 2 + region: content hidden: langcode: true links: true diff --git a/config/sync/core.entity_view_display.node.landing_page.list_display.yml b/config/sync/core.entity_view_display.node.landing_page.list_display.yml index f32c54250..9abae7691 100644 --- a/config/sync/core.entity_view_display.node.landing_page.list_display.yml +++ b/config/sync/core.entity_view_display.node.landing_page.list_display.yml @@ -4,6 +4,7 @@ status: false dependencies: config: - core.entity_view_mode.node.list_display + - field.field.node.landing_page.field_header_label - field.field.node.landing_page.field_media_image_single - field.field.node.landing_page.field_section - field.field.node.landing_page.field_show_page_title @@ -35,6 +36,7 @@ content: weight: 100 region: content hidden: + field_header_label: true field_media_image_single: true field_show_page_title: true field_teaser: true diff --git a/config/sync/core.entity_view_display.node.landing_page.teaser.yml b/config/sync/core.entity_view_display.node.landing_page.teaser.yml index 493835a50..12c44a6d6 100644 --- a/config/sync/core.entity_view_display.node.landing_page.teaser.yml +++ b/config/sync/core.entity_view_display.node.landing_page.teaser.yml @@ -4,6 +4,7 @@ status: false dependencies: config: - core.entity_view_mode.node.teaser + - field.field.node.landing_page.field_header_label - field.field.node.landing_page.field_media_image_single - field.field.node.landing_page.field_section - field.field.node.landing_page.field_show_page_title @@ -25,6 +26,7 @@ content: weight: 100 region: content hidden: + field_header_label: true field_media_image_single: true field_section: true field_show_page_title: true diff --git a/config/sync/core.entity_view_display.paragraph.video.default.yml b/config/sync/core.entity_view_display.paragraph.video.default.yml new file mode 100644 index 000000000..c5661cc24 --- /dev/null +++ b/config/sync/core.entity_view_display.paragraph.video.default.yml @@ -0,0 +1,28 @@ +uuid: bcfa2e49-6356-4c90-8573-b9486db67eb2 +langcode: da +status: true +dependencies: + config: + - field.field.paragraph.video.field_video + - paragraphs.paragraphs_type.video + module: + - itk_video +id: paragraph.video.default +targetEntityType: paragraph +bundle: video +mode: default +content: + field_video: + type: itk_video_formatter + label: hidden + settings: + trim_length: '80' + url_only: '' + url_plain: '' + rel: '' + target: '' + third_party_settings: { } + weight: 0 + region: content +hidden: + search_api_excerpt: true diff --git a/config/sync/core.entity_view_mode.comment.full.yml b/config/sync/core.entity_view_mode.comment.full.yml new file mode 100644 index 000000000..8e5eb1426 --- /dev/null +++ b/config/sync/core.entity_view_mode.comment.full.yml @@ -0,0 +1,13 @@ +uuid: fd260b7e-c515-4552-a39c-7e7abbe02b65 +langcode: da +status: false +dependencies: + module: + - comment +_core: + default_config_hash: N4mUjXpPckUkVRY1PbKw4GGoL1i2ECU7PL3EreiKStk +id: comment.full +label: 'Full comment' +description: '' +targetEntityType: comment +cache: true diff --git a/config/sync/core.entity_view_mode.comment.list_display.yml b/config/sync/core.entity_view_mode.comment.list_display.yml new file mode 100644 index 000000000..9a44469c9 --- /dev/null +++ b/config/sync/core.entity_view_mode.comment.list_display.yml @@ -0,0 +1,11 @@ +uuid: 539bb71d-926e-42ae-b7b8-031aabb863e2 +langcode: da +status: true +dependencies: + module: + - comment +id: comment.list_display +label: 'List display' +description: '' +targetEntityType: comment +cache: true diff --git a/config/sync/core.entity_view_mode.node.dialogue_proposal_add.yml b/config/sync/core.entity_view_mode.node.dialogue_proposal_add.yml new file mode 100644 index 000000000..8fbc40862 --- /dev/null +++ b/config/sync/core.entity_view_mode.node.dialogue_proposal_add.yml @@ -0,0 +1,11 @@ +uuid: fd61d20d-10f6-4496-98c2-74dd208a0272 +langcode: da +status: true +dependencies: + module: + - node +id: node.dialogue_proposal_add +label: 'Dialogue proposal add' +description: '' +targetEntityType: node +cache: true diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 11fb49ee0..4287ac84c 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -16,6 +16,7 @@ module: ckeditor5: 0 clamav: 0 color_field: 0 + comment: 0 config: 0 config_ignore: 0 config_import_locale: 0 @@ -40,7 +41,9 @@ module: field_group: 0 field_ui: 0 file: 0 + file_resup: 0 filter: 0 + flag: 0 hoeringsportal_audit_log: 0 hoeringsportal_citizen_proposal: 0 hoeringsportal_citizen_proposal_archiving: 0 @@ -49,12 +52,14 @@ module: hoeringsportal_content_blocks: 0 hoeringsportal_data: 0 hoeringsportal_deskpro: 0 + hoeringsportal_dialogue: 0 hoeringsportal_forms: 0 hoeringsportal_hearing: 0 hoeringsportal_openid_connect: 0 hoeringsportal_project_timeline: 0 hoeringsportal_public_meeting: 0 hoeringsportal_quicklinks: 0 + honeypot: 0 image: 0 image_captcha: 0 image_widget_crop: 0 @@ -62,10 +67,10 @@ module: inline_form_errors: 0 itk_admin: 0 itk_admin_links: 0 - itk_azure_video: 0 itk_media_entity: 0 itk_pretix: 0 itk_siteimprove: 0 + itk_video: 0 jquery_ui: 0 jsonapi: 0 language: 0 @@ -107,6 +112,7 @@ module: token: 0 token_filter: 0 toolbar: 0 + twig_extensions: 0 twig_tweak: 0 update: 0 user: 0 diff --git a/config/sync/field.field.comment.early_inclusion_comment.field_comment.yml b/config/sync/field.field.comment.early_inclusion_comment.field_comment.yml new file mode 100644 index 000000000..613b6a4a2 --- /dev/null +++ b/config/sync/field.field.comment.early_inclusion_comment.field_comment.yml @@ -0,0 +1,19 @@ +uuid: 87f0e9c1-2431-416b-85d2-a4d0dd653975 +langcode: da +status: true +dependencies: + config: + - comment.type.early_inclusion_comment + - field.storage.comment.field_comment +id: comment.early_inclusion_comment.field_comment +field_name: field_comment +entity_type: comment +bundle: early_inclusion_comment +label: comment +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long diff --git a/config/sync/field.field.node.dialogue.field_area.yml b/config/sync/field.field.node.dialogue.field_area.yml new file mode 100644 index 000000000..47067a682 --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_area.yml @@ -0,0 +1,29 @@ +uuid: e86b53b0-3cbc-4cf5-b4b3-415e2c9c1790 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_area + - node.type.dialogue + - taxonomy.vocabulary.area +id: node.dialogue.field_area +field_name: field_area +entity_type: node +bundle: dialogue +label: Område +description: 'Vælg områder som høringen dækker. Markér alle hvis høringen dækker hele kommunen.' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + area: area + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue.field_content_sections.yml b/config/sync/field.field.node.dialogue.field_content_sections.yml new file mode 100644 index 000000000..6bb65a772 --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_content_sections.yml @@ -0,0 +1,92 @@ +uuid: 716b1c0f-7bed-426f-ac0f-21ecbea4b9e9 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_content_sections + - node.type.dialogue + - paragraphs.paragraphs_type.content_block + - paragraphs.paragraphs_type.files + - paragraphs.paragraphs_type.image + - paragraphs.paragraphs_type.info_box + - paragraphs.paragraphs_type.introduction + - paragraphs.paragraphs_type.teaser_row + - paragraphs.paragraphs_type.text + - paragraphs.paragraphs_type.text_aside_blocks_2_column + - paragraphs.paragraphs_type.video + module: + - entity_reference_revisions +id: node.dialogue.field_content_sections +field_name: field_content_sections +entity_type: node +bundle: dialogue +label: 'Content sections' +description: 'Used to create page sections with the Drupal Paragraphs module' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + target_bundles: + text: text + image: image + content_block: content_block + text_aside_blocks_2_column: text_aside_blocks_2_column + info_box: info_box + introduction: introduction + teaser_row: teaser_row + files: files + video: video + negate: 0 + target_bundles_drag_drop: + content_block: + weight: -21 + enabled: true + content_list: + weight: -20 + enabled: false + content_promotion: + weight: 19 + enabled: false + files: + weight: 13 + enabled: true + image: + weight: -22 + enabled: true + info_box: + weight: -18 + enabled: true + introduction: + weight: -17 + enabled: true + link: + weight: 24 + enabled: false + links_on_a_background_image: + weight: 25 + enabled: false + projekt_billede_galleri: + weight: -16 + enabled: false + teaser_row: + weight: -15 + enabled: true + text: + weight: -23 + enabled: true + text_aside_blocks_2_column: + weight: -19 + enabled: true + timeline_items: + weight: -14 + enabled: false + timeline_period: + weight: -13 + enabled: false + video: + weight: 32 + enabled: true +field_type: entity_reference_revisions diff --git a/config/sync/field.field.node.dialogue.field_department.yml b/config/sync/field.field.node.dialogue.field_department.yml new file mode 100644 index 000000000..040047664 --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_department.yml @@ -0,0 +1,29 @@ +uuid: 044d78f6-c9ee-4849-8adf-dbee8e52c651 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_department + - node.type.dialogue + - taxonomy.vocabulary.department +id: node.dialogue.field_department +field_name: field_department +entity_type: node +bundle: dialogue +label: Department +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + department: department + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue.field_dialogue_proposal_category.yml b/config/sync/field.field.node.dialogue.field_dialogue_proposal_category.yml new file mode 100644 index 000000000..567b3138a --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_dialogue_proposal_category.yml @@ -0,0 +1,29 @@ +uuid: 6a65168c-d711-4b2e-939c-a768d42994d0 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue_proposal_category + - node.type.dialogue + - taxonomy.vocabulary.dialogue_proposal_categories +id: node.dialogue.field_dialogue_proposal_category +field_name: field_dialogue_proposal_category +entity_type: node +bundle: dialogue +label: 'Dialogue proposal category' +description: 'Select what categories should be available when creating a proposal' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + dialogue_proposal_categories: dialogue_proposal_categories + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue.field_dialogue_proposal_config.yml b/config/sync/field.field.node.dialogue.field_dialogue_proposal_config.yml new file mode 100644 index 000000000..81227f1bc --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_dialogue_proposal_config.yml @@ -0,0 +1,23 @@ +uuid: df8ff97b-0ffb-4140-b6aa-7ade4ee48844 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue_proposal_config + - node.type.dialogue + module: + - options +id: node.dialogue.field_dialogue_proposal_config +field_name: field_dialogue_proposal_config +entity_type: node +bundle: dialogue +label: 'Dialogue proposal config' +description: 'Configure proposals for this dialogue' +required: false +translatable: false +default_value: + - + value: public_proposals +default_value_callback: '' +settings: { } +field_type: list_string diff --git a/config/sync/field.field.node.dialogue.field_dialogue_proposal_location.yml b/config/sync/field.field.node.dialogue.field_dialogue_proposal_location.yml new file mode 100644 index 000000000..d5c4c848d --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_dialogue_proposal_location.yml @@ -0,0 +1,21 @@ +uuid: b7ccc207-b24c-4a49-b7e9-3355a10b5411 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue_proposal_location + - node.type.dialogue + module: + - hoeringsportal_data +id: node.dialogue.field_dialogue_proposal_location +field_name: field_dialogue_proposal_location +entity_type: node +bundle: dialogue +label: 'Dialogue proposal location' +description: 'Select where the map for proposals should be centered' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: hoeringsportal_data_map diff --git a/config/sync/field.field.node.dialogue.field_dialogue_proposal_zoom.yml b/config/sync/field.field.node.dialogue.field_dialogue_proposal_zoom.yml new file mode 100644 index 000000000..f3ae71fa5 --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_dialogue_proposal_zoom.yml @@ -0,0 +1,21 @@ +uuid: a1e62b49-9169-422e-b2ae-c21a93d4ed50 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue_proposal_zoom + - node.type.dialogue +id: node.dialogue.field_dialogue_proposal_zoom +field_name: field_dialogue_proposal_zoom +entity_type: node +bundle: dialogue +label: 'Dialogue proposal zoom' +description: 'Select the map zoom level on proposals. Higher numbers will zoom in. Default: 11' +required: false +translatable: false +default_value: + - + value: '11' +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.node.dialogue.field_teaser.yml b/config/sync/field.field.node.dialogue.field_teaser.yml new file mode 100644 index 000000000..4c4130f95 --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_teaser.yml @@ -0,0 +1,19 @@ +uuid: 756a4e78-f31f-4710-97a2-d16c7d6e6ffe +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_teaser + - node.type.dialogue +id: node.dialogue.field_teaser +field_name: field_teaser +entity_type: node +bundle: dialogue +label: Teaser/indledning +description: 'Kort tekst der vises i teasers og i toppen af indholdsviningen' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long diff --git a/config/sync/field.field.node.dialogue.field_top_images.yml b/config/sync/field.field.node.dialogue.field_top_images.yml new file mode 100644 index 000000000..0046d1e72 --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_top_images.yml @@ -0,0 +1,29 @@ +uuid: 14723400-9df1-44dc-857c-e3781286d7a8 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_top_images + - media.type.image + - node.type.dialogue +id: node.dialogue.field_top_images +field_name: field_top_images +entity_type: node +bundle: dialogue +label: 'Top images' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + image: image + sort: + field: _none + direction: ASC + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue.field_type.yml b/config/sync/field.field.node.dialogue.field_type.yml new file mode 100644 index 000000000..9bf3733ee --- /dev/null +++ b/config/sync/field.field.node.dialogue.field_type.yml @@ -0,0 +1,29 @@ +uuid: 9ce201bf-07b1-4bdd-9883-ee60b18f23a8 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_type + - node.type.dialogue + - taxonomy.vocabulary.type +id: node.dialogue.field_type +field_name: field_type +entity_type: node +bundle: dialogue +label: Type +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + type: type + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue_proposal.field_comments.yml b/config/sync/field.field.node.dialogue_proposal.field_comments.yml new file mode 100644 index 000000000..1a9da2d7c --- /dev/null +++ b/config/sync/field.field.node.dialogue_proposal.field_comments.yml @@ -0,0 +1,33 @@ +uuid: ebf3eedc-76fd-4b7c-ae51-a73851c2c11e +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_comments + - node.type.dialogue_proposal + module: + - comment +id: node.dialogue_proposal.field_comments +field_name: field_comments +entity_type: node +bundle: dialogue_proposal +label: Kommentarer +description: '' +required: false +translatable: false +default_value: + - + status: 2 + cid: 0 + last_comment_timestamp: 0 + last_comment_name: null + last_comment_uid: 0 + comment_count: 0 +default_value_callback: '' +settings: + default_mode: 1 + per_page: 50 + anonymous: 0 + form_location: true + preview: 0 +field_type: comment diff --git a/config/sync/field.field.node.dialogue_proposal.field_dialogue.yml b/config/sync/field.field.node.dialogue_proposal.field_dialogue.yml new file mode 100644 index 000000000..bc7b18b34 --- /dev/null +++ b/config/sync/field.field.node.dialogue_proposal.field_dialogue.yml @@ -0,0 +1,29 @@ +uuid: 8b82c11c-5e64-434f-bd26-3177e5010489 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue + - node.type.dialogue + - node.type.dialogue_proposal +id: node.dialogue_proposal.field_dialogue +field_name: field_dialogue +entity_type: node +bundle: dialogue_proposal +label: Dialogue +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + dialogue: dialogue + sort: + field: _none + direction: ASC + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue_proposal.field_dialogue_proposal_category.yml b/config/sync/field.field.node.dialogue_proposal.field_dialogue_proposal_category.yml new file mode 100644 index 000000000..80d591ca2 --- /dev/null +++ b/config/sync/field.field.node.dialogue_proposal.field_dialogue_proposal_category.yml @@ -0,0 +1,29 @@ +uuid: a65625f6-d5ea-40ff-aaac-a79a451b5e65 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue_proposal_category + - node.type.dialogue_proposal + - taxonomy.vocabulary.dialogue_proposal_categories +id: node.dialogue_proposal.field_dialogue_proposal_category +field_name: field_dialogue_proposal_category +entity_type: node +bundle: dialogue_proposal +label: 'Dialogue proposal category' +description: 'Select what categories should be available when creating a proposal' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:taxonomy_term' + handler_settings: + target_bundles: + dialogue_proposal_categories: dialogue_proposal_categories + sort: + field: name + direction: asc + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.dialogue_proposal.field_dialogue_proposal_descr.yml b/config/sync/field.field.node.dialogue_proposal.field_dialogue_proposal_descr.yml new file mode 100644 index 000000000..565112d8b --- /dev/null +++ b/config/sync/field.field.node.dialogue_proposal.field_dialogue_proposal_descr.yml @@ -0,0 +1,19 @@ +uuid: 6f55fb31-a502-4654-bfb3-5aad1fcad27d +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_dialogue_proposal_descr + - node.type.dialogue_proposal +id: node.dialogue_proposal.field_dialogue_proposal_descr +field_name: field_dialogue_proposal_descr +entity_type: node +bundle: dialogue_proposal +label: Description +description: 'Giv en kort beskrivelse af hvad dit forslag går ud på.' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string_long diff --git a/config/sync/field.field.node.dialogue_proposal.field_image_upload.yml b/config/sync/field.field.node.dialogue_proposal.field_image_upload.yml new file mode 100644 index 000000000..bc50a1fb4 --- /dev/null +++ b/config/sync/field.field.node.dialogue_proposal.field_image_upload.yml @@ -0,0 +1,44 @@ +uuid: 79f5d86f-f743-4057-b2e1-67476eab8caf +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_image_upload + - node.type.dialogue_proposal + module: + - file_resup + - image +third_party_settings: + file_resup: + enabled: 1 + max_upload_size: '10 MB' + auto_upload: 1 +id: node.dialogue_proposal.field_image_upload +field_name: field_image_upload +entity_type: node +bundle: dialogue_proposal +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:file' + handler_settings: { } + file_directory: dialogue_proposal + file_extensions: 'png gif jpg jpeg webp' + max_filesize: '10 MB' + max_resolution: '' + min_resolution: '' + alt_field: true + alt_field_required: false + title_field: false + title_field_required: true + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null +field_type: image diff --git a/config/sync/field.field.node.dialogue_proposal.field_location.yml b/config/sync/field.field.node.dialogue_proposal.field_location.yml new file mode 100644 index 000000000..9177d8987 --- /dev/null +++ b/config/sync/field.field.node.dialogue_proposal.field_location.yml @@ -0,0 +1,21 @@ +uuid: 4d92f1b3-0246-427c-be87-8f31ee0a0e7d +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_location + - node.type.dialogue_proposal + module: + - hoeringsportal_data +id: node.dialogue_proposal.field_location +field_name: field_location +entity_type: node +bundle: dialogue_proposal +label: Lokation +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: hoeringsportal_data_map diff --git a/config/sync/field.field.node.hearing.field_video_embed.yml b/config/sync/field.field.node.hearing.field_video_embed.yml deleted file mode 100644 index f4298bb2d..000000000 --- a/config/sync/field.field.node.hearing.field_video_embed.yml +++ /dev/null @@ -1,19 +0,0 @@ -uuid: 1aa234af-17a2-41b0-a056-8e94f5b5e8a4 -langcode: da -status: true -dependencies: - config: - - field.storage.node.field_video_embed - - node.type.hearing -id: node.hearing.field_video_embed -field_name: field_video_embed -entity_type: node -bundle: hearing -label: 'Video embed' -description: "Tilføj video embed code.\r\nDet er redaktørens ansvar at videoen overholder kommunens GDPR retningslinjer. \r\nHvis du er i tvivl kan du spørge den GDPR ansvarlige i din afdeling." -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string_long diff --git a/config/sync/field.field.node.landing_page.field_header_label.yml b/config/sync/field.field.node.landing_page.field_header_label.yml new file mode 100644 index 000000000..919bed31e --- /dev/null +++ b/config/sync/field.field.node.landing_page.field_header_label.yml @@ -0,0 +1,19 @@ +uuid: e344c1a9-c6bf-4a9f-871d-2180d74ff354 +langcode: da +status: true +dependencies: + config: + - field.storage.node.field_header_label + - node.type.landing_page +id: node.landing_page.field_header_label +field_name: field_header_label +entity_type: node +bundle: landing_page +label: 'Header label' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.paragraph.content_list.field_content_list.yml b/config/sync/field.field.paragraph.content_list.field_content_list.yml index c16e0825e..0d6c560f6 100644 --- a/config/sync/field.field.paragraph.content_list.field_content_list.yml +++ b/config/sync/field.field.paragraph.content_list.field_content_list.yml @@ -26,12 +26,13 @@ settings: default: default preselect_views: all_citizen_proposals: all_citizen_proposals + all_early_inclusion: all_early_inclusion all_hearings: all_hearings all_meetings: all_meetings all_projects: all_projects - latest_public_meetings: latest_public_meetings latest_citizen_proposals: latest_citizen_proposals latest_hearings: latest_hearings latest_projects: latest_projects + latest_public_meetings: latest_public_meetings enabled_settings: { } field_type: viewsreference diff --git a/config/sync/field.field.paragraph.video.field_video.yml b/config/sync/field.field.paragraph.video.field_video.yml new file mode 100644 index 000000000..844c97a36 --- /dev/null +++ b/config/sync/field.field.paragraph.video.field_video.yml @@ -0,0 +1,23 @@ +uuid: 30b5793a-c448-4250-904d-f6966107a3b1 +langcode: da +status: true +dependencies: + config: + - field.storage.paragraph.field_video + - paragraphs.paragraphs_type.video + module: + - itk_video +id: paragraph.video.field_video +field_name: field_video +entity_type: paragraph +bundle: video +label: Video +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 2 + link_type: 16 +field_type: itk_video_field diff --git a/config/sync/field.storage.comment.comment_body.yml b/config/sync/field.storage.comment.comment_body.yml new file mode 100644 index 000000000..77d246737 --- /dev/null +++ b/config/sync/field.storage.comment.comment_body.yml @@ -0,0 +1,21 @@ +uuid: bb5ea8e1-e885-4d11-87d7-1779acca97bc +langcode: en +status: true +dependencies: + module: + - comment + - text +_core: + default_config_hash: swYoCch_hY8QO5uwr4FURplfnUCUlpPB4idF8WGVCpw +id: comment.comment_body +field_name: comment_body +entity_type: comment +type: text_long +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: true +custom_storage: false diff --git a/config/sync/field.storage.comment.field_comment.yml b/config/sync/field.storage.comment.field_comment.yml new file mode 100644 index 000000000..d6d185369 --- /dev/null +++ b/config/sync/field.storage.comment.field_comment.yml @@ -0,0 +1,19 @@ +uuid: e803b6ce-6a6d-40ac-8d92-c1bb85a7019c +langcode: da +status: true +dependencies: + module: + - comment +id: comment.field_comment +field_name: field_comment +entity_type: comment +type: string_long +settings: + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_comments.yml b/config/sync/field.storage.node.field_comments.yml new file mode 100644 index 000000000..fb12dd367 --- /dev/null +++ b/config/sync/field.storage.node.field_comments.yml @@ -0,0 +1,20 @@ +uuid: 1bd0bf5e-9346-4d34-8924-fd4a4e2eecc2 +langcode: da +status: true +dependencies: + module: + - comment + - node +id: node.field_comments +field_name: field_comments +entity_type: node +type: comment +settings: + comment_type: early_inclusion_comment +module: comment +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_dialogue.yml b/config/sync/field.storage.node.field_dialogue.yml new file mode 100644 index 000000000..85d12483b --- /dev/null +++ b/config/sync/field.storage.node.field_dialogue.yml @@ -0,0 +1,19 @@ +uuid: 9ba38990-85d3-4791-bf26-1886d1327d83 +langcode: da +status: true +dependencies: + module: + - node +id: node.field_dialogue +field_name: field_dialogue +entity_type: node +type: entity_reference +settings: + target_type: node +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_dialogue_proposal_category.yml b/config/sync/field.storage.node.field_dialogue_proposal_category.yml new file mode 100644 index 000000000..8d6d8db39 --- /dev/null +++ b/config/sync/field.storage.node.field_dialogue_proposal_category.yml @@ -0,0 +1,20 @@ +uuid: be5af7f9-c5ae-4caf-919c-6fee60dbd6ee +langcode: da +status: true +dependencies: + module: + - node + - taxonomy +id: node.field_dialogue_proposal_category +field_name: field_dialogue_proposal_category +entity_type: node +type: entity_reference +settings: + target_type: taxonomy_term +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_dialogue_proposal_config.yml b/config/sync/field.storage.node.field_dialogue_proposal_config.yml new file mode 100644 index 000000000..250ec7b35 --- /dev/null +++ b/config/sync/field.storage.node.field_dialogue_proposal_config.yml @@ -0,0 +1,30 @@ +uuid: 96bdb878-857c-4661-b30a-f19ce160d247 +langcode: da +status: true +dependencies: + module: + - node + - options +id: node.field_dialogue_proposal_config +field_name: field_dialogue_proposal_config +entity_type: node +type: list_string +settings: + allowed_values: + - + value: public_proposals + label: 'Open proposals for public' + - + value: use_map_on_proposals + label: 'Use map on proposals' + - + value: use_image_on_proposals + label: 'Use image on proposals' + allowed_values_function: '' +module: options +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_video_embed.yml b/config/sync/field.storage.node.field_dialogue_proposal_descr.yml similarity index 63% rename from config/sync/field.storage.node.field_video_embed.yml rename to config/sync/field.storage.node.field_dialogue_proposal_descr.yml index 7461886a8..50eff79f2 100644 --- a/config/sync/field.storage.node.field_video_embed.yml +++ b/config/sync/field.storage.node.field_dialogue_proposal_descr.yml @@ -1,18 +1,18 @@ -uuid: afb78f06-e87b-4a00-9450-f10ad0f25ed7 +uuid: 3f761a8b-9573-4d37-b0b3-b2d2634d120c langcode: da status: true dependencies: module: - node -id: node.field_video_embed -field_name: field_video_embed +id: node.field_dialogue_proposal_descr +field_name: field_dialogue_proposal_descr entity_type: node type: string_long settings: case_sensitive: false module: core locked: false -cardinality: -1 +cardinality: 1 translatable: true indexes: { } persist_with_no_fields: false diff --git a/config/sync/field.storage.node.field_dialogue_proposal_location.yml b/config/sync/field.storage.node.field_dialogue_proposal_location.yml new file mode 100644 index 000000000..67091fc00 --- /dev/null +++ b/config/sync/field.storage.node.field_dialogue_proposal_location.yml @@ -0,0 +1,19 @@ +uuid: 66d58409-3170-4894-be89-b6c9db159023 +langcode: da +status: true +dependencies: + module: + - hoeringsportal_data + - node +id: node.field_dialogue_proposal_location +field_name: field_dialogue_proposal_location +entity_type: node +type: hoeringsportal_data_map +settings: { } +module: hoeringsportal_data +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_dialogue_proposal_zoom.yml b/config/sync/field.storage.node.field_dialogue_proposal_zoom.yml new file mode 100644 index 000000000..6add5b7f8 --- /dev/null +++ b/config/sync/field.storage.node.field_dialogue_proposal_zoom.yml @@ -0,0 +1,21 @@ +uuid: e104fecd-11ab-4614-b241-a36ddb43bccb +langcode: da +status: true +dependencies: + module: + - node +id: node.field_dialogue_proposal_zoom +field_name: field_dialogue_proposal_zoom +entity_type: node +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_header_label.yml b/config/sync/field.storage.node.field_header_label.yml new file mode 100644 index 000000000..af6909607 --- /dev/null +++ b/config/sync/field.storage.node.field_header_label.yml @@ -0,0 +1,21 @@ +uuid: 43dbede9-fdeb-4dff-b754-f1d83a8f1701 +langcode: da +status: true +dependencies: + module: + - node +id: node.field_header_label +field_name: field_header_label +entity_type: node +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_image_upload.yml b/config/sync/field.storage.node.field_image_upload.yml new file mode 100644 index 000000000..fedeb6b60 --- /dev/null +++ b/config/sync/field.storage.node.field_image_upload.yml @@ -0,0 +1,30 @@ +uuid: 0f772c99-c0a2-4685-b305-6e326bc139ca +langcode: da +status: true +dependencies: + module: + - file + - image + - node +id: node.field_image_upload +field_name: field_image_upload +entity_type: node +type: image +settings: + target_type: file + display_field: false + display_default: true + uri_scheme: public + default_image: + uuid: '' + alt: '' + title: '' + width: null + height: null +module: image +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_location.yml b/config/sync/field.storage.node.field_location.yml new file mode 100644 index 000000000..bf66a5b86 --- /dev/null +++ b/config/sync/field.storage.node.field_location.yml @@ -0,0 +1,19 @@ +uuid: 42f42b9f-d15b-4d7f-9cf0-377d7398a489 +langcode: da +status: true +dependencies: + module: + - hoeringsportal_data + - node +id: node.field_location +field_name: field_location +entity_type: node +type: hoeringsportal_data_map +settings: { } +module: hoeringsportal_data +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_top_images.yml b/config/sync/field.storage.node.field_top_images.yml new file mode 100644 index 000000000..48ef6eea1 --- /dev/null +++ b/config/sync/field.storage.node.field_top_images.yml @@ -0,0 +1,20 @@ +uuid: c1aaeea1-ac45-4f47-9ae2-c49fd3d95a0e +langcode: da +status: true +dependencies: + module: + - media + - node +id: node.field_top_images +field_name: field_top_images +entity_type: node +type: entity_reference +settings: + target_type: media +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_type.yml b/config/sync/field.storage.node.field_type.yml index 749d7c662..0db7573e5 100644 --- a/config/sync/field.storage.node.field_type.yml +++ b/config/sync/field.storage.node.field_type.yml @@ -13,7 +13,7 @@ settings: target_type: taxonomy_term module: core locked: false -cardinality: 1 +cardinality: -1 translatable: true indexes: { } persist_with_no_fields: false diff --git a/config/sync/field.storage.paragraph.field_video.yml b/config/sync/field.storage.paragraph.field_video.yml new file mode 100644 index 000000000..50ddde77b --- /dev/null +++ b/config/sync/field.storage.paragraph.field_video.yml @@ -0,0 +1,19 @@ +uuid: d229a16d-72e3-47c9-bf1e-55b59f915cd3 +langcode: da +status: true +dependencies: + module: + - itk_video + - paragraphs +id: paragraph.field_video +field_name: field_video +entity_type: paragraph +type: itk_video_field +settings: { } +module: itk_video +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/flag.flag.support_comment.yml b/config/sync/flag.flag.support_comment.yml new file mode 100644 index 000000000..92e4a5f89 --- /dev/null +++ b/config/sync/flag.flag.support_comment.yml @@ -0,0 +1,31 @@ +uuid: d73f54ce-236a-43a2-9517-ea0fd72ba041 +langcode: da +status: true +dependencies: + module: + - comment +id: support_comment +label: 'Support comment' +bundles: + - early_inclusion_comment +entity_type: comment +global: false +flag_short: Like +flag_long: '' +flag_message: '' +unflag_short: 'Remove like' +unflag_long: '' +unflag_message: '' +unflag_denied_text: '' +weight: 0 +flag_type: 'entity:comment' +link_type: ajax_link +flagTypeConfig: + show_in_links: { } + show_as_field: true + show_on_form: false + show_contextual_link: false + extra_permissions: + owner: '0' + parent_owner: '0' +linkTypeConfig: { } diff --git a/config/sync/flag.flag.support_proposal.yml b/config/sync/flag.flag.support_proposal.yml new file mode 100644 index 000000000..cf7c27aaf --- /dev/null +++ b/config/sync/flag.flag.support_proposal.yml @@ -0,0 +1,30 @@ +uuid: d239eea9-827f-4d15-9597-9bf42b1aa35e +langcode: da +status: true +dependencies: + module: + - node +id: support_proposal +label: 'Support proposal' +bundles: + - dialogue_proposal +entity_type: node +global: false +flag_short: 'Support proposal' +flag_long: '' +flag_message: '' +unflag_short: 'Remove support' +unflag_long: '' +unflag_message: '' +unflag_denied_text: '' +weight: 0 +flag_type: 'entity:node' +link_type: ajax_link +flagTypeConfig: + show_in_links: { } + show_as_field: true + show_on_form: false + show_contextual_link: false + extra_permissions: + owner: '0' +linkTypeConfig: { } diff --git a/config/sync/honeypot.settings.yml b/config/sync/honeypot.settings.yml new file mode 100644 index 000000000..aa1311b37 --- /dev/null +++ b/config/sync/honeypot.settings.yml @@ -0,0 +1,18 @@ +_core: + default_config_hash: 9bVDfWSa_In6VzTXmy04jJ_3ZQobihKjO9isuuUCPaw +unprotected_forms: + - user_login_form + - search_form + - search_block_form + - views_exposed_form + - honeypot_settings_form +protect_all_forms: false +log: false +element_name: url +time_limit: 5 +expire: 300 +form_settings: + user_register_form: false + user_pass: false + feedback_contact_message_form: false + _contact_message_form: false diff --git a/config/sync/image_captcha.settings.yml b/config/sync/image_captcha.settings.yml index 58f5479dc..4018c5dd9 100644 --- a/config/sync/image_captcha.settings.yml +++ b/config/sync/image_captcha.settings.yml @@ -1,21 +1,33 @@ _core: default_config_hash: PBJAPRAqH-w00jAUXbD9qV6frVT38tI1oXZiBIjV8gU langcode: da -image_captcha_fonts_preview_map_cache: { } +image_captcha_fonts_preview_map_cache: + 3dbed886c81a681a313bc6297f53db5699401194490d38621f05c7bdf06cf1f5: + uri: modules/contrib/captcha/modules/image_captcha/fonts/Tuffy/Tuffy.ttf + filename: Tuffy.ttf + name: Tuffy + c4e145adf0facb2a37cdc58551af9a93a5232c722a278c14e6b3a89cf0224586: + uri: modules/contrib/captcha/modules/image_captcha/fonts/Tuffy/Tuffy_Bold.ttf + filename: Tuffy_Bold.ttf + name: Tuffy_Bold + 986462a9e165423b12587d83a363091b837f54db5d7337cb3da3f97f54104fbb: + uri: modules/contrib/captcha/modules/image_captcha/fonts/Tesox/tesox.ttf + filename: tesox.ttf + name: tesox image_captcha_fonts: - - 93aff9384590ba3dfc5016582d39a5220435b22a8a12271aaee869b9cbdf7891 - - 41c10afec522f4850ec2a21eeac3cc590a8d3800c3065f7293101d63f580d3eb + BUILTIN: BUILTIN image_captcha_font_size: 30 -image_captcha_character_spacing: '1.2' +image_captcha_character_spacing: '0.75' image_captcha_image_allowed_chars: aAbBCdEeFfGHhijKLMmNPQRrSTtWXYZ23456789 image_captcha_code_length: 5 image_captcha_rtl_support: 0 image_captcha_background_color: '#ffffff' image_captcha_foreground_color: '#000000' -image_captcha_foreground_color_randomness: 100 +image_captcha_foreground_color_randomness: 150 image_captcha_file_format: 1 -image_captcha_distortion_amplitude: 0 +image_captcha_distortion_amplitude: 3 image_captcha_bilinear_interpolation: 0 image_captcha_dot_noise: 0 image_captcha_line_noise: 0 -image_captcha_noise_level: 5 +image_captcha_noise_level: 7 +image_captcha_text_refresh: Ny diff --git a/config/sync/itk_video.settings.yml b/config/sync/itk_video.settings.yml new file mode 100644 index 000000000..590531903 --- /dev/null +++ b/config/sync/itk_video.settings.yml @@ -0,0 +1,4 @@ +respect_cookie_information: 1 +providers_status: + video_tool: true + vimeo: false diff --git a/config/sync/language.content_settings.node.dialogue.yml b/config/sync/language.content_settings.node.dialogue.yml new file mode 100644 index 000000000..2557ea160 --- /dev/null +++ b/config/sync/language.content_settings.node.dialogue.yml @@ -0,0 +1,11 @@ +uuid: 04369832-085c-4a61-a229-0c1089a1a43f +langcode: da +status: true +dependencies: + config: + - node.type.dialogue +id: node.dialogue +target_entity_type_id: node +target_bundle: dialogue +default_langcode: site_default +language_alterable: false diff --git a/config/sync/language.content_settings.node.dialogue_proposal.yml b/config/sync/language.content_settings.node.dialogue_proposal.yml new file mode 100644 index 000000000..b35ec139d --- /dev/null +++ b/config/sync/language.content_settings.node.dialogue_proposal.yml @@ -0,0 +1,11 @@ +uuid: 39ac6aa7-df64-4c53-b574-ceba2145fb8e +langcode: da +status: true +dependencies: + config: + - node.type.dialogue_proposal +id: node.dialogue_proposal +target_entity_type_id: node +target_bundle: dialogue_proposal +default_langcode: site_default +language_alterable: false diff --git a/config/sync/language.content_settings.taxonomy_term.dialogue_proposal_categories.yml b/config/sync/language.content_settings.taxonomy_term.dialogue_proposal_categories.yml new file mode 100644 index 000000000..c9d0abd2a --- /dev/null +++ b/config/sync/language.content_settings.taxonomy_term.dialogue_proposal_categories.yml @@ -0,0 +1,11 @@ +uuid: 2c825d52-6b03-4d43-852c-7a9b3bead69d +langcode: da +status: true +dependencies: + config: + - taxonomy.vocabulary.dialogue_proposal_categories +id: taxonomy_term.dialogue_proposal_categories +target_entity_type_id: taxonomy_term +target_bundle: dialogue_proposal_categories +default_langcode: site_default +language_alterable: false diff --git a/config/sync/node.type.dialogue.yml b/config/sync/node.type.dialogue.yml new file mode 100644 index 000000000..81d1512d0 --- /dev/null +++ b/config/sync/node.type.dialogue.yml @@ -0,0 +1,18 @@ +uuid: fc4629cb-e6a2-440b-8f00-6c542c529b85 +langcode: da +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Dialog +type: dialogue +description: 'Indholdstype til oprettelse af dialog. Bruges til at give borgerne mulighed for tidlig inddragelse igennem kommentarer.' +help: null +new_revision: false +preview_mode: 0 +display_submitted: false diff --git a/config/sync/node.type.dialogue_proposal.yml b/config/sync/node.type.dialogue_proposal.yml new file mode 100644 index 000000000..a6a1ab123 --- /dev/null +++ b/config/sync/node.type.dialogue_proposal.yml @@ -0,0 +1,17 @@ +uuid: 5fc34435-1da6-4881-a011-7bf917fe44a5 +langcode: da +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: { } + parent: '' +name: Dialogforslag +type: dialogue_proposal +description: 'A proposal related to a dialogue' +help: null +new_revision: false +preview_mode: 0 +display_submitted: false diff --git a/config/sync/paragraphs.paragraphs_type.video.yml b/config/sync/paragraphs.paragraphs_type.video.yml new file mode 100644 index 000000000..fc923697b --- /dev/null +++ b/config/sync/paragraphs.paragraphs_type.video.yml @@ -0,0 +1,10 @@ +uuid: 2fb3e16c-e932-4e71-9662-623ac4744501 +langcode: da +status: true +dependencies: { } +id: video +label: Video +icon_uuid: null +icon_default: null +description: 'A Video Tool video.' +behavior_plugins: { } diff --git a/config/sync/system.action.comment_delete_action.yml b/config/sync/system.action.comment_delete_action.yml new file mode 100644 index 000000000..a64b4c9c3 --- /dev/null +++ b/config/sync/system.action.comment_delete_action.yml @@ -0,0 +1,13 @@ +uuid: 86401a23-de74-44e4-80b3-4b8733ed1719 +langcode: da +status: true +dependencies: + module: + - comment +_core: + default_config_hash: vpBH8OmL4sdesCdeZLsW8KOutB5gkbreWJbfjhfFKaQ +id: comment_delete_action +label: 'Delete comment' +type: comment +plugin: 'entity:delete_action:comment' +configuration: { } diff --git a/config/sync/system.action.comment_publish_action.yml b/config/sync/system.action.comment_publish_action.yml new file mode 100644 index 000000000..3dce38305 --- /dev/null +++ b/config/sync/system.action.comment_publish_action.yml @@ -0,0 +1,13 @@ +uuid: 46f63598-d2f1-4c5e-9886-612627a9df2d +langcode: da +status: true +dependencies: + module: + - comment +_core: + default_config_hash: C00dyL_W_5M0nFlgUB3lWUTUs96jn51Jw1MLHVEHZD0 +id: comment_publish_action +label: 'Publish comment' +type: comment +plugin: 'entity:publish_action:comment' +configuration: { } diff --git a/config/sync/system.action.comment_save_action.yml b/config/sync/system.action.comment_save_action.yml new file mode 100644 index 000000000..f9f556493 --- /dev/null +++ b/config/sync/system.action.comment_save_action.yml @@ -0,0 +1,13 @@ +uuid: 58697d20-ea91-4dd3-a964-2c43d485570b +langcode: da +status: true +dependencies: + module: + - comment +_core: + default_config_hash: lfyE_snmvfg_EQ3VDyhUtGAXgmqtEiqa46I3bTMg8DU +id: comment_save_action +label: 'Save comment' +type: comment +plugin: 'entity:save_action:comment' +configuration: { } diff --git a/config/sync/system.action.comment_unpublish_action.yml b/config/sync/system.action.comment_unpublish_action.yml new file mode 100644 index 000000000..9c391dc1c --- /dev/null +++ b/config/sync/system.action.comment_unpublish_action.yml @@ -0,0 +1,13 @@ +uuid: d9a354b5-f593-4511-810d-df7aed9fa6d4 +langcode: da +status: true +dependencies: + module: + - comment +_core: + default_config_hash: tWOIjSMobEWOFZddMkNqb9JySbOVwE1diC6NRqcfLTk +id: comment_unpublish_action +label: 'Unpublish comment' +type: comment +plugin: 'entity:unpublish_action:comment' +configuration: { } diff --git a/config/sync/system.action.flag_action.support_comment_flag.yml b/config/sync/system.action.flag_action.support_comment_flag.yml new file mode 100644 index 000000000..c39159d38 --- /dev/null +++ b/config/sync/system.action.flag_action.support_comment_flag.yml @@ -0,0 +1,15 @@ +uuid: 13df67ae-1078-4867-991f-9f77003899d7 +langcode: da +status: true +dependencies: + config: + - flag.flag.support_comment + module: + - flag +id: flag_action.support_comment_flag +label: Like +type: comment +plugin: 'flag_action:support_comment_flag' +configuration: + flag_id: support_comment + flag_action: flag diff --git a/config/sync/system.action.flag_action.support_comment_unflag.yml b/config/sync/system.action.flag_action.support_comment_unflag.yml new file mode 100644 index 000000000..76f22c4a9 --- /dev/null +++ b/config/sync/system.action.flag_action.support_comment_unflag.yml @@ -0,0 +1,15 @@ +uuid: e7a440bf-ed63-44f0-a372-fd5a70587ec9 +langcode: da +status: true +dependencies: + config: + - flag.flag.support_comment + module: + - flag +id: flag_action.support_comment_unflag +label: 'Remove like' +type: comment +plugin: 'flag_action:support_comment_unflag' +configuration: + flag_id: support_comment + flag_action: unflag diff --git a/config/sync/system.action.flag_action.support_proposal_flag.yml b/config/sync/system.action.flag_action.support_proposal_flag.yml new file mode 100644 index 000000000..20d20f5c5 --- /dev/null +++ b/config/sync/system.action.flag_action.support_proposal_flag.yml @@ -0,0 +1,15 @@ +uuid: c51fbee9-19b1-4928-86af-614baff1902d +langcode: da +status: true +dependencies: + config: + - flag.flag.support_proposal + module: + - flag +id: flag_action.support_proposal_flag +label: 'Support proposal' +type: node +plugin: 'flag_action:support_proposal_flag' +configuration: + flag_id: support_proposal + flag_action: flag diff --git a/config/sync/system.action.flag_action.support_proposal_unflag.yml b/config/sync/system.action.flag_action.support_proposal_unflag.yml new file mode 100644 index 000000000..713d0dd9a --- /dev/null +++ b/config/sync/system.action.flag_action.support_proposal_unflag.yml @@ -0,0 +1,15 @@ +uuid: cf1166cb-1155-4c26-adcc-409d6e24361f +langcode: da +status: true +dependencies: + config: + - flag.flag.support_proposal + module: + - flag +id: flag_action.support_proposal_unflag +label: 'Remove support' +type: node +plugin: 'flag_action:support_proposal_unflag' +configuration: + flag_id: support_proposal + flag_action: unflag diff --git a/config/sync/system.action.flag_delete_flagging.yml b/config/sync/system.action.flag_delete_flagging.yml new file mode 100644 index 000000000..a6ce3019b --- /dev/null +++ b/config/sync/system.action.flag_delete_flagging.yml @@ -0,0 +1,13 @@ +uuid: bd6c7411-0f6d-4b8a-b125-e6e3fdfe7f14 +langcode: da +status: true +dependencies: + module: + - flag +_core: + default_config_hash: Z9dGFmjyQgZjDwdsI-Mmgd2tZkUsjYi7cOSUPqjXPtw +id: flag_delete_flagging +label: 'Delete flagging' +type: flagging +plugin: flag_delete_flagging +configuration: { } diff --git a/config/sync/system.action.user_add_role_action.dialogue_editor.yml b/config/sync/system.action.user_add_role_action.dialogue_editor.yml new file mode 100644 index 000000000..f5bf9e70c --- /dev/null +++ b/config/sync/system.action.user_add_role_action.dialogue_editor.yml @@ -0,0 +1,14 @@ +uuid: e6787a25-5d50-4525-9946-b61d6b81d00d +langcode: da +status: true +dependencies: + config: + - user.role.dialogue_editor + module: + - user +id: user_add_role_action.dialogue_editor +label: 'Add the Dialog redaktør role to the selected user(s)' +type: user +plugin: user_add_role_action +configuration: + rid: dialogue_editor diff --git a/config/sync/system.action.user_remove_role_action.dialogue_editor.yml b/config/sync/system.action.user_remove_role_action.dialogue_editor.yml new file mode 100644 index 000000000..808790add --- /dev/null +++ b/config/sync/system.action.user_remove_role_action.dialogue_editor.yml @@ -0,0 +1,14 @@ +uuid: f01672eb-cca0-4ae3-9f8f-d3e18d613abb +langcode: da +status: true +dependencies: + config: + - user.role.dialogue_editor + module: + - user +id: user_remove_role_action.dialogue_editor +label: 'Remove the Dialog redaktør role from the selected user(s)' +type: user +plugin: user_remove_role_action +configuration: + rid: dialogue_editor diff --git a/config/sync/system.performance.yml b/config/sync/system.performance.yml index 1cfbe632a..8c056484a 100644 --- a/config/sync/system.performance.yml +++ b/config/sync/system.performance.yml @@ -5,7 +5,7 @@ cache: page: max_age: 0 css: - preprocess: true + preprocess: false gzip: true fast_404: enabled: true @@ -13,6 +13,6 @@ fast_404: exclude_paths: '/\/(?:styles|imagecache)\//' html: '
The requested URL "@path" was not found on this server.
' js: - preprocess: true + preprocess: false gzip: true stale_file_threshold: 2592000 diff --git a/config/sync/taxonomy.vocabulary.dialogue_proposal_categories.yml b/config/sync/taxonomy.vocabulary.dialogue_proposal_categories.yml new file mode 100644 index 000000000..c735058dd --- /dev/null +++ b/config/sync/taxonomy.vocabulary.dialogue_proposal_categories.yml @@ -0,0 +1,9 @@ +uuid: fd8f82ed-4dd1-4c3a-853c-20c3a8442f1f +langcode: da +status: true +dependencies: { } +name: 'Dialogue proposal categories' +vid: dialogue_proposal_categories +description: null +weight: 0 +new_revision: false diff --git a/config/sync/user.role.administrator.yml b/config/sync/user.role.administrator.yml index 4bbadad78..a423b067d 100644 --- a/config/sync/user.role.administrator.yml +++ b/config/sync/user.role.administrator.yml @@ -30,7 +30,7 @@ dependencies: - toolbar id: administrator label: Administrator -weight: -6 +weight: -7 is_admin: null permissions: - 'access administration pages' diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml index 487eca357..dfd62dc1a 100644 --- a/config/sync/user.role.anonymous.yml +++ b/config/sync/user.role.anonymous.yml @@ -4,9 +4,11 @@ status: true dependencies: config: - filter.format.citizen_proposal_content + - node.type.dialogue_proposal module: - filter - media + - node - system _core: default_config_hash: j5zLMOdJBqC0bMvSdth5UebkprJB8g_2FXHqhfpJzow @@ -16,5 +18,6 @@ weight: -10 is_admin: false permissions: - 'access content' + - 'create dialogue_proposal content' - 'use text format citizen_proposal_content' - 'view media' diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index e7ff8db0d..5978bb816 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -6,10 +6,12 @@ dependencies: - filter.format.citizen_proposal_content - filter.format.filtered_html - filter.format.hearing_description + - node.type.dialogue_proposal module: - file - filter - media + - node - system _core: default_config_hash: dJ0L2DNSj5q6XVZAGsuVDpJTh5UeYkIPwKrUOOpr8YI @@ -19,6 +21,7 @@ weight: -9 is_admin: false permissions: - 'access content' + - 'create dialogue_proposal content' - 'delete own files' - 'use text format citizen_proposal_content' - 'use text format filtered_html' diff --git a/config/sync/user.role.dialogue_editor.yml b/config/sync/user.role.dialogue_editor.yml new file mode 100644 index 000000000..7993be328 --- /dev/null +++ b/config/sync/user.role.dialogue_editor.yml @@ -0,0 +1,30 @@ +uuid: 6d277b75-4cc2-4ed8-b965-cffa22e4b5f7 +langcode: da +status: true +dependencies: + config: + - node.type.dialogue + - node.type.dialogue_proposal + module: + - node + - quick_node_clone + - view_unpublished +id: dialogue_editor +label: Dialogredaktør +weight: -4 +is_admin: null +permissions: + - 'clone dialogue content' + - 'clone dialogue_proposal content' + - 'create dialogue content' + - 'delete any dialogue content' + - 'delete any dialogue_proposal content' + - 'delete dialogue revisions' + - 'delete own dialogue content' + - 'edit any dialogue content' + - 'edit any dialogue_proposal content' + - 'edit own dialogue content' + - 'revert dialogue revisions' + - 'view any unpublished dialogue content' + - 'view any unpublished dialogue_proposal content' + - 'view dialogue revisions' diff --git a/config/sync/user.role.hearing_editor.yml b/config/sync/user.role.hearing_editor.yml index 320021696..853047199 100644 --- a/config/sync/user.role.hearing_editor.yml +++ b/config/sync/user.role.hearing_editor.yml @@ -23,7 +23,7 @@ dependencies: - view_unpublished id: hearing_editor label: Høringsredaktør -weight: -5 +weight: -6 is_admin: null permissions: - 'access content overview' diff --git a/config/sync/user.role.page_editor.yml b/config/sync/user.role.page_editor.yml index 7ffdfeefe..dfc335354 100644 --- a/config/sync/user.role.page_editor.yml +++ b/config/sync/user.role.page_editor.yml @@ -22,7 +22,7 @@ dependencies: - view_unpublished id: page_editor label: Sideredaktør -weight: -3 +weight: -2 is_admin: null permissions: - 'access content overview' diff --git a/config/sync/user.role.public_meeting_editor.yml b/config/sync/user.role.public_meeting_editor.yml index 6f6c74de1..f89f2291b 100644 --- a/config/sync/user.role.public_meeting_editor.yml +++ b/config/sync/user.role.public_meeting_editor.yml @@ -23,7 +23,7 @@ dependencies: - view_unpublished id: public_meeting_editor label: Begivenhedsredaktør -weight: -4 +weight: -3 is_admin: null permissions: - 'access content overview' diff --git a/config/sync/views.view.all_early_inclusion.yml b/config/sync/views.view.all_early_inclusion.yml new file mode 100644 index 000000000..93cab80df --- /dev/null +++ b/config/sync/views.view.all_early_inclusion.yml @@ -0,0 +1,323 @@ +uuid: 9153b384-41a7-4502-afd8-630148012a6d +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - node.type.dialogue + - taxonomy.vocabulary.area + module: + - better_exposed_filters + - node + - taxonomy + - user +id: all_early_inclusion +label: 'Alle tidlig dialog' +module: views +description: 'En liste af alle projekter' +tag: '' +base_table: node_field_data +base_field: nid +display: + default: + id: default + display_title: Master + display_plugin: default + position: 0 + display_options: + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + make_link: false + absolute: false + word_boundary: false + ellipsis: false + strip_tags: false + trim: false + 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 + pager: + type: full + options: + offset: 0 + pagination_heading_level: h4 + items_per_page: 15 + total_pages: null + id: 0 + tags: + next: ›› + previous: ‹‹ + first: '« First' + last: 'Last »' + 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 + quantity: 9 + exposed_form: + type: bef + 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 + input_required: false + text_input_required: 'Vælg et filter og klik på Anvend for at se resultater' + text_input_required_format: filtered_html + bef: + general: + autosubmit: true + autosubmit_exclude_textfield: true + autosubmit_textfield_delay: 500 + autosubmit_textfield_minimum_length: 3 + autosubmit_hide: true + input_required: false + allow_secondary: false + secondary_label: 'Avancerede indstillinger' + secondary_open: false + text_input_required: 'Vælg et filter og klik på Anvend for at se resultater' + text_input_required_format: basic_html + reset_button_always_show: false + filter: + field_area_target_id: + plugin_id: default + advanced: + sort_options: false + rewrite: + filter_rewrite_values: "- Any -|Område\r\n- Enhver -|Vælg område" + filter_rewrite_values_key: false + collapsible: false + collapsible_disable_automatic_open: false + is_secondary: false + hide_label: true + field_project_category_target_id: + plugin_id: default + advanced: + sort_options: false + rewrite: + filter_rewrite_values: "- Any -|Alle\r\n- Enhver -|Alle" + filter_rewrite_values_key: false + collapsible: false + collapsible_disable_automatic_open: false + is_secondary: false + hide_label: true + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: '' + tokenize: false + sorts: + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: created + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: created + exposed: false + granularity: second + arguments: { } + filters: + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + type: + id: type + table: node_field_data + field: type + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: type + plugin_id: bundle + operator: in + value: + dialogue: dialogue + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + field_area_target_id: + id: field_area_target_id + table: node__field_area + field: field_area_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_area_target_id_op + label: Område + description: '' + use_operator: false + operator: field_area_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: field_area_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + editor: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + vid: area + type: select + hierarchy: false + limit: true + error_message: true + style: + type: default + options: + row_class: '' + default_row_class: false + uses_fields: false + row: + type: 'entity:node' + options: + relationship: none + view_mode: teaser + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: { } + css_class: '' + use_ajax: false + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/config/sync/views.view.comment.yml b/config/sync/views.view.comment.yml new file mode 100644 index 000000000..c3e049110 --- /dev/null +++ b/config/sync/views.view.comment.yml @@ -0,0 +1,1617 @@ +uuid: af1bbe89-86e4-4882-87f8-75bbf0d2d0f2 +langcode: da +status: true +dependencies: + module: + - comment + - user +_core: + default_config_hash: H6JHGXl97yOKmVaV62SoY1ki1tWVdyD44fgOkdmVyRM +id: comment +label: Comments +module: comment +description: 'Find and manage comments.' +tag: default +base_table: comment_field_data +base_field: cid +display: + default: + id: default + display_title: Master + display_plugin: default + position: 0 + display_options: + title: Comments + fields: + comment_bulk_form: + id: comment_bulk_form + table: comment + field: comment_bulk_form + relationship: none + group_type: group + admin_label: '' + entity_type: comment + plugin_id: comment_bulk_form + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: Handling + include_exclude: include + selected_actions: + - comment_delete_action + - comment_unpublish_action + subject: + id: subject + table: comment_field_data + field: subject + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: subject + plugin_id: field + label: Emne + 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: comment_permalink + 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 + uid: + id: uid + table: comment_field_data + field: uid + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: uid + plugin_id: field + 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: 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 + name: + id: name + table: comment_field_data + field: name + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: name + plugin_id: field + label: Forfatter + 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: '{{ uid }}' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: comment_username + 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_id: + id: entity_id + table: comment_field_data + field: entity_id + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: entity_id + plugin_id: commented_entity + label: 'Posted in' + 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 + changed: + id: changed + table: comment_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: changed + plugin_id: field + label: Opdateret + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + 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 + operations: + id: operations + table: comment + field: operations + relationship: none + group_type: group + admin_label: '' + entity_type: comment + plugin_id: entity_operations + label: Handlinger + 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 + destination: true + name_1: + id: name_1 + table: users_field_data + field: name + relationship: uid + group_type: group + admin_label: '' + entity_type: user + entity_field: name + plugin_id: field + 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: user_name + 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 + pager: + type: full + options: + offset: 0 + pagination_heading_level: h4 + items_per_page: 50 + total_pages: null + id: 0 + tags: + next: 'næste ›' + previous: '‹ forrige' + first: '« første' + last: 'sidste »' + expose: + items_per_page: false + items_per_page_label: 'Antal elementer' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- Alle -' + offset: false + offset_label: Forskydning + quantity: 9 + exposed_form: + type: basic + options: + submit_button: Filter + reset_button: false + reset_button_label: Gendan + exposed_sorts_label: 'Sortér efter' + expose_sort_order: true + sort_asc_label: Stigende + sort_desc_label: Faldende + access: + type: perm + options: + perm: 'administer comments' + cache: + type: tag + options: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: 'No comments available.' + tokenize: false + sorts: + changed: + id: changed + table: comment_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: changed + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: changed + exposed: false + granularity: second + arguments: { } + filters: + status: + id: status + table: comment_field_data + field: status + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: status + plugin_id: boolean + operator: '=' + value: '1' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + subject: + id: subject + table: comment_field_data + field: subject + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: subject + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: subject_op + label: Emne + description: '' + use_operator: false + operator: subject_op + operator_limit_selection: false + operator_list: { } + identifier: subject + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + combine: + id: combine + table: views + field: combine + relationship: none + group_type: group + admin_label: '' + plugin_id: combine + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: combine_op + label: 'Author name' + description: '' + use_operator: false + operator: combine_op + operator_limit_selection: false + operator_list: { } + identifier: author_name + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + fields: + name: name + name_1: name_1 + langcode: + id: langcode + table: comment_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: langcode + plugin_id: language + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: langcode_op + label: Sprog + description: '' + use_operator: false + operator: langcode_op + operator_limit_selection: false + operator_list: { } + identifier: langcode + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: + 1: AND + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + comment_bulk_form: comment_bulk_form + subject: subject + uid: uid + entity_id: entity_id + changed: changed + operations: operations + default: changed + info: + comment_bulk_form: + align: '' + separator: '' + empty_column: false + responsive: '' + subject: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + uid: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + entity_id: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + changed: + sortable: true + default_sort_order: desc + align: '' + separator: '' + empty_column: false + responsive: priority-low + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: true + summary: '' + empty_table: true + caption: '' + description: '' + row: + type: fields + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: + uid: + id: uid + table: comment_field_data + field: uid + relationship: none + group_type: group + admin_label: author + entity_type: comment + entity_field: uid + plugin_id: standard + required: false + css_class: '' + use_ajax: false + group_by: false + show_admin_links: true + use_more: false + use_more_always: true + use_more_text: mere + header: { } + footer: { } + hide_attachment_summary: false + display_extenders: { } + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: { } + cacheable: false + page_published: + id: page_published + display_title: 'Published comments' + display_plugin: page + position: 1 + display_options: + display_description: 'The approved comments listing.' + display_comment: '' + exposed_block: false + display_extenders: { } + path: admin/content/comment + menu: + type: tab + title: Comments + description: 'Comments published' + weight: 0 + menu_name: admin + parent: '' + context: '0' + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: { } + cacheable: false + page_unapproved: + id: page_unapproved + display_title: 'Unapproved comments' + display_plugin: page + position: 2 + display_options: + fields: + comment_bulk_form: + id: comment_bulk_form + table: comment + field: comment_bulk_form + relationship: none + group_type: group + admin_label: '' + entity_type: comment + plugin_id: comment_bulk_form + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + action_title: Handling + include_exclude: include + selected_actions: + - comment_delete_action + - comment_publish_action + subject: + id: subject + table: comment_field_data + field: subject + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: subject + plugin_id: field + label: Emne + 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: comment_permalink + 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 + uid: + id: uid + table: comment_field_data + field: uid + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: uid + plugin_id: field + 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: 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 + name: + id: name + table: comment_field_data + field: name + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: name + plugin_id: field + label: Forfatter + 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: '{{ uid }}' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: comment_username + 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_id: + id: entity_id + table: comment_field_data + field: entity_id + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: entity_id + plugin_id: commented_entity + label: 'Posted in' + 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 + changed: + id: changed + table: comment_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: changed + plugin_id: field + label: Opdateret + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: timestamp + settings: + date_format: short + custom_date_format: '' + timezone: '' + tooltip: + date_format: long + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + 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 + operations: + id: operations + table: comment + field: operations + relationship: none + group_type: group + admin_label: '' + entity_type: comment + plugin_id: entity_operations + label: Handlinger + 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 + destination: true + name_1: + id: name_1 + table: users_field_data + field: name + relationship: uid + group_type: group + admin_label: '' + entity_type: user + entity_field: name + plugin_id: field + 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: user_name + 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 + filters: + status: + id: status + table: comment_field_data + field: status + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: status + plugin_id: boolean + operator: '=' + value: '0' + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + subject: + id: subject + table: comment_field_data + field: subject + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: subject + plugin_id: string + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: subject_op + label: Emne + description: '' + use_operator: false + operator: subject_op + operator_limit_selection: false + operator_list: { } + identifier: subject + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + combine: + id: combine + table: views + field: combine + relationship: none + group_type: group + admin_label: '' + plugin_id: combine + operator: contains + value: '' + group: 1 + exposed: true + expose: + operator_id: combine_op + label: 'Author Name' + description: '' + use_operator: false + operator: combine_op + operator_limit_selection: false + operator_list: { } + identifier: author_name + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + fields: + name: name + name_1: name_1 + langcode: + id: langcode + table: comment_field_data + field: langcode + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: langcode + plugin_id: language + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: langcode_op + label: Sprog + description: '' + use_operator: false + operator: langcode_op + operator_limit_selection: false + operator_list: { } + identifier: langcode + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + administrator: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: + 1: AND + defaults: + fields: false + filters: false + filter_groups: false + display_description: 'The unapproved comments listing.' + display_extenders: { } + path: admin/content/comment/approval + menu: + type: tab + title: 'Unapproved comments' + description: 'Comments unapproved' + weight: 1 + menu_name: admin + parent: '' + context: '0' + cache_metadata: + max-age: 0 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - user.permissions + tags: { } + cacheable: false diff --git a/config/sync/views.view.comments_recent.yml b/config/sync/views.view.comments_recent.yml new file mode 100644 index 000000000..a9cc4f270 --- /dev/null +++ b/config/sync/views.view.comments_recent.yml @@ -0,0 +1,270 @@ +uuid: 3738090b-a18b-4298-95e6-50e07261106d +langcode: da +status: true +dependencies: + module: + - comment + - node + - user +_core: + default_config_hash: cFOucxH8PAXDQ2kViCcAHgK-JMCcxVkpIMzD56EfpZo +id: comments_recent +label: 'Recent comments' +module: views +description: 'Recent comments.' +tag: default +base_table: comment_field_data +base_field: cid +display: + default: + id: default + display_title: Master + display_plugin: default + position: 0 + display_options: + title: 'Recent comments' + fields: + subject: + id: subject + table: comment_field_data + field: subject + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: subject + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: false + ellipsis: false + 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 + type: string + settings: + link_to_entity: true + changed: + id: changed + table: comment_field_data + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: changed + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: timestamp_ago + settings: + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + pager: + type: some + options: + offset: 0 + items_per_page: 10 + exposed_form: + type: basic + access: + type: perm + options: + perm: 'access comments' + cache: + type: tag + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + label: '' + empty: true + content: 'No comments available.' + tokenize: false + sorts: + created: + id: created + table: comment_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: created + plugin_id: date + order: DESC + expose: + label: '' + field_identifier: created + exposed: false + cid: + id: cid + table: comment_field_data + field: cid + relationship: none + group_type: group + admin_label: '' + entity_type: comment + entity_field: cid + plugin_id: standard + order: DESC + expose: + label: '' + field_identifier: cid + exposed: false + filters: + status: + id: status + table: comment_field_data + field: status + entity_type: comment + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + status_node: + id: status_node + table: node_field_data + field: status + relationship: node + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + operator_limit_selection: false + operator_list: { } + style: + type: html_list + options: + grouping: { } + row_class: '' + default_row_class: true + type: ul + wrapper_class: item-list + class: '' + row: + type: fields + options: + default_field_elements: true + hide_empty: false + query: + type: views_query + relationships: + node: + id: node + table: comment_field_data + field: node + plugin_id: standard + required: true + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - user.permissions + tags: { } + block_1: + id: block_1 + display_title: Blok + display_plugin: block + position: 1 + display_options: + display_extenders: { } + block_description: 'Recent comments' + block_category: 'Lists (Views)' + allow: + items_per_page: true + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - user.permissions + tags: { } diff --git a/config/sync/views.view.dialogue_proposals.yml b/config/sync/views.view.dialogue_proposals.yml new file mode 100644 index 000000000..5c876a9fe --- /dev/null +++ b/config/sync/views.view.dialogue_proposals.yml @@ -0,0 +1,418 @@ +uuid: f0e4bf21-0f38-489b-bf27-33b3d50f71e3 +langcode: da +status: true +dependencies: + config: + - core.entity_view_mode.node.list_display + - flag.flag.support_proposal + - node.type.dialogue_proposal + - taxonomy.vocabulary.dialogue_proposal_categories + module: + - better_exposed_filters + - flag + - node + - taxonomy + - user +id: dialogue_proposals +label: 'Dialogue proposals' +module: views +description: '' +tag: '' +base_table: node_field_data +base_field: nid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Dialogue proposals' + fields: + title: + id: title + table: node_field_data + field: title + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: '' + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: 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 + pager: + type: full + options: + offset: 0 + pagination_heading_level: h4 + items_per_page: 0 + total_pages: null + id: 0 + tags: + next: 'Næste ›' + previous: '‹ Forrige' + first: '« Første' + last: 'Sidste »' + expose: + items_per_page: false + items_per_page_label: 'Antal elementer' + items_per_page_options: '5, 10, 25, 50' + items_per_page_options_all: false + items_per_page_options_all_label: '- Alle -' + offset: false + offset_label: Forskydning + quantity: 9 + exposed_form: + type: bef + options: + submit_button: Udfør + reset_button: false + reset_button_label: Gendan + exposed_sorts_label: 'Sortér efter' + expose_sort_order: false + sort_asc_label: Stigende + sort_desc_label: Faldende + text_input_required: 'Select any filter and click on Apply to see results' + text_input_required_format: citizen_proposal_content + bef: + general: + autosubmit: true + autosubmit_exclude_textfield: false + autosubmit_textfield_delay: 500 + autosubmit_textfield_minimum_length: 3 + autosubmit_hide: true + input_required: false + allow_secondary: false + secondary_label: 'Advanced options' + secondary_open: false + reset_button_always_show: false + sort: + plugin_id: default + advanced: + combine: false + combine_rewrite: "Flagging count Asc|Oldest first\r\nFlagging count Desc|Newest first\r\n" + reset: false + reset_label: '' + collapsible: false + collapsible_label: 'Sort options' + is_secondary: false + hide_label: true + filter: + field_dialogue_proposal_category_target_id: + plugin_id: default + advanced: + sort_options: false + rewrite: + filter_rewrite_values: '- Any -|All categories' + filter_rewrite_values_key: false + collapsible: false + collapsible_disable_automatic_open: false + is_secondary: false + hide_label: true + access: + type: perm + options: + perm: 'access content' + cache: + type: tag + options: { } + empty: { } + sorts: + created: + id: created + table: node_field_data + field: created + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: created + plugin_id: date + order: DESC + expose: + label: 'Latest proposals' + field_identifier: created + exposed: true + granularity: second + count: + id: count + table: flag_counts + field: count + relationship: flag_relationship + group_type: group + admin_label: '' + plugin_id: standard + order: DESC + expose: + label: 'Most likes' + field_identifier: count + exposed: true + comment_count: + id: comment_count + table: comment_entity_statistics + field: comment_count + relationship: none + group_type: group + admin_label: '' + plugin_id: standard + order: DESC + expose: + label: 'Most comments' + field_identifier: comment_count + exposed: true + arguments: + field_dialogue_target_id: + id: field_dialogue_target_id + table: node__field_dialogue + field: field_dialogue_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: entity_target_id + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: node + default_argument_options: { } + summary_options: + base_path: '' + count: true + override: false + items_per_page: 25 + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: false + filters: + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + type: + id: type + table: node_field_data + field: type + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: type + plugin_id: bundle + operator: in + value: + dialogue_proposal: dialogue_proposal + group: 1 + exposed: false + expose: + operator_id: '' + label: '' + description: '' + use_operator: false + operator: '' + operator_limit_selection: false + operator_list: { } + identifier: '' + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + field_dialogue_proposal_category_target_id: + id: field_dialogue_proposal_category_target_id + table: node__field_dialogue_proposal_category + field: field_dialogue_proposal_category_target_id + relationship: none + group_type: group + admin_label: '' + plugin_id: taxonomy_index_tid + operator: or + value: { } + group: 1 + exposed: true + expose: + operator_id: field_dialogue_proposal_category_target_id_op + label: 'Dialogue proposal category' + description: '' + use_operator: false + operator: field_dialogue_proposal_category_target_id_op + operator_limit_selection: false + operator_list: { } + identifier: field_dialogue_proposal_category_target_id + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + citizen_proposal_editor: '0' + administrator: '0' + hearing_editor: '0' + project_editor: '0' + dialogue_editor: '0' + public_meeting_editor: '0' + page_editor: '0' + reduce: false + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + reduce_duplicates: false + vid: dialogue_proposal_categories + type: select + hierarchy: false + limit: true + error_message: true + style: + type: default + row: + type: 'entity:node' + options: + relationship: none + view_mode: list_display + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } + relationships: + flag_relationship: + id: flag_relationship + table: node_field_data + field: flag_relationship + relationship: none + group_type: group + admin_label: Flags + entity_type: node + plugin_id: flag_relationship + required: false + flag: support_proposal + user_scope: any + use_ajax: true + header: { } + footer: { } + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'url.query_args:sort_by' + - 'user.node_grants:view' + - user.permissions + tags: + - flag.flag.support_proposal + block_1: + id: block_1 + display_title: Block + display_plugin: block + position: 1 + display_options: + display_extenders: { } + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'url.query_args:sort_by' + - 'user.node_grants:view' + - user.permissions + tags: + - flag.flag.support_proposal diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 656422067..7bb8af611 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -1,7 +1,7 @@ include: - docker-compose.oidc.yml - docker-compose.playwright.yml - - docker-compose.pretix.yml + #- docker-compose.pretix.yml services: phpfpm: diff --git a/web/modules/custom/hoeringsportal_base_fixtures/assets/images/trafic.jpg b/web/modules/custom/hoeringsportal_base_fixtures/assets/images/trafic.jpg new file mode 100644 index 000000000..ea630cc08 Binary files /dev/null and b/web/modules/custom/hoeringsportal_base_fixtures/assets/images/trafic.jpg differ diff --git a/web/modules/custom/hoeringsportal_base_fixtures/hoeringsportal_base_fixtures.services.yml b/web/modules/custom/hoeringsportal_base_fixtures/hoeringsportal_base_fixtures.services.yml index fae37eefd..c376c8017 100644 --- a/web/modules/custom/hoeringsportal_base_fixtures/hoeringsportal_base_fixtures.services.yml +++ b/web/modules/custom/hoeringsportal_base_fixtures/hoeringsportal_base_fixtures.services.yml @@ -52,6 +52,10 @@ services: tags: - { name: content_fixture } + Drupal\hoeringsportal_base_fixtures\Fixture\TermDialogueProposalCategoryFixture: + tags: + - { name: content_fixture } + Drupal\hoeringsportal_base_fixtures\Fixture\TermHearingTypeFixture: tags: - { name: content_fixture } diff --git a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/MenuItemFixture.php b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/MenuItemFixture.php index 46ed20606..9a3bcf6cd 100644 --- a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/MenuItemFixture.php +++ b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/MenuItemFixture.php @@ -6,6 +6,7 @@ use Drupal\content_fixtures\Fixture\DependentFixtureInterface; use Drupal\content_fixtures\Fixture\FixtureGroupInterface; use Drupal\hoeringsportal_citizen_proposal_fixtures\Fixture\CitizenProposalLandingPageFixture; +use Drupal\hoeringsportal_dialogue_fixtures\Fixture\DialogueLandingPageFixture; use Drupal\hoeringsportal_hearing_fixtures\Fixture\HearingLandingPageFixture; use Drupal\hoeringsportal_project_fixtures\Fixture\ProjectLandingPageFixture; use Drupal\menu_link_content\Entity\MenuLinkContent; @@ -29,6 +30,7 @@ public function load() { 'node:landing_page:Proposals', 'node:landing_page:Public meetings', 'node:landing_page:Projects', + 'node:landing_page:Dialogue proposals', ] as $weight => $name) { $page = $this->getReference($name); MenuLinkContent::create([ @@ -63,6 +65,7 @@ public function getDependencies() { HearingLandingPageFixture::class, CitizenProposalLandingPageFixture::class, ProjectLandingPageFixture::class, + DialogueLandingPageFixture::class, PublicMeetingFixture::class, ]; } diff --git a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/ParagraphFixture.php b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/ParagraphFixture.php index 6726f5beb..8eb3a9cd9 100644 --- a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/ParagraphFixture.php +++ b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/ParagraphFixture.php @@ -95,6 +95,18 @@ public function load() { $paragraph->save(); $this->addReference('paragraph:content_list:all_public_meetings', $paragraph); + $paragraph = Paragraph::create([ + 'type' => 'content_list', + 'field_content_list' => [ + 'target_id' => 'all_early_inclusion', + 'display_id' => 'default', + 'data' => '', + ], + 'field_list_title' => 'All Early Inclusion Elements', + ]); + $paragraph->save(); + $this->addReference('paragraph:content_list:all_early_inclusion', $paragraph); + $paragraph = Paragraph::create([ 'type' => 'info_box', 'field_content_block_text' => [ diff --git a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/PublicMeetingFixture.php b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/PublicMeetingFixture.php index 518605be3..b9127e259 100644 --- a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/PublicMeetingFixture.php +++ b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/PublicMeetingFixture.php @@ -369,10 +369,10 @@ public function createOrders(NodeInterface $node, array ...$specs): void { 'email' => $spec['email'] ?? 'test@example.com', 'positions' => array_map( static fn(int $index) => [ - 'subevent' => $subEventInfo['pretix_subevent_id'], + 'subevent' => $subEventInfo['pretix_subevent_id'] ?? [], 'attendee_name' => sprintf('Attendee %d', $index), 'attendee_email' => sprintf('test%03d@example.com', $index), - 'item' => reset($subEventInfo['data']['subevent']['item_price_overrides'])['item'], + 'item' => isset($subEventInfo['data']['subevent']['item_price_overrides']) ? reset($subEventInfo['data']['subevent']['item_price_overrides'])['item'] : FALSE, ], range(1, $line['quantity'] ?? 1), ), diff --git a/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/TermDialogueProposalCategoryFixture.php b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/TermDialogueProposalCategoryFixture.php new file mode 100644 index 000000000..9979d144a --- /dev/null +++ b/web/modules/custom/hoeringsportal_base_fixtures/src/Fixture/TermDialogueProposalCategoryFixture.php @@ -0,0 +1,32 @@ + { return geojson } +const defaultMapConfig = (function () { + const widget = document.querySelector('.septima-widget') + if (widget.parentElement && widget.parentElement.getAttribute('data-map-config')) { + const config = widget.parentElement.getAttribute('data-map-config') + const configObj = JSON.parse(config) + const transformedCoordinates = proj4('EPSG:4326', 'EPSG:25832', [configObj.x, configObj.y]) + if (transformedCoordinates) { + return { + 'x': transformedCoordinates[0], + 'y': transformedCoordinates[1], + 'zoomLevel': configObj.zoomLevel + } + } + } + + return { + 'x': null, + 'y': null, + 'zoomLevel': 12 + } +}()) + window.addEventListener('load', function () { const config = { 'map': { 'maxZoomLevel': 1, 'minZoomLevel': 22, - 'view': { - 'zoomLevel': 12 - }, + 'view': defaultMapConfig, 'layer': [ { 'namedlayer': '#osm' diff --git a/web/modules/custom/hoeringsportal_data/build/hearing-edit.js b/web/modules/custom/hoeringsportal_data/build/hearing-edit.js index d0afac48f..44c7d373e 100644 --- a/web/modules/custom/hoeringsportal_data/build/hearing-edit.js +++ b/web/modules/custom/hoeringsportal_data/build/hearing-edit.js @@ -1 +1 @@ -!function(t){function s(i){if(a[i])return a[i].exports;var h=a[i]={i:i,l:!1,exports:{}};return t[i].call(h.exports,h,h.exports,s),h.l=!0,h.exports}var a={};s.m=t,s.c=a,s.d=function(t,a,i){s.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:i})},s.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(a,"a",a),a},s.o=function(t,s){return Object.prototype.hasOwnProperty.call(t,s)},s.p="/build/",s(s.s="S4tn")}({"+Ymu":function(t,s,a){"use strict";function i(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Object(n.a)(this.es),this.e1=Object(r.a)(this.es),this.e2=Object(o.a)(this.es),this.e3=Object(c.a)(this.es),this.ml0=this.a*Object(M.a)(this.e0,this.e1,this.e2,this.e3,this.lat0)}function h(t){var s,a,i,h=t.x,e=t.y,n=Object(u.a)(h-this.long0);if(i=n*Math.sin(e),this.sphere)Math.abs(e)<=f.b?(s=this.a*n,a=-1*this.a*this.lat0):(s=this.a*Math.sin(i)/Math.tan(e),a=this.a*(Object(l.a)(e-this.lat0)+(1-Math.cos(i))/Math.tan(e)));else if(Math.abs(e)<=f.b)s=this.a*n,a=-1*this.ml0;else{var r=Object(d.a)(this.a,this.e,Math.sin(e))/Math.tan(e);s=r*Math.sin(i),a=this.a*Object(M.a)(this.e0,this.e1,this.e2,this.e3,e)-this.ml0+r*(1-Math.cos(i))}return t.x=s+this.x0,t.y=a+this.y0,t}function e(t){var s,a,i,h,e,n,r,o,c;if(i=t.x-this.x0,h=t.y-this.y0,this.sphere)if(Math.abs(h+this.a*this.lat0)<=f.b)s=Object(u.a)(i/this.a+this.long0),a=0;else{n=this.lat0+h/this.a,r=i*i/this.a/this.a+n*n,o=n;var l;for(e=m;e;--e)if(l=Math.tan(o),c=-1*(n*(o*l+1)-o-.5*(o*o+r)*l)/((o-n)/l-1),o+=c,Math.abs(c)<=f.b){a=o;break}s=Object(u.a)(this.long0+Math.asin(i*Math.tan(o)/this.a)/Math.sin(a))}else if(Math.abs(h+this.ml0)<=f.b)a=0,s=Object(u.a)(this.long0+i/this.a);else{n=(this.ml0+h)/this.a,r=i*i/this.a/this.a+n*n,o=n;var d,b,p,y,_;for(e=m;e;--e)if(_=this.e*Math.sin(o),d=Math.sqrt(1-_*_)*Math.tan(o),b=this.a*Object(M.a)(this.e0,this.e1,this.e2,this.e3,o),p=this.e0-2*this.e1*Math.cos(2*o)+4*this.e2*Math.cos(4*o)-6*this.e3*Math.cos(6*o),y=b/this.a,c=(n*(d*y+1)-y-.5*d*(y*y+r))/(this.es*Math.sin(2*o)*(y*y+r-2*n*y)/(4*d)+(n-y)*(d*p-2/Math.sin(2*o))-p),o-=c,Math.abs(c)<=f.b){a=o;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(a),2))*Math.tan(a),s=Object(u.a)(this.long0+Math.asin(i*d/this.a)/Math.sin(a))}return t.x=s,t.y=a,t}var n=a("d3I4"),r=a("i5uR"),o=a("mVlP"),c=a("fGox"),u=a("gkMG"),l=a("thK1"),M=a("frGE"),f=a("JAmm"),d=a("9vV9"),m=20,b=["Polyconic","poly"];s.a={init:i,forward:h,inverse:e,names:b}},"3K9Y":function(t,s,a){"use strict";s.a=function(t,s,a){var i,h,e,n=a.x,r=a.y,o=a.z||0,c={};for(e=0;e<3;e++)if(!s||2!==e||void 0!==a.z)switch(0===e?(i=n,h="x"):1===e?(i=r,h="y"):(i=o,h="z"),t.axis[e]){case"e":c[h]=i;break;case"w":c[h]=-i;break;case"n":c[h]=i;break;case"s":c[h]=-i;break;case"u":void 0!==a[h]&&(c.z=i);break;case"d":void 0!==a[h]&&(c.z=-i);break;default:return null}return c}},"4II5":function(t,s,a){"use strict";function i(t,s){return s=s||5,l(o({lat:t[1],lon:t[0]}),s)}function h(t){var s=c(m(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat,s.lon,s.lat]:[s.left,s.bottom,s.right,s.top]}function e(t){var s=c(m(t.toUpperCase()));return s.lat&&s.lon?[s.lon,s.lat]:[(s.left+s.right)/2,(s.top+s.bottom)/2]}function n(t){return t*(Math.PI/180)}function r(t){return t/Math.PI*180}function o(t){var s,a,i,h,e,r,o,c,l,M=t.lat,f=t.lon,d=6378137,m=n(M),b=n(f);l=Math.floor((f+180)/6)+1,180===f&&(l=60),M>=56&&M<64&&f>=3&&f<12&&(l=32),M>=72&&M<84&&(f>=0&&f<9?l=31:f>=9&&f<21?l=33:f>=21&&f<33?l=35:f>=33&&f<42&&(l=37)),s=6*(l-1)-180+3,c=n(s),a=.006739496752268451,i=d/Math.sqrt(1-.00669438*Math.sin(m)*Math.sin(m)),h=Math.tan(m)*Math.tan(m),e=a*Math.cos(m)*Math.cos(m),r=Math.cos(m)*(b-c),o=d*(.9983242984503243*m-.002514607064228144*Math.sin(2*m)+2639046602129982e-21*Math.sin(4*m)-3.418046101696858e-9*Math.sin(6*m));var p=.9996*i*(r+(1-h+e)*r*r*r/6+(5-18*h+h*h+72*e-58*a)*r*r*r*r*r/120)+5e5,y=.9996*(o+i*Math.tan(m)*(r*r/2+(5-h+9*e+4*e*e)*r*r*r*r/24+(61-58*h+h*h+600*e-330*a)*r*r*r*r*r*r/720));return M<0&&(y+=1e7),{northing:Math.round(y),easting:Math.round(p),zoneNumber:l,zoneLetter:u(M)}}function c(t){var s=t.northing,a=t.easting,i=t.zoneLetter,h=t.zoneNumber;if(h<0||h>60)return null;var e,n,o,u,l,M,f,d,m,b,p=6378137,y=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),_=a-5e5,v=s;i<"N"&&(v-=1e7),d=6*(h-1)-180+3,e=.006739496752268451,f=v/.9996,m=f/6367449.145945056,b=m+(3*y/2-27*y*y*y/32)*Math.sin(2*m)+(21*y*y/16-55*y*y*y*y/32)*Math.sin(4*m)+151*y*y*y/96*Math.sin(6*m),n=p/Math.sqrt(1-.00669438*Math.sin(b)*Math.sin(b)),o=Math.tan(b)*Math.tan(b),u=e*Math.cos(b)*Math.cos(b),l=.99330562*p/Math.pow(1-.00669438*Math.sin(b)*Math.sin(b),1.5),M=_/(.9996*n);var g=b-n*Math.tan(b)/l*(M*M/2-(5+3*o+10*u-4*u*u-9*e)*M*M*M*M/24+(61+90*o+298*u+45*o*o-252*e-3*u*u)*M*M*M*M*M*M/720);g=r(g);var x=(M-(1+2*o+u)*M*M*M/6+(5-2*u+28*o-3*u*u+8*e+24*o*o)*M*M*M*M*M/120)/Math.cos(b);x=d+r(x);var O;if(t.accuracy){var j=c({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});O={top:j.lat,right:j.lon,bottom:g,left:x}}else O={lat:g,lon:x};return O}function u(t){var s="Z";return 84>=t&&t>=72?s="X":72>t&&t>=64?s="W":64>t&&t>=56?s="V":56>t&&t>=48?s="U":48>t&&t>=40?s="T":40>t&&t>=32?s="S":32>t&&t>=24?s="R":24>t&&t>=16?s="Q":16>t&&t>=8?s="P":8>t&&t>=0?s="N":0>t&&t>=-8?s="M":-8>t&&t>=-16?s="L":-16>t&&t>=-24?s="K":-24>t&&t>=-32?s="J":-32>t&&t>=-40?s="H":-40>t&&t>=-48?s="G":-48>t&&t>=-56?s="F":-56>t&&t>=-64?s="E":-64>t&&t>=-72?s="D":-72>t&&t>=-80&&(s="C"),s}function l(t,s){var a="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+M(t.easting,t.northing,t.zoneNumber)+a.substr(a.length-5,s)+i.substr(i.length-5,s)}function M(t,s,a){var i=f(a);return d(Math.floor(t/1e5),Math.floor(s/1e5)%20,i)}function f(t){var s=t%_;return 0===s&&(s=_),s}function d(t,s,a){var i=a-1,h=v.charCodeAt(i),e=g.charCodeAt(i),n=h+t-1,r=e+s,o=!1;return n>w&&(n=n-w+x-1,o=!0),(n===O||hSagittis mattis scelerisque habitasse elit etiam lobortis accumsan. Dignissim ac sapien potenti ipsum nam penatibus leo. Facilisi potenti laoreet et scelerisque sem felis rutrum.
+BODY, + 'format' => 'filtered_html', + ]); + $paragraph->save(); + + $node = Node::create([ + 'type' => 'dialogue', + 'title' => 'Test Dialogue - proposals full', + 'status' => TRUE, + 'field_teaser' => 'Test teaser', + 'field_area' => [ + $this->getReference('area:Hele kommunen'), + ], + 'field_top_images' => [ + $this->getReference('media:Large1'), + $this->getReference('media:Large2'), + $this->getReference('media:Large3'), + ], + 'field_type' => [ + $this->getReference('type:Klima'), + ], + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Regnvandsopsamling'), + $this->getReference('dialogue_proposal_categories:Parkeringspladser for elbiler'), + $this->getReference('dialogue_proposal_categories:Vedvarende Energi'), + ], + 'field_dialogue_proposal_config' => [ + ['value' => 'public_proposals'], + ['value' => 'use_image_on_proposals'], + ['value' => 'use_map_on_proposals'], + ], + 'field_dialogue_proposal_location' => [ + 'type' => 'point', + 'data' => '{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}', + 'point' => '{"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"features":[{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}]}', + ], + 'field_dialogue_proposal_zoom' => 11, + 'field_content_sections' => [ + 'target_id' => $paragraph->id(), + 'target_revision_id' => $paragraph->getRevisionId(), + ], + ]); + + $node->save(); + $this->addReference('node:dialogue:Test Dialogue - proposals full', $node); + + $node = Node::create([ + 'type' => 'dialogue', + 'title' => 'Test Dialogue - proposals simple, private', + 'status' => TRUE, + 'field_teaser' => 'Test teaser', + 'field_area' => [ + $this->getReference('area:Hele kommunen'), + ], + 'field_top_images' => [ + $this->getReference('media:Large1'), + $this->getReference('media:Large2'), + $this->getReference('media:Large3'), + ], + 'field_type' => [ + $this->getReference('type:Klima'), + ], + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Biodiversitet Initiativer'), + $this->getReference('dialogue_proposal_categories:Cykelstier'), + $this->getReference('dialogue_proposal_categories:Regnvandsopsamling'), + $this->getReference('dialogue_proposal_categories:Parkeringspladser for elbiler'), + $this->getReference('dialogue_proposal_categories:Bæredygtig Belysning'), + $this->getReference('dialogue_proposal_categories:Energi Effektivisering'), + $this->getReference('dialogue_proposal_categories:Grønne Materialer'), + $this->getReference('dialogue_proposal_categories:Affaldshåndtering'), + $this->getReference('dialogue_proposal_categories:Vedvarende Energi'), + ], + 'field_dialogue_proposal_config' => [], + 'field_content_sections' => [ + 'target_id' => $paragraph->id(), + 'target_revision_id' => $paragraph->getRevisionId(), + ], + ]); + + $node->save(); + $this->addReference('node:dialogue:Test Dialogue - proposals simple, private', $node); + } + + /** + * {@inheritdoc} + */ + public function getDependencies() { + return [ + MediaFixture::class, + ParagraphFixture::class, + TermDialogueProposalCategoryFixture::class, + ]; + } + + /** + * {@inheritdoc} + */ + public function getGroups() { + return ['node']; + } + +} diff --git a/web/modules/custom/hoeringsportal_dialogue/modules/hoeringsportal_dialogue_fixtures/src/Fixture/DialogueLandingPageFixture.php b/web/modules/custom/hoeringsportal_dialogue/modules/hoeringsportal_dialogue_fixtures/src/Fixture/DialogueLandingPageFixture.php new file mode 100644 index 000000000..ddd1a1edd --- /dev/null +++ b/web/modules/custom/hoeringsportal_dialogue/modules/hoeringsportal_dialogue_fixtures/src/Fixture/DialogueLandingPageFixture.php @@ -0,0 +1,61 @@ + 'landing_page', + 'title' => 'Tidlig inddragelse', + 'field_teaser' => [ + 'value' => <<<'BODY' +I Aarhus ønsker vi lorem ipsum dolor sit amet, consectetur adipiscing elit. Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan. Dignissim ac sapien potenti ipsum nam penatibus leo. +BODY + ], + 'field_media_image_single' => ['target_id' => $this->getReference('media:Large1')->id()], + 'field_section' => [ + [ + 'target_id' => $this->getReference('paragraph:content_list:all_early_inclusion')->id(), + 'target_revision_id' => $this->getReference('paragraph:content_list:all_early_inclusion')->getRevisionId(), + ], + ], + ]); + $entity->save(); + $this->addReference('node:landing_page:Dialogue proposals', $entity); + } + + /** + * {@inheritdoc} + */ + public function getDependencies() { + return [ + MediaFixture::class, + ParagraphFixture::class, + ]; + } + + /** + * {@inheritdoc} + */ + public function getGroups() { + return ['node']; + } + +} diff --git a/web/modules/custom/hoeringsportal_dialogue/modules/hoeringsportal_dialogue_fixtures/src/Fixture/DialogueProposalFixture.php b/web/modules/custom/hoeringsportal_dialogue/modules/hoeringsportal_dialogue_fixtures/src/Fixture/DialogueProposalFixture.php new file mode 100644 index 000000000..68c60d3eb --- /dev/null +++ b/web/modules/custom/hoeringsportal_dialogue/modules/hoeringsportal_dialogue_fixtures/src/Fixture/DialogueProposalFixture.php @@ -0,0 +1,159 @@ + 'dialogue_proposal', + 'title' => 'Titel på mit forslag', + 'status' => TRUE, + 'field_dialogue_proposal_descr' => 'Kort beskrivelse af sit amet, consectetur adipiscing elit. Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan. +Dignissim ac sapien potenti ipsum nam penatibus leo. Facilisi potenti laoreet et scelerisque sem felis rutrum.', + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Cykelstier'), + $this->getReference('dialogue_proposal_categories:Regnvandsopsamling'), + $this->getReference('dialogue_proposal_categories:Bæredygtig Belysning'), + $this->getReference('dialogue_proposal_categories:Affaldshåndtering'), + ], + 'field_dialogue' => $this->getReference('node:dialogue:Test Dialogue - proposals full'), + 'field_image_upload' => ['target_id' => $this->getReference('file:large1.jpg')->id()], + 'field_location' => [ + 'type' => 'point', + 'data' => '{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}', + 'point' => '{"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"features":[{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}]}', + ], + ]); + + $node->save(); + $this->addReference('node:dialogue_proposal:Titel på mit forslag', $node); + + $node = Node::create([ + 'type' => 'dialogue_proposal', + 'title' => 'Inspiration fra Tyskland', + 'status' => TRUE, + 'field_dialogue_proposal_descr' => 'I Tyskland har jeg set af sit amet, consectetur adipiscing elit. Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan. +Dignissim ac sapien potenti ipsum nam penatibus leo. Facilisi potenti laoreet et scelerisque sem felis rutrum.', + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Biodiversitet Initiativer'), + $this->getReference('dialogue_proposal_categories:Cykelstier'), + $this->getReference('dialogue_proposal_categories:Regnvandsopsamling'), + $this->getReference('dialogue_proposal_categories:Bæredygtig Belysning'), + $this->getReference('dialogue_proposal_categories:Affaldshåndtering'), + ], + 'field_dialogue' => $this->getReference('node:dialogue:Test Dialogue - proposals full'), + 'field_image_upload' => ['target_id' => $this->getReference('file:trafic.jpg')->id()], + 'field_location' => [ + 'type' => 'point', + 'data' => '{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}', + 'point' => '{"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"features":[{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}]}', + ], + ]); + + $node->save(); + $this->addReference('node:dialogue_proposal:Inspiration fra Tyskland', $node); + + $node = Node::create([ + 'type' => 'dialogue_proposal', + 'title' => 'Test Dialogue proposal 1', + 'status' => TRUE, + 'field_dialogue_proposal_descr' => 'I Tyskland har jeg set af sit amet, consectetur adipiscing elit. Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan. +Dignissim ac sapien potenti ipsum nam penatibus leo. Facilisi potenti laoreet et scelerisque sem felis rutrum.', + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Biodiversitet Initiativer'), + $this->getReference('dialogue_proposal_categories:Cykelstier'), + $this->getReference('dialogue_proposal_categories:Regnvandsopsamling'), + $this->getReference('dialogue_proposal_categories:Bæredygtig Belysning'), + $this->getReference('dialogue_proposal_categories:Affaldshåndtering'), + ], + 'field_dialogue' => $this->getReference('node:dialogue:Test Dialogue - proposals full'), + 'field_image_upload' => ['target_id' => $this->getReference('file:large2.jpg')->id()], + 'field_location' => [ + 'type' => 'point', + 'data' => '{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}', + 'point' => '{"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"features":[{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}]}', + ], + ]); + + $node->save(); + $this->addReference('node:dialogue_proposal:Test Dialogue proposal 1', $node); + + $node = Node::create([ + 'type' => 'dialogue_proposal', + 'title' => 'Test Dialogue proposal full', + 'status' => TRUE, + 'field_dialogue_proposal_descr' => 'I Tyskland har jeg set af sit amet, consectetur adipiscing elit. Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan. +Dignissim ac sapien potenti ipsum nam penatibus leo. Facilisi potenti laoreet et scelerisque sem felis rutrum.', + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Biodiversitet Initiativer'), + ], + 'field_dialogue' => $this->getReference('node:dialogue:Test Dialogue - proposals full'), + 'field_image_upload' => ['target_id' => $this->getReference('file:large3.jpg')->id()], + 'field_location' => [ + 'type' => 'point', + 'data' => '{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}', + 'point' => '{"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG::4326"}},"features":[{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[10.2118737466156,56.15312642194584]}}]}', + ], + ]); + + $node->save(); + $this->addReference('node:dialogue_proposal:Test Dialogue proposal full', $node); + + $node = Node::create([ + 'type' => 'dialogue_proposal', + 'title' => 'Test Dialogue proposal simple', + 'status' => TRUE, + 'field_dialogue_proposal_descr' => 'I Tyskland har jeg set af sit amet, consectetur adipiscing elit. Sagittis mattis scelerisque habitasse elit etiam lobortis accumsan. +Dignissim ac sapien potenti ipsum nam penatibus leo. Facilisi potenti laoreet et scelerisque sem felis rutrum.', + 'field_dialogue_proposal_category' => [ + $this->getReference('dialogue_proposal_categories:Grønne pladser'), + $this->getReference('dialogue_proposal_categories:Biodiversitet Initiativer'), + $this->getReference('dialogue_proposal_categories:Cykelstier'), + $this->getReference('dialogue_proposal_categories:Regnvandsopsamling'), + $this->getReference('dialogue_proposal_categories:Bæredygtig Belysning'), + $this->getReference('dialogue_proposal_categories:Affaldshåndtering'), + ], + 'field_dialogue' => $this->getReference('node:dialogue:Test Dialogue - proposals simple, private'), + ]); + + $node->save(); + $this->addReference('node:dialogue_proposal:Test Dialogue proposal simple', $node); + } + + /** + * {@inheritdoc} + */ + public function getDependencies() { + return [ + TermDialogueProposalCategoryFixture::class, + DialogueFixture::class, + ]; + } + + /** + * {@inheritdoc} + */ + public function getGroups() { + return ['node']; + } + +} diff --git a/web/modules/custom/hoeringsportal_dialogue/src/Helper/DialogueHelper.php b/web/modules/custom/hoeringsportal_dialogue/src/Helper/DialogueHelper.php new file mode 100644 index 000000000..529a055c4 --- /dev/null +++ b/web/modules/custom/hoeringsportal_dialogue/src/Helper/DialogueHelper.php @@ -0,0 +1,226 @@ +getParentNode(); + $config = $this->getProposalConfig($parentNode); + + if (!in_array('public_proposals', $config)) { + return AccessResult::forbiddenIf($account->isAnonymous()); + } + + // Refuse to allow dialogue proposal creation if the parent dialogue is + // not set or not a dialogue. + return AccessResult::forbiddenIf(!$parentNode || !($parentNode->bundle() === 'dialogue')); + } + + return AccessResult::neutral(); + } + + /** + * Implements presave for dialogue proposal creation. + * + * @param \Drupal\Core\Entity\EntityInterface $entity + * An entity to presave. + */ + public function dialogueProposalPresave(EntityInterface $entity): void { + if ($this::DIALOGUE_PROPOSAL_TYPE === $entity->bundle()) { + $parentNode = $this->getParentNode(); + if ($parentNode) { + /**** @var \Drupal\node\Entity\Node $entity */ + $entity->set('field_dialogue', ['target_id' => $parentNode->id()]); + } + } + } + + /** + * Changes to the dialogue proposal form. + * + * @param array $form + * The form. + * @param \Drupal\Core\Form\FormStateInterface $form_state + * The state of the form. + */ + public function dialogueProposalFormAlter(array &$form, FormStateInterface $form_state): void { + // Disable form cache to prevent serialization error on file upload. + $form_state->disableCache(); + + foreach ($form as $key => $formPart) { + if (is_array($formPart) && isset($formPart['widget'])) { + $this->modifyRequired($form, $key, $formPart['widget']); + } + } + + $form['options']['#access'] = FALSE; + $form['advanced']['#access'] = FALSE; + $form['revision_log']['#access'] = FALSE; + $form['revision']['#access'] = FALSE; + $form['meta']['#access'] = FALSE; + + $form['field_image_upload']['widget']['#attributes']['drop_zone'] = TRUE; + $form['field_image_upload']['#drop_zone'] = TRUE; + $form['field_image_upload']['widget'][0]['value']['#attributes']['drop_zone'] = TRUE; + $form['field_dialogue_proposal_descr']['widget'][0]['value']['#description_display'] = 'before'; + $form['field_dialogue_proposal_category']['widget']['#description_position'] = 'top'; + $form['field_location']['widget'][0]['type']['#access'] = FALSE; + $form['field_location']['widget'][0]['geojson']['#access'] = FALSE; + $form['field_location']['widget'][0]['localplanids']['#access'] = FALSE; + $form['actions']['submit']['#submit'][] = [$this, 'formAlterSubmit']; + $form['actions']['submit']['#value'] = t('Send your proposal'); + $form['field_dialogue']['#access'] = FALSE; + + /** @var \Drupal\node\Entity\Node $parent */ + $parent = $this->getParentNode(); + + if ($parent) { + $config = $this->getProposalConfig($parent); + + if (!in_array('use_image_on_proposals', $config)) { + $form['field_image_upload']['#access'] = FALSE; + } + + if (!in_array('use_map_on_proposals', $config)) { + $form['field_location']['#access'] = FALSE; + } + + $parentLocationSelection = $parent->get('field_dialogue_proposal_location')->getValue(); + + $parentPoint = json_decode($parentLocationSelection[0]['point'] ?? ''); + $coordinates = $parentPoint->features[0]->geometry->coordinates ?? NULL; + + $parentZoomSelection = $parent->get('field_dialogue_proposal_zoom')->getValue(); + $form['field_location']['widget'][0]['point-widget']['#attributes']['data-map-config'] = json_encode([ + 'x' => $coordinates[0] ?? NULL, + 'y' => $coordinates[1] ?? NULL, + 'zoomLevel' => $parentZoomSelection[0]['value'] ?? 11, + ]); + } + + } + + /** + * Custom submit handler for dialog proposal form. + * + * @param array $form + * The form. + * @param \Drupal\Core\Form\FormStateInterface $form_state + * The state of the form. + */ + public function formAlterSubmit(array &$form, FormStateInterface $form_state): void { + $parentNode = $this->getParentNode(); + + if ($parentNode) { + $form_state->setRedirect('entity.node.canonical', ['node' => $parentNode->id()]); + } + } + + /** + * Get parent node. + * + * @return \Drupal\Core\Entity\EntityInterface|null + * The parent node. + */ + private function getParentNode(): ?EntityInterface { + try { + $parentId = $this->requestStack->getCurrentRequest()->query->get('dialogue'); + if ($parentId && is_numeric($parentId)) { + return $this->entityTypeManager->getStorage('node')->load($parentId); + } + } + catch (\Exception $e) { + return NULL; + } + + return NULL; + } + + /** + * Get proposal config related to dialogue. + * + * @param \Drupal\Core\Entity\EntityInterface $parent + * The parent node. + * + * @return array + * the proposal config. + */ + private function getProposalConfig(EntityInterface $parent): array { + /** @var \Drupal\node\NodeInterface $parent */ + $parentConfig = $parent->get('field_dialogue_proposal_config')->getValue(); + + return array_map(static fn(array $value) => $value['value'], $parentConfig); + } + + /** + * Change display of required fields. + * + * @param array $form + * The full form. + * @param string $key + * The form field. + * @param array $widget + * The form widget to change. + */ + private function modifyRequired(array &$form, string $key, array $widget): void { + if (!isset($widget['#required']) || !$widget['#required']) { + if (isset($widget['#title'])) { + $widget['#title'] = $widget['#title'] . '(' . $this->t('optional') . ')'; + } + if (isset($widget[0]['#title'])) { + $widget[0]['#title'] = $widget[0]['#title'] . '(' . $this->t('optional') . ')'; + } + } + + $form[$key]['widget'] = $widget; + } + +} diff --git a/web/modules/custom/hoeringsportal_dialogue/src/Theme/ThemeDialogueNegotiator.php b/web/modules/custom/hoeringsportal_dialogue/src/Theme/ThemeDialogueNegotiator.php new file mode 100644 index 000000000..74e74d284 --- /dev/null +++ b/web/modules/custom/hoeringsportal_dialogue/src/Theme/ThemeDialogueNegotiator.php @@ -0,0 +1,38 @@ +getRouteName() && DialogueHelper::DIALOGUE_PROPOSAL_TYPE === $route_match->getParameter('node_type')->id()) { + return TRUE; + } + + return FALSE; + } + + /** + * Determine the active theme. + * + * @param \Drupal\Core\Routing\RouteMatchInterface $route_match + * The route. + * + * @return string + * Machine name of theme. + */ + public function determineActiveTheme(RouteMatchInterface $route_match): string { + return 'hoeringsportal'; + } + +} diff --git a/web/modules/custom/hoeringsportal_forms/hoeringsportal_forms.module b/web/modules/custom/hoeringsportal_forms/hoeringsportal_forms.module index 796324d8c..124a6883a 100644 --- a/web/modules/custom/hoeringsportal_forms/hoeringsportal_forms.module +++ b/web/modules/custom/hoeringsportal_forms/hoeringsportal_forms.module @@ -28,6 +28,9 @@ function hoeringsportal_forms_theme_suggestions_alter(array &$suggestions, array if ($variables['form']['#form_id'] == 'node_public_meeting_form' || $variables['form']['#form_id'] == 'node_public_meeting_edit_form') { $suggestions[] = $hook . '__hoeringsportal_public_meeting'; } + if ($variables['form']['#form_id'] == 'node_dialogue_form' || $variables['form']['#form_id'] == 'node_dialogue_edit_form') { + $suggestions[] = $hook . '__hoeringsportal_dialogue'; + } } return $suggestions; @@ -52,6 +55,9 @@ function hoeringsportal_forms_theme($existing, $type, $theme, $path) { 'node_edit_form__hoeringsportal_public_meeting' => [ 'render element' => 'form', ], + 'node_edit_form__hoeringsportal_dialogue' => [ + 'render element' => 'form', + ], ]; } diff --git a/web/modules/custom/hoeringsportal_forms/templates/node-edit-form--hoeringsportal-dialogue.html.twig b/web/modules/custom/hoeringsportal_forms/templates/node-edit-form--hoeringsportal-dialogue.html.twig new file mode 100644 index 000000000..255534ff9 --- /dev/null +++ b/web/modules/custom/hoeringsportal_forms/templates/node-edit-form--hoeringsportal-dialogue.html.twig @@ -0,0 +1,15 @@ +{% extends '@claro/node-edit-form.html.twig' %} + +{% block main %} + {{ form|without('advanced', 'group_information', 'group_system_settings', 'actions') }} +{% endblock %} + +{% block secondary %} + {{ form.advanced }} + {{ form.group_information }} + {{ form.group_system_settings }} +{% endblock %} + +{% block footer %} + {{ form.actions }} +{% endblock %} diff --git a/web/themes/custom/hoeringsportal/assets/css/_base.scss b/web/themes/custom/hoeringsportal/assets/css/_base.scss index 5f7a9eb85..cb5bbd529 100644 --- a/web/themes/custom/hoeringsportal/assets/css/_base.scss +++ b/web/themes/custom/hoeringsportal/assets/css/_base.scss @@ -42,3 +42,16 @@ a { .text-decoration-underline { text-decoration: underline; } + +.text-decoration-none { + text-decoration: none; +} + +.ui-dialog-titlebar { + background-color: $white; + border: 0; +} + +.ui-button-icon { + background-color: $white; +} diff --git a/web/themes/custom/hoeringsportal/assets/css/_bootstrap-custom.scss b/web/themes/custom/hoeringsportal/assets/css/_bootstrap-custom.scss index 7ba900071..0516dc850 100755 --- a/web/themes/custom/hoeringsportal/assets/css/_bootstrap-custom.scss +++ b/web/themes/custom/hoeringsportal/assets/css/_bootstrap-custom.scss @@ -52,9 +52,13 @@ $red: #d32f2f; $red-light: #f2c0c0; $color-white: $white; $color-petroleum-100: oklch(98% 0.017 196.88); +$color-petroleum-200: oklch(90% 0.017 196.88); +$color-petroleum-800: oklch(43% 0.063 196.55); +$color-petroleum-900: oklch(30% 0.0406 197.75); $color-peach-100: oklch(94% 0.02 56.12); $color-peach-200: oklch(90% 0.02 56.12); $color-peach-600: oklch(50% 0.02 56.12); +$color-blue-100: oklch(0.9429 0.01 212.52); $color-stone-100: oklch(96% 0 0); $color-stone-600: oklch(46% 0 0); diff --git a/web/themes/custom/hoeringsportal/assets/css/hoeringsportal.scss b/web/themes/custom/hoeringsportal/assets/css/hoeringsportal.scss index 22bae29d4..79fe25e4e 100755 --- a/web/themes/custom/hoeringsportal/assets/css/hoeringsportal.scss +++ b/web/themes/custom/hoeringsportal/assets/css/hoeringsportal.scss @@ -1,7 +1,7 @@ @import "custom-variables", "bootstrap-custom", "layout/aside", "layout/page-map", "layout/page-project", "base", "module/nav", "module/hero", "module/btn", "module/card", "module/footer", "module/content", - "module/drupal", "module/underline", "module/timeline", + "module/drupal", "module/underline", "module/timeline", "module/dialogue", "module/status-messages", "module/campaign", "module/splash", "module/lead", "module/line-clamp", "module/page-teaser", "module/responsive-image-as-background", "module/social-sharing-buttons", @@ -10,7 +10,7 @@ "module/paragraph-content-promotion", "module/paragraph-files", "module/paragraph-link", "module/info_box", "module/search", "module/search-page", "module/newsletter", "module/proposal", - "module/animation", "module/header-v2", + "module/animation", "module/header-v2", "module/animated-svg", "../../node_modules/slick-carousel/slick/slick"; // We have an issue similar to https://www.drupal.org/project/bootstrap_barrio/issues/3228330#comment-14770789 diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_animated-svg.scss b/web/themes/custom/hoeringsportal/assets/css/module/_animated-svg.scss new file mode 100644 index 000000000..03a01b138 --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/css/module/_animated-svg.scss @@ -0,0 +1,102 @@ +a:has(svg) { + /* prettier-ignore */ + --ease-spring-lazy: linear(0, 0.008 1.1%, 0.034 2.3%, 0.134 4.9%, 0.264 7.3%, 0.683 14.3%, 0.797 16.5%, 0.89 18.6%, 0.967 20.7%, 1.027 22.8%, 1.073 25%, 1.104 27.3%, 1.123 30.6%, 1.119 34.3%, 1.018 49.5%, 0.988 58.6%, 0.985 65.2%, 1 84.5%, 1); + /* prettier-ignore */ + --ease-spring-glide: linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1); + --path-fill-color: white; + --path-stroke-color: var(--bs-secondary); + --sp2: 4px; + + display: flex; + gap: var(--sp2); + text-decoration: none; + + svg { + /* Comment */ + g.comment { + path { + transform-origin: bottom left; + stroke-width: 1.5px; + transition: stroke 200ms var(--ease-spring-glide); + } + } + + /* Reply */ + g.reply { + path { + transform-origin: center right; + stroke-width: 1.5px; + transition: stroke 200ms var(--ease-spring-glide); + } + } + + /* Thumbs up */ + g.thumbs-up { + path { + stroke-width: 1.5px; + stroke: var(--bs-secondary); + } + + path:first-of-type { + transform-origin: center left; + transition: fill 200ms var(--ease-spring-glide); + } + } + } + + /* Hover on */ + &:hover { + /* Comment hover */ + g.comment { + path { + animation: pop 400ms var(--ease-spring-lazy); + transition: fill 200ms 300ms var(--ease-spring-lazy); + fill: var(--bs-primary); + stroke: var(--bs-secondary); + } + } + + /* Reply hover */ + g.reply { + path { + animation: stretchX 400ms var(--ease-spring-lazy); + transition: fill 200ms 300ms var(--ease-spring-lazy); + fill: var(--bs-primary); + stroke: var(--bs-secondary); + } + } + + /* Thumbs-up hover */ + g.thumbs-up { + path:last-child { + transition: fill 200ms 200ms var(--ease-spring-lazy); + fill: var(--bs-primary); + } + path:first-of-type { + transform: rotate(-3deg); + transition: transform 200ms var(--ease-spring-lazy); + } + } + } +} + +/* Click on with thumbs-up svg */ +.liked a:has(svg) { + g.thumbs-up { + path:first-of-type { + animation: rotatePop 500ms var(--ease-spring-lazy); + } + path:last-child { + fill: var(--bs-primary); + } + } +} + +/* Thumbs-up already set*/ +.action-unflag a:has(svg) { + g.thumbs-up { + path:last-child { + fill: var(--bs-primary); + } + } +} diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_animation.scss b/web/themes/custom/hoeringsportal/assets/css/module/_animation.scss index 0fc9ec220..82dcaa1ca 100644 --- a/web/themes/custom/hoeringsportal/assets/css/module/_animation.scss +++ b/web/themes/custom/hoeringsportal/assets/css/module/_animation.scss @@ -9,3 +9,42 @@ width: initial; } } + +@keyframes rotate { + to { + transform: rotate(-5deg); + } +} + +@keyframes pop { + 50% { + transform: scale(0.9); + } + 75% { + transform: scale(1.1); + } + 100% { + transform: scale(1); + } +} + +@keyframes rotatePop { + 50% { + transform: rotate(10deg) translateX(-1px); + } + 75% { + transform: scale(1.2) rotate(-10deg) translateX(-2px); + } + 100% { + transform: scale(1); + } +} + +@keyframes stretchX { + 50% { + transform: scaleX(1.1); + } + 100% { + transform: scaleX(1); + } +} diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_btn.scss b/web/themes/custom/hoeringsportal/assets/css/module/_btn.scss index 4fe0e528e..a8480ffcc 100755 --- a/web/themes/custom/hoeringsportal/assets/css/module/_btn.scss +++ b/web/themes/custom/hoeringsportal/assets/css/module/_btn.scss @@ -18,3 +18,90 @@ } } } + +.btn-sm { + @extend .btn-sm; + + padding: $spacer * 0.5 $spacer * 0.75; + + &.btn-primary { + position: relative; + border: 0; + color: $white; + + &::after { + content: ""; + position: absolute; + bottom: 0; + left: 0; + height: 2px; + width: 100%; + background-color: transparent; + } + } +} + +.btn-toggle { + background: $color-petroleum-800; + border: none; + border-radius: 4px; + padding: 0; + cursor: pointer; + + &:has(input.btn-check:checked) { + background: $color-petroleum-900; + } + + input.btn-check { + &:checked + .toggle-badge { + color: white; + background-color: $color-petroleum-800; + border: 1px solid $color-petroleum-800; + transform: translateY(-2px); + + &:hover { + background-color: $color-petroleum-800; + } + } + } + + label.toggle-badge { + display: block; + background: white; + border-radius: 4px; + font-weight: 400; + font-size: $font-size-small; + border: 1px solid $color-petroleum-800; + color: $color-petroleum-800; + padding: 8px 12px; + margin-bottom: 0; + + @media (prefers-reduced-motion: no-preference) { + transition: + transform 300ms cubic-bezier(0.3, 0.7, 0.4, 1), + background-color 0.1s ease-in; + } + } + + &:hover label.toggle-badge { + color: $color-petroleum-800; + background-color: $color-petroleum-100; + border: 1px solid $color-petroleum-800; + + @media (prefers-reduced-motion: no-preference) { + transform: translateY(-2px); + transition: + transform 200ms cubic-bezier(0.3, 0.7, 0.4, 1.5), + background-color 0.2s ease-out; + } + } + + &:active label.toggle-badge { + @media (prefers-reduced-motion: no-preference) { + transform: translateY(-2px); + transition: + transform 34ms, + background-color 0.2s ease-out; + } + } +} diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_card.scss b/web/themes/custom/hoeringsportal/assets/css/module/_card.scss index dcb561f6a..11128a01a 100755 --- a/web/themes/custom/hoeringsportal/assets/css/module/_card.scss +++ b/web/themes/custom/hoeringsportal/assets/css/module/_card.scss @@ -24,6 +24,10 @@ color: $primary; } + .text-dialogue { + color: $petroleum; + } + text-decoration: none; height: 100%; transition: box-shadow var(--transition-duration-in) diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_dialogue.scss b/web/themes/custom/hoeringsportal/assets/css/module/_dialogue.scss new file mode 100644 index 000000000..0da7a8eb1 --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/css/module/_dialogue.scss @@ -0,0 +1,147 @@ +.proposal-layout { + max-width: 840px !important; +} + +.breadcrumb { + color: $color-petroleum-800; + + a { + color: inherit; + text-decoration: none; + } +} + +.flag-wrapper { + .flag a { + color: inherit; + text-decoration: none; + } + + .ajax-progress-throbber { + display: none; + } +} + +.node-dialogue-proposal-form { + .fieldset-legend { + font-size: 1rem; + font-weight: bold; + } + + label, + legend { + font-weight: 700; + margin-bottom: 0.5rem; + + span.optional { + margin-left: 0.5rem; + font-weight: normal; + } + } + + .form-required:after { + content: ""; + margin-bottom: 0.5rem; + } + + .image-widget { + @extend .d-flex; + @extend .flex-wrap; + + img { + margin-right: 4rem; + } + + .form-item { + @extend .flex-grow-1; + flex-basis: 50%; + } + + .file--image { + display: none; + } + + .js-form-submit { + flex-basis: 100%; + } + + .drop-message { + padding: 1rem; + } + + .button { + @extend .btn; + @extend .btn-primary; + + padding: 0.25rem 0.5rem; + font-size: 0.875rem; + border-radius: 0.2rem; + position: inherit; + + &:after { + display: none; + } + } + } + #edit-field-dialogue-proposal-category--wrapper .fieldset-wrapper { + display: flex; + flex-direction: column; + gap: $spacer; + + .form-checkboxes { + display: flex; + flex-wrap: wrap; + gap: $spacer; + order: 2; + } + .description { + order: 1; + } + } +} + +.dialogue-proposals { + font-size: $font-size-small; + + .card-text { + line-clamp: 3; + text-overflow: ellipsis; + -webkit-line-clamp: 3; + display: -webkit-box; + -webkit-box-orient: vertical; + height: 65px; + overflow: hidden; + } + + a { + color: inherit; + text-decoration: none; + } +} + +.proposal-category-items { + .badge { + border: 1px solid $color-petroleum-800; + color: $color-petroleum-800; + } +} + +.dialogue-proposal { + img { + height: auto; + width: 100%; + } + + #map { + height: 300px !important; + } + + .comments .indented { + border-left: 2px dashed $gray-600; + padding-left: 2em; + } + + .comments .comment-time { + color: $gray-600; + } +} diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_header-v2.scss b/web/themes/custom/hoeringsportal/assets/css/module/_header-v2.scss index 4c08656e4..316cbc9be 100644 --- a/web/themes/custom/hoeringsportal/assets/css/module/_header-v2.scss +++ b/web/themes/custom/hoeringsportal/assets/css/module/_header-v2.scss @@ -2,19 +2,29 @@ .image-wrapper { max-height: 80vh; overflow: hidden; + } - img { - object-fit: cover; - width: 100%; - height: auto; - } + .image-wrapper-half { + max-height: 40vh; + overflow: hidden; + } + + img { + object-fit: cover; + width: 100%; + height: auto; } .content-wrapper { padding-top: $spacer * 2; padding-bottom: $spacer * 2; - background-color: $color-peach-100; - border-bottom: 5px solid $color-peach-200; + + background-color: $color-petroleum-100; + border-bottom: 5px solid $color-petroleum-200; + + .text-background-match { + color: $petroleum; + } @include media-breakpoint-up(md) { padding-top: $spacer * 5; @@ -26,6 +36,41 @@ margin-top: -$spacer * 5; } } + + .type { + color: $petroleum; + } + + .tags { + color: $color-petroleum-800; + overflow: hidden; + text-overflow: ellipsis; + height: 1.5rem; + white-space: nowrap; + background: none; + border: none; + font: inherit; + cursor: pointer; + outline: inherit; + text-align: left; + max-width: 50%; + + &:focus { + overflow: auto; + text-overflow: ellipsis; + height: auto; + white-space: wrap; + } + } + + &.type-project { + background-color: $color-peach-100; + border-bottom: 5px solid $color-peach-200; + + .text-background-match { + color: $color-peach-600; + } + } } h1 { diff --git a/web/themes/custom/hoeringsportal/assets/css/module/_image-fade.scss b/web/themes/custom/hoeringsportal/assets/css/module/_image-fade.scss new file mode 100644 index 000000000..30f9925e4 --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/css/module/_image-fade.scss @@ -0,0 +1,21 @@ +.image-fade { + height: 80vh; + overflow: hidden; +} + +.image-slide { + border: none; + opacity: 0; + position: absolute; + top: 0; + left: 0; + -webkit-transition: opacity 3s linear; + -moz-transition: opacity 3s linear; + -o-transition: opacity 3s linear; + transition: opacity 3s linear; + height: 100% !important; +} + +.show { + opacity: 1; +} diff --git a/web/themes/custom/hoeringsportal/assets/js/animated-svg.js b/web/themes/custom/hoeringsportal/assets/js/animated-svg.js new file mode 100644 index 000000000..ec06784bb --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/js/animated-svg.js @@ -0,0 +1,26 @@ +document.addEventListener( + "click", + function (e) { + // Find the closest tag that's inside .flag-wrapper + const link = e.target.closest(".flag-wrapper"); + + if (link) { + // Find the child div with the flag classes + const flagDiv = link.querySelector(".flag"); + + // Only add animation if action-unflag does NOT exist + if (flagDiv && !flagDiv.classList.contains("action-unflag")) { + e.preventDefault(); + link.classList.add("liked"); + + // Cleanup class after animation + window.setTimeout(() => { + link.classList.remove("liked"); + }, 400); + } else { + e.preventDefault(); + } + } + }, + true, +); diff --git a/web/themes/custom/hoeringsportal/assets/js/hoeringsportal.js b/web/themes/custom/hoeringsportal/assets/js/hoeringsportal.js index e446d2d89..341ace62d 100755 --- a/web/themes/custom/hoeringsportal/assets/js/hoeringsportal.js +++ b/web/themes/custom/hoeringsportal/assets/js/hoeringsportal.js @@ -17,6 +17,9 @@ require("slick-carousel"); require("./slick-slider-config.js"); require("./filter-collapse.js"); require("./icons.js"); +require("./modify-dialogue-form.js"); +require("./modify-dialogue-proposal-comments.js"); +require("./animated-svg.js"); // Enable popovers. $(function () { diff --git a/web/themes/custom/hoeringsportal/assets/js/icons.js b/web/themes/custom/hoeringsportal/assets/js/icons.js index d7e70e723..e5b20cccc 100644 --- a/web/themes/custom/hoeringsportal/assets/js/icons.js +++ b/web/themes/custom/hoeringsportal/assets/js/icons.js @@ -31,6 +31,7 @@ import { faClock, faLocationDot, faComments, + faThumbsUp, } from "@fortawesome/free-solid-svg-icons"; // Import icons from the free brands package @@ -71,6 +72,7 @@ library.add( faCalendarDay, faClock, faLocationDot, + faThumbsUp, // Brand faDigg, faEvernote, @@ -84,4 +86,9 @@ library.add( faXTwitter, faTriangleExclamation, ); -dom.i2svg(); + +Drupal.behaviors.iconToSvg = { + attach: function (context, settings) { + dom.i2svg(); + }, +}; diff --git a/web/themes/custom/hoeringsportal/assets/js/image-fade.js b/web/themes/custom/hoeringsportal/assets/js/image-fade.js new file mode 100644 index 000000000..27cac1122 --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/js/image-fade.js @@ -0,0 +1,27 @@ +require("../css/module/_image-fade.scss"); + +let imgFadeSelector = document.querySelector(".image-fade"); +let firstImage = document.getElementById("img-0"); + +if (imgFadeSelector && firstImage) { + setInterval(nextImage, imgFadeSelector.dataset.imageDuration ?? 15000); + firstImage.classList.add("show"); +} + +let curImage = 0; +let numImages = document.querySelectorAll(".image-fade img").length; + +function nextImage() { + // Hide old image + document.getElementById("img-" + curImage).classList.toggle("show"); + + // Compute next image + curImage++; + if (curImage > numImages - 1) { + // Reset to first image + curImage = 0; + } + + // Show next image + document.getElementById("img-" + curImage).classList.toggle("show"); +} diff --git a/web/themes/custom/hoeringsportal/assets/js/modify-dialogue-form.js b/web/themes/custom/hoeringsportal/assets/js/modify-dialogue-form.js new file mode 100644 index 000000000..dab4c522f --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/js/modify-dialogue-form.js @@ -0,0 +1,17 @@ +Drupal.behaviors.modifyDialogueForm = { + attach: function (context, settings) { + once("modifyDialogueForm", ".file-resup", context).forEach( + function (element) { + let imageDescription = document.querySelector( + ".field--name-field-image-upload .form-item > .description", + ); + let dropArea = document.querySelector( + ".field--name-field-image-upload .form-item .file-resup-wrapper .drop-message", + ); + + imageDescription.classList.toggle("d-block"); + dropArea.append(imageDescription); + }, + ); + }, +}; diff --git a/web/themes/custom/hoeringsportal/assets/js/modify-dialogue-proposal-comments.js b/web/themes/custom/hoeringsportal/assets/js/modify-dialogue-proposal-comments.js new file mode 100644 index 000000000..55b4d3cc4 --- /dev/null +++ b/web/themes/custom/hoeringsportal/assets/js/modify-dialogue-proposal-comments.js @@ -0,0 +1,12 @@ +Drupal.behaviors.modifyDialogueProposalComments = { + attach: function (context, settings) { + once( + "modifyDialogueProposalComments", + ".comments .indented", + context, + ).forEach(function (element) { + let prev = element.previousElementSibling; + prev.append(element); + }); + }, +}; diff --git a/web/themes/custom/hoeringsportal/hoeringsportal.libraries.yml b/web/themes/custom/hoeringsportal/hoeringsportal.libraries.yml index fa439f930..841fac361 100755 --- a/web/themes/custom/hoeringsportal/hoeringsportal.libraries.yml +++ b/web/themes/custom/hoeringsportal/hoeringsportal.libraries.yml @@ -1,14 +1,29 @@ global-styling: - version: VERSION css: theme: build/hoeringsportal.css: {} bottom-scripts: - version: VERSION js: build/hoeringsportal.js: { scope: bottom, preprocess: false } build/runtime.js: { scope: bottom, preprocess: false } dependencies: - core/jquery - core/drupal + +image-fade: + version: VERSION + js: + build/image-fade.js: { scope: bottom, preprocess: false } + css: + theme: + build/image-fade.css: {} + +map-display: + version: VERSION + css: + theme: + build/show-map.css: {} + js: + build/show-map.js: { preprocess: false } + build/runtime.js: { preprocess: false } diff --git a/web/themes/custom/hoeringsportal/hoeringsportal.theme b/web/themes/custom/hoeringsportal/hoeringsportal.theme index 9c3fe0d22..eb7eeaba5 100755 --- a/web/themes/custom/hoeringsportal/hoeringsportal.theme +++ b/web/themes/custom/hoeringsportal/hoeringsportal.theme @@ -176,6 +176,20 @@ function hoeringsportal_theme_suggestions_container_alter(array &$suggestions, a $suggestions[] = 'container__' . str_replace('-', '_', $variables['element']['#type']); } +/** + * Implements hook_theme_suggestions_HOOK_alter(). + */ +function hoeringsportal_theme_suggestions_views_exposed_form_block_alter(array &$suggestions, array $variables) { + $suggestions[] = 'views_exposed_form__' . str_replace('-', '_', $variables['form']['#id']); +} + +/** + * Implements hook_theme_suggestions_HOOK_alter(). + */ +function hoeringsportal_theme_suggestions_views_exposed_form_alter(array &$suggestions, array $variables) { + $suggestions[] = 'views_exposed_form__' . str_replace('-', '_', $variables['form']['#id']); +} + /** * Implements hook_preprocess_html(). */ diff --git a/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-comment.svg.html.twig b/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-comment.svg.html.twig new file mode 100644 index 000000000..ce2b3bee3 --- /dev/null +++ b/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-comment.svg.html.twig @@ -0,0 +1,6 @@ + diff --git a/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-reply.svg.html.twig b/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-reply.svg.html.twig new file mode 100644 index 000000000..566e290d7 --- /dev/null +++ b/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-reply.svg.html.twig @@ -0,0 +1,6 @@ + diff --git a/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-thumbs-up.svg.html.twig b/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-thumbs-up.svg.html.twig new file mode 100644 index 000000000..d6735f137 --- /dev/null +++ b/web/themes/custom/hoeringsportal/templates/animated-svg/icon-deltag-thumbs-up.svg.html.twig @@ -0,0 +1,7 @@ + diff --git a/web/themes/custom/hoeringsportal/templates/comment/comment.html.twig b/web/themes/custom/hoeringsportal/templates/comment/comment.html.twig new file mode 100644 index 000000000..3b2fe1af4 --- /dev/null +++ b/web/themes/custom/hoeringsportal/templates/comment/comment.html.twig @@ -0,0 +1,85 @@ +{# +/** + * @file + * Default theme implementation for comments. + * + * Available variables: + * - author: (optional) Comment author. Can be a link or plain text. + * - content: The content-related items for the comment display. Use + * {{ content }} to print them all, or print a subset such as + * {{ content.field_example }}. Use the following code to temporarily suppress + * the printing of a given child element: + * @code + * {{ content|without('field_example') }} + * @endcode + * - created: (optional) Formatted date and time for when the comment was + * created. Preprocess functions can reformat it by calling + * DateFormatter::format() with the desired parameters on the + * 'comment.created' variable. + * - changed: (optional) Formatted date and time for when the comment was last + * changed. Preprocess functions can reformat it by calling + * DateFormatter::format() with the desired parameters on the + * 'comment.changed' variable. + * - permalink: Comment permalink. + * - submitted: (optional) Submission information created from author and + * created during template_preprocess_comment(). + * - user_picture: (optional) The comment author's profile picture. + * - status: Comment status. Possible values are: + * unpublished, published, or preview. + * - title: (optional) Comment title, linked to the comment. + * - attributes: HTML attributes for the containing element. + * The attributes.class may contain one or more of the following classes: + * - comment: The current template type; for instance, 'theming hook'. + * - by-anonymous: Comment by an unregistered user. + * - by-{entity-type}-author: Comment by the author of the parent entity, + * eg. by-node-author. + * - preview: When previewing a new or edited comment. + * The following applies only to viewers who are registered users: + * - unpublished: An unpublished comment visible only to administrators. + * - title_prefix: Additional output populated by modules, intended to be + * displayed in front of the main title tag that appears in the template. + * - title_suffix: Additional output populated by modules, intended to be + * displayed after the main title tag that appears in the template. + * - content_attributes: List of classes for the styling of the comment content. + * - title_attributes: Same as attributes, except applied to the main title + * tag that appears in the template. + * - threaded: A flag indicating whether the comments are threaded or not. + * + * These variables are provided to give context about the parent comment (if + * any, optional): + * - parent_comment: Full parent comment entity (if any). + * - parent_author: Equivalent to author for the parent comment. + * - parent_created: Equivalent to created for the parent comment. + * - parent_changed: Equivalent to changed for the parent comment. + * - parent_title: Equivalent to title for the parent comment. + * - parent_permalink: Equivalent to permalink for the parent comment. + * - parent: A text string of parent comment submission information created from + * 'parent_author' and 'parent_created' during template_preprocess_comment(). + * This information is presented to help screen readers follow lengthy + * discussion threads. You can hide this from sighted users using the class + * visually-hidden. + * + * These two variables are provided for context: + * - comment: Full comment object. + * - commented_entity: Entity the comments are attached to. + * + * @see template_preprocess_comment() + * + * @ingroup themeable + */ +#} +{{ 'Before you can contribute you must validate your user account with NemID.'|t }}
-{{ 'You only have to do it once, and you can do it now.'|t }}
- {{ include('@hoeringsportal_user/nemid-disclosure-text-da.html.twig') }} - {{ 'Validate'|t }} -