From fd2fc67b4cbe5c748ab9d584316f8d85fb6bff45 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Thu, 15 Feb 2024 14:43:55 +0000 Subject: [PATCH 01/16] Only increment pledge count if sign_up webform submitted --- .../custom/liofa_pledges/liofa_pledges.module | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module index 15e036b1a..e55c64807 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module +++ b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module @@ -6,15 +6,19 @@ use Drupal\webform\WebformSubmissionInterface; * Implements hook_ENTITY_TYPE_insert() for webform_submission entities. */ function liofa_pledges_webform_submission_insert(WebformSubmissionInterface $webform_submission) { - $config = \Drupal::configFactory() - ->getEditable('online_pledge_count.countsettings'); + object_log('Webdform_submission', $webform_submission); + if ($webform_submission->getWebform()->id() == 'sign_up') { + \Drupal::logger('liofa_pledges')->notice("id is " . $webform_id); + $config = \Drupal::configFactory() + ->getEditable('online_pledge_count.countsettings'); - $onsite_pledges = intval($config->get('pledge_count_submissions')); - $onsite_pledges++; + $onsite_pledges = intval($config->get('pledge_count_submissions')); + $onsite_pledges++; - $config - ->set('pledge_count_submissions', $onsite_pledges) - ->save(); + $config + ->set('pledge_count_submissions', $onsite_pledges) + ->save(); + } } From 35b34ac8220f0d69d6a4ef8c07458c40d26f2a14 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Thu, 15 Feb 2024 15:32:46 +0000 Subject: [PATCH 02/16] Remove logging --- .../liofa/modules/custom/liofa_pledges/liofa_pledges.module | 2 -- 1 file changed, 2 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module index e55c64807..ab4100f82 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module +++ b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module @@ -6,9 +6,7 @@ use Drupal\webform\WebformSubmissionInterface; * Implements hook_ENTITY_TYPE_insert() for webform_submission entities. */ function liofa_pledges_webform_submission_insert(WebformSubmissionInterface $webform_submission) { - object_log('Webdform_submission', $webform_submission); if ($webform_submission->getWebform()->id() == 'sign_up') { - \Drupal::logger('liofa_pledges')->notice("id is " . $webform_id); $config = \Drupal::configFactory() ->getEditable('online_pledge_count.countsettings'); From 330fb64dba52e8ed6f47039ee9ccd500866b7f67 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Tue, 20 Feb 2024 17:05:06 +0000 Subject: [PATCH 03/16] sign up and pledge changes --- .../online_pledge_count.countsettings.yml | 1 + ..._liofa.yml => webform.webform.sign_up.yml} | 60 ++++--------------- 2 files changed, 11 insertions(+), 50 deletions(-) create mode 100644 project/config/liofa/config/online_pledge_count.countsettings.yml rename project/config/liofa/config/{webform.webform.sign_up_to_liofa.yml => webform.webform.sign_up.yml} (80%) diff --git a/project/config/liofa/config/online_pledge_count.countsettings.yml b/project/config/liofa/config/online_pledge_count.countsettings.yml new file mode 100644 index 000000000..09109c48a --- /dev/null +++ b/project/config/liofa/config/online_pledge_count.countsettings.yml @@ -0,0 +1 @@ +pledge_count_submissions: 8 diff --git a/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml b/project/config/liofa/config/webform.webform.sign_up.yml similarity index 80% rename from project/config/liofa/config/webform.webform.sign_up_to_liofa.yml rename to project/config/liofa/config/webform.webform.sign_up.yml index 870ec96ad..286eb0cc9 100644 --- a/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml +++ b/project/config/liofa/config/webform.webform.sign_up.yml @@ -1,30 +1,27 @@ -uuid: d0dea441-50ef-4e54-b3e0-8168f3f48904 +uuid: ed10eb20-ca4f-4d37-b853-94eb52cea6ac langcode: en status: open dependencies: { } weight: 0 open: null close: null -uid: 305 +uid: 295 template: false archive: false -id: sign_up_to_liofa -title: 'Sign up to Líofa' -description: '' +id: sign_up +title: 'Sign up' +description: 'Sign up webform' categories: { } elements: |- - signup_name: + name: '#type': textfield '#title': Name - '#required': true - signup_email: + email_address: '#type': email '#title': 'Email address' - '#required': true - signup_postcode: + postcode: '#type': textfield '#title': Postcode - '#pattern': '^[A-Za-z]{1,2}[0-9Rr][0-9A-Za-z]? [0-9][ABD-HJLNP-UW-Zabd-hjlnp-uw-z]{2}$' css: '' javascript: '' settings: @@ -154,7 +151,7 @@ settings: entity_limit_user_interval: null purge: none purge_days: null - results_disabled: true + results_disabled: false results_disabled_ignore: false results_customize: false token_view: false @@ -208,42 +205,5 @@ access: roles: { } users: { } permissions: { } -handlers: - email: - id: email - handler_id: email - label: Email - notes: '' - status: true - conditions: { } - weight: 0 - settings: - states: - - completed - to_mail: _default - to_options: { } - bcc_mail: '' - bcc_options: { } - cc_mail: '' - cc_options: { } - from_mail: _default - from_options: { } - from_name: _default - reply_to: '' - return_path: '' - sender_mail: '' - sender_name: '' - subject: _default - body: _default - excluded_elements: { } - ignore_access: false - exclude_empty: true - exclude_empty_checkbox: false - exclude_attachments: false - html: true - attachments: false - twig: false - theme_name: '' - parameters: { } - debug: false +handlers: { } variants: { } From c302252ccf549ae79b526cd6e024f4a4972e682f Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Tue, 20 Feb 2024 18:11:54 +0000 Subject: [PATCH 04/16] Working on bulk pledges summary page --- .../src/Controller/LiofaPledgesController.php | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index a78f8ff1d..7390ceb19 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -2,6 +2,8 @@ namespace Drupal\liofa_pledges\Controller; use Drupal\Core\Controller\ControllerBase; +use Drupal\node\NodeInterface; +use Drupal\views\Views; /** * Provides route responses for the Example module. @@ -15,8 +17,33 @@ class LiofaPledgesController extends ControllerBase { * A simple renderable array. */ public function pledgesSummary() { + $config = \Drupal::configFactory()->get('online_pledge_count.countsettings'); + // Retrieve pledge count submitted online. + $onsite_pledges = intval($config->get('pledge_count_submissions')); + // Now need to get bulk pledges count. + $bulk_pledge_count = 0; + $result = \Drupal::entityQueryAggregate('node') + ->accessCheck(FALSE) + ->aggregate('field_bulk_number', 'sum') + ->condition('type', 'bulk_pledges') + ->condition('status', NodeInterface::PUBLISHED) + ->execute(); + if (!empty($result) && is_array($result)) { + $bulk_pledge_count = $result[0]['field_bulk_number_sum']; + } + object_log('totals', $result); + + $table_html = ' + + + + + + + +
ComponentValue
Pledges submitted online' . $onsite_pledges . '
Bulk pledges' . $bulk_pledge_count . '
Pledge count offset1,000
Total26,258
'; return [ - '#markup' => 'Hello, world', + '#markup' => 'The table below shows a breakdown of the pledge count value shown on the home page.' . $table_html, ]; } From e4973ed4b6cb2348a348e369fefb4cd2c2fe8c54 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Tue, 20 Feb 2024 18:16:21 +0000 Subject: [PATCH 05/16] Pledge count summary page working --- .../src/Controller/LiofaPledgesController.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index 7390ceb19..93ca5871b 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -31,15 +31,20 @@ public function pledgesSummary() { if (!empty($result) && is_array($result)) { $bulk_pledge_count = $result[0]['field_bulk_number_sum']; } - object_log('totals', $result); - + // Get pledge count offset. + $pledge_count_offset = intval($config->get('pledge_count_offset')); + if (empty($pledge_count_offset)) { + $pledge_count_offset = 0; + } + // Calculate total. + $total = $onsite_pledges + $bulk_pledge_count + $pledge_count_offset; $table_html = ' - - + +
ComponentValue
Pledges submitted online' . $onsite_pledges . '
Bulk pledges' . $bulk_pledge_count . '
Pledge count offset1,000
Total26,258
Pledge count offset' . $pledge_count_offset . '
Total' . $total . '
'; return [ From d6ac23a8e4a269413a0a13e83c826d9320b01941 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 10:40:30 +0000 Subject: [PATCH 06/16] Dependency injection attempts --- .../src/Controller/LiofaPledgesController.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index 93ca5871b..1ed0e7693 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -1,15 +1,35 @@ configFactory = $configFactory; + } + /** * Returns a simple page. * From c8fa03d21f1b894107cd02a950856e7a4f09cb43 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 11:46:57 +0000 Subject: [PATCH 07/16] Dependency injection working for config.factory --- .../src/Controller/LiofaPledgesController.php | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index 1ed0e7693..3c5133aaa 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -3,6 +3,7 @@ use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Controller\ControllerBase; +use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\Form\ConfigFormBaseTrait; use Drupal\node\NodeInterface; use Drupal\views\Views; @@ -14,20 +15,22 @@ class LiofaPledgesController extends ControllerBase { /** - * The config factory. + * Constructs the SchemaListenerController object. * - * @var \Drupal\Core\Config\ConfigFactoryInterface + * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory + * The config factory. */ - protected $configFactory; + public function __construct(ConfigFactoryInterface $config_factory) { + $this->configFactory = $config_factory; + } /** - * Constructs a LiofaPledgesController. - * - * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory - * The config factory. + * {@inheritdoc} */ - public function __construct(ConfigFactoryInterface $configFactory) { - $this->configFactory = $configFactory; + public static function create(ContainerInterface $container) { + return new static( + $container->get('config.factory') + ); } /** @@ -37,7 +40,7 @@ public function __construct(ConfigFactoryInterface $configFactory) { * A simple renderable array. */ public function pledgesSummary() { - $config = \Drupal::configFactory()->get('online_pledge_count.countsettings'); + $config = $this->configFactory->get('online_pledge_count.countsettings'); // Retrieve pledge count submitted online. $onsite_pledges = intval($config->get('pledge_count_submissions')); // Now need to get bulk pledges count. From a1b4cf5b6d939a5b393b21664c3d90d7690450c3 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 12:01:16 +0000 Subject: [PATCH 08/16] Dependency injection completed --- .../src/Controller/LiofaPledgesController.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index 3c5133aaa..969a20df5 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -4,6 +4,7 @@ use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; +use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Form\ConfigFormBaseTrait; use Drupal\node\NodeInterface; use Drupal\views\Views; @@ -15,13 +16,16 @@ class LiofaPledgesController extends ControllerBase { /** - * Constructs the SchemaListenerController object. + * Constructs the LiofaPledgesController object. * * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager + * The entity type manager */ - public function __construct(ConfigFactoryInterface $config_factory) { + public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) { $this->configFactory = $config_factory; + $this->entityTypeManager = $entity_type_manager; } /** @@ -29,7 +33,8 @@ public function __construct(ConfigFactoryInterface $config_factory) { */ public static function create(ContainerInterface $container) { return new static( - $container->get('config.factory') + $container->get('config.factory'), + $container->get('entity_type.manager') ); } @@ -45,7 +50,8 @@ public function pledgesSummary() { $onsite_pledges = intval($config->get('pledge_count_submissions')); // Now need to get bulk pledges count. $bulk_pledge_count = 0; - $result = \Drupal::entityQueryAggregate('node') + // \Drupal::entityQueryAggregate('node') + $result = $this->entityTypeManager->getStorage('node')->getAggregateQuery('AND') ->accessCheck(FALSE) ->aggregate('field_bulk_number', 'sum') ->condition('type', 'bulk_pledges') From 3f89f6264e1ba734b53fa8133bf393bacc404d18 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 12:17:26 +0000 Subject: [PATCH 09/16] Code improvements --- .../src/Controller/LiofaPledgesController.php | 61 ++++++++++++------- 1 file changed, 40 insertions(+), 21 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index 969a20df5..d856f91be 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -15,6 +15,20 @@ */ class LiofaPledgesController extends ControllerBase { + /** + * The config for pledge counts. + * + * @var \Drupal\Core\Config\Config + */ + protected $config; + + /** + * Count storage. + */ + protected $onsite_pledges; + protected $bulk_pledge_count; + protected $pledge_count_offset; + /** * Constructs the LiofaPledgesController object. * @@ -26,6 +40,7 @@ class LiofaPledgesController extends ControllerBase { public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) { $this->configFactory = $config_factory; $this->entityTypeManager = $entity_type_manager; + $this->config = $this->configFactory->get('online_pledge_count.countsettings'); } /** @@ -45,11 +60,29 @@ public static function create(ContainerInterface $container) { * A simple renderable array. */ public function pledgesSummary() { - $config = $this->configFactory->get('online_pledge_count.countsettings'); + $this->generateTotals(); + // Calculate overall total. + $total = $this->onsite_pledges + $this->bulk_pledge_count + $this->pledge_count_offset; + // Output table. + $table_html = ' + + + + + + + +
ComponentValue
Pledges submitted online' . $this->onsite_pledges . '
Bulk pledges' . $this->bulk_pledge_count . '
Pledge count offset' . $this->pledge_count_offset . '
Total' . $total . '
'; + return [ + '#markup' => 'The table below shows a breakdown of the pledge count value shown on the home page.' . $table_html, + ]; + } + + protected function generateTotals() { // Retrieve pledge count submitted online. - $onsite_pledges = intval($config->get('pledge_count_submissions')); + $this->onsite_pledges = intval($this->config->get('pledge_count_submissions')); // Now need to get bulk pledges count. - $bulk_pledge_count = 0; + $this->bulk_pledge_count = 0; // \Drupal::entityQueryAggregate('node') $result = $this->entityTypeManager->getStorage('node')->getAggregateQuery('AND') ->accessCheck(FALSE) @@ -58,27 +91,13 @@ public function pledgesSummary() { ->condition('status', NodeInterface::PUBLISHED) ->execute(); if (!empty($result) && is_array($result)) { - $bulk_pledge_count = $result[0]['field_bulk_number_sum']; + $this->bulk_pledge_count = $result[0]['field_bulk_number_sum']; } // Get pledge count offset. - $pledge_count_offset = intval($config->get('pledge_count_offset')); - if (empty($pledge_count_offset)) { - $pledge_count_offset = 0; + $this->pledge_count_offset = intval($this->config->get('pledge_count_offset')); + if (empty($this->pledge_count_offset)) { + $this->pledge_count_offset = 0; } - // Calculate total. - $total = $onsite_pledges + $bulk_pledge_count + $pledge_count_offset; - $table_html = ' - - - - - - - -
ComponentValue
Pledges submitted online' . $onsite_pledges . '
Bulk pledges' . $bulk_pledge_count . '
Pledge count offset' . $pledge_count_offset . '
Total' . $total . '
'; - return [ - '#markup' => 'The table below shows a breakdown of the pledge count value shown on the home page.' . $table_html, - ]; } } From e3fd76840ef120a46744161bc96703d575344f29 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 12:18:35 +0000 Subject: [PATCH 10/16] Remove comment --- .../liofa_pledges/src/Controller/LiofaPledgesController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index d856f91be..87f33f661 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -83,7 +83,6 @@ protected function generateTotals() { $this->onsite_pledges = intval($this->config->get('pledge_count_submissions')); // Now need to get bulk pledges count. $this->bulk_pledge_count = 0; - // \Drupal::entityQueryAggregate('node') $result = $this->entityTypeManager->getStorage('node')->getAggregateQuery('AND') ->accessCheck(FALSE) ->aggregate('field_bulk_number', 'sum') From 2f5efbee23e136b8889ad61ba8419bb1902fa11c Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 12:26:51 +0000 Subject: [PATCH 11/16] Increase pledge count --- .../config/liofa/config/online_pledge_count.countsettings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/config/liofa/config/online_pledge_count.countsettings.yml b/project/config/liofa/config/online_pledge_count.countsettings.yml index 09109c48a..64708b37c 100644 --- a/project/config/liofa/config/online_pledge_count.countsettings.yml +++ b/project/config/liofa/config/online_pledge_count.countsettings.yml @@ -1 +1 @@ -pledge_count_submissions: 8 +pledge_count_submissions: 26356 From 4be0a8324f4edcf0f22f9c5532c4b97912ef6ffb Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 13:51:58 +0000 Subject: [PATCH 12/16] Instll liofa_pledges module and change signup webform config --- project/config/liofa/config/core.extension.yml | 1 + .../liofa/config/online_pledge_count.countsettings.yml | 1 - project/config/liofa/config/webform.webform.sign_up.yml | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 project/config/liofa/config/online_pledge_count.countsettings.yml diff --git a/project/config/liofa/config/core.extension.yml b/project/config/liofa/config/core.extension.yml index e136c0c4b..47816f1e9 100644 --- a/project/config/liofa/config/core.extension.yml +++ b/project/config/liofa/config/core.extension.yml @@ -73,6 +73,7 @@ module: link: 0 link_fix_absolute_urls: 0 linkit: 0 + liofa_pledges: 0 locale: 0 media: 0 media_file_delete: 0 diff --git a/project/config/liofa/config/online_pledge_count.countsettings.yml b/project/config/liofa/config/online_pledge_count.countsettings.yml deleted file mode 100644 index 64708b37c..000000000 --- a/project/config/liofa/config/online_pledge_count.countsettings.yml +++ /dev/null @@ -1 +0,0 @@ -pledge_count_submissions: 26356 diff --git a/project/config/liofa/config/webform.webform.sign_up.yml b/project/config/liofa/config/webform.webform.sign_up.yml index 286eb0cc9..a372ec783 100644 --- a/project/config/liofa/config/webform.webform.sign_up.yml +++ b/project/config/liofa/config/webform.webform.sign_up.yml @@ -31,7 +31,7 @@ settings: ajax_effect: '' ajax_speed: null page: true - page_submit_path: '' + page_submit_path: '/signup' page_confirm_path: '' page_theme_name: '' form_title: both @@ -128,8 +128,8 @@ settings: draft_pending_multiple_message: '' confirmation_type: page confirmation_url: '' - confirmation_title: '' - confirmation_message: '' + confirmation_title: 'Success' + confirmation_message: 'Thank you for signing up to Liofa.' confirmation_attributes: { } confirmation_back: true confirmation_back_label: '' From 87f705584b8dbbb84b89d75fec8c1df87592fb71 Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 14:15:39 +0000 Subject: [PATCH 13/16] Change config name --- .../custom/liofa_pledges/liofa_pledges.links.menu.yml | 2 +- .../modules/custom/liofa_pledges/liofa_pledges.module | 2 +- .../custom/liofa_pledges/liofa_pledges.routing.yml | 2 +- .../src/Controller/LiofaPledgesController.php | 2 +- .../custom/liofa_pledges/src/Form/PledgeCountForm.php | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.links.menu.yml b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.links.menu.yml index 1d8189eb6..8a3ded103 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.links.menu.yml +++ b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.links.menu.yml @@ -1,6 +1,6 @@ liofa_pledges.pledge_count: title: 'Pledge count' - route_name: liofa_pledges.online_pledge_count + route_name: liofa_pledges.liofa_pledges description: 'Configure pledge count' parent: unity.admin_config weight: 99 diff --git a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module index ab4100f82..d77bbf219 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module +++ b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.module @@ -8,7 +8,7 @@ use Drupal\webform\WebformSubmissionInterface; function liofa_pledges_webform_submission_insert(WebformSubmissionInterface $webform_submission) { if ($webform_submission->getWebform()->id() == 'sign_up') { $config = \Drupal::configFactory() - ->getEditable('online_pledge_count.countsettings'); + ->getEditable('liofa_pledges.countsettings'); $onsite_pledges = intval($config->get('pledge_count_submissions')); $onsite_pledges++; diff --git a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.routing.yml b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.routing.yml index 0ff23fca0..2197a19cb 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.routing.yml +++ b/project/sites/liofa/modules/custom/liofa_pledges/liofa_pledges.routing.yml @@ -1,4 +1,4 @@ -liofa_pledges.online_pledge_count: +liofa_pledges.liofa_pledges: path: '/admin/config/liofa_pledges/pledge_count' defaults: _form: '\Drupal\liofa_pledges\Form\PledgeCountForm' diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php index 87f33f661..8f2c6d01f 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Controller/LiofaPledgesController.php @@ -40,7 +40,7 @@ class LiofaPledgesController extends ControllerBase { public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) { $this->configFactory = $config_factory; $this->entityTypeManager = $entity_type_manager; - $this->config = $this->configFactory->get('online_pledge_count.countsettings'); + $this->config = $this->configFactory->get('liofa_pledges.countsettings'); } /** diff --git a/project/sites/liofa/modules/custom/liofa_pledges/src/Form/PledgeCountForm.php b/project/sites/liofa/modules/custom/liofa_pledges/src/Form/PledgeCountForm.php index 0781e7765..416aa408c 100644 --- a/project/sites/liofa/modules/custom/liofa_pledges/src/Form/PledgeCountForm.php +++ b/project/sites/liofa/modules/custom/liofa_pledges/src/Form/PledgeCountForm.php @@ -15,7 +15,7 @@ class pledgeCountForm extends ConfigFormBase { */ protected function getEditableConfigNames() { return [ - 'online_pledge_count.countsettings', + 'liofa_pledges.countsettings', ]; } @@ -23,14 +23,14 @@ protected function getEditableConfigNames() { * {@inheritdoc} */ public function getFormId() { - return 'online_pledge_count'; + return 'liofa_pledges'; } /** * {@inheritdoc} */ public function buildForm(array $form, FormStateInterface $form_state) { - $config = $this->config('online_pledge_count.countsettings'); + $config = $this->config('liofa_pledges.countsettings'); $message_online = "For data protection reasons, pledges submitted via the website are deleted after 3 days. The website maintains"; $message_online .= "
a count of all submitted pledges, deleted and not deleted. On very rare occasions, the count might get out of sync. "; @@ -82,7 +82,7 @@ public function validateForm(array &$form, FormStateInterface $form_state) { public function submitForm(array &$form, FormStateInterface $form_state) { parent::submitForm($form, $form_state); - $this->config('online_pledge_count.countsettings') + $this->config('liofa_pledges.countsettings') ->set('pledge_count_submissions', $form_state->getValue('pledge_count_submissions')) ->set('pledge_count_offset', $form_state->getValue('pledge_count_offset')) ->save(); From b58168b047024bad263bf346906d424b49278a9b Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 14:16:02 +0000 Subject: [PATCH 14/16] Config corrections --- ...tity_form_display.node.webform.default.yml | 29 +- ...tity_view_display.node.webform.default.yml | 12 +- ....entity_view_display.node.webform.diff.yml | 37 --- ...ntity_view_display.node.webform.teaser.yml | 14 +- .../config/liofa/config/core.extension.yml | 1 + ...eld.node.webform.field_webform_footer.yml} | 16 +- ...ield.node.webform.field_webform_header.yml | 29 ++ ...ield.storage.node.field_webform_footer.yml | 19 ++ ...ield.storage.node.field_webform_header.yml | 19 ++ ...ion.user_add_role_action.administrator.yml | 0 ....user_remove_role_action.administrator.yml | 0 .../language/en/user.role.administrator.yml | 0 .../language/ga/search.page.user_search.yml | 1 + .../config/language/ga/views.view.content.yml | 7 + .../config/language/ga/views.view.files.yml | 6 + .../config/language/ga/views.view.media.yml | 7 + .../language/ga/views.view.media_library.yml | 43 +++ .../ga/views.view.moderated_content.yml | 7 + .../ga/views.view.user_admin_people.yml | 6 + .../ga/webform.webform_options.languages.yml | 1 + .../webform.webform_options.translations.yml | 1 + .../config/liofa_pledges.countsettings.yml | 2 + ...ion.user_add_role_action.administrator.yml | 0 ....user_remove_role_action.administrator.yml | 0 .../user.role.administrator.yml | 5 - .../liofa/config/user.role.anonymous.yml | 2 +- .../liofa/config/user.role.authenticated.yml | 2 +- .../config/user.role.supervisor_user.yml | 24 ++ .../liofa/config/views.view.bulk_pledges.yml | 232 +++++++------- .../config/views.view.sign_up_to_liofa.yml | 292 ------------------ .../liofa/config/webform.webform.sign_up.yml | 6 +- project/config/liofa/local/devel.settings.yml | 1 - .../liofa/local/devel.toolbar.settings.yml | 1 - .../language/en/system.action.clone_nodes.yml | 1 - .../local/language/en/system.menu.devel.yml | 2 - .../liofa/local/migrate_drupal.settings.yml | 8 - .../liofa/local/stage_file_proxy.settings.yml | 9 - .../liofa/local/system.action.clone_nodes.yml | 13 - .../config/liofa/local/system.menu.devel.yml | 6 +- 39 files changed, 336 insertions(+), 525 deletions(-) delete mode 100644 project/config/liofa/config/core.entity_view_display.node.webform.diff.yml rename project/config/liofa/config/{field.field.node.webform.body.yml => field.field.node.webform.field_webform_footer.yml} (64%) create mode 100644 project/config/liofa/config/field.field.node.webform.field_webform_header.yml create mode 100644 project/config/liofa/config/field.storage.node.field_webform_footer.yml create mode 100644 project/config/liofa/config/field.storage.node.field_webform_header.yml rename project/config/liofa/{local => config}/language/en/system.action.user_add_role_action.administrator.yml (100%) rename project/config/liofa/{local => config}/language/en/system.action.user_remove_role_action.administrator.yml (100%) rename project/config/liofa/{local => config}/language/en/user.role.administrator.yml (100%) create mode 100644 project/config/liofa/config/language/ga/search.page.user_search.yml create mode 100644 project/config/liofa/config/language/ga/views.view.content.yml create mode 100644 project/config/liofa/config/language/ga/views.view.files.yml create mode 100644 project/config/liofa/config/language/ga/views.view.media.yml create mode 100644 project/config/liofa/config/language/ga/views.view.media_library.yml create mode 100644 project/config/liofa/config/language/ga/views.view.moderated_content.yml create mode 100644 project/config/liofa/config/language/ga/views.view.user_admin_people.yml create mode 100644 project/config/liofa/config/language/ga/webform.webform_options.languages.yml create mode 100644 project/config/liofa/config/language/ga/webform.webform_options.translations.yml create mode 100644 project/config/liofa/config/liofa_pledges.countsettings.yml rename project/config/liofa/{local => config}/system.action.user_add_role_action.administrator.yml (100%) rename project/config/liofa/{local => config}/system.action.user_remove_role_action.administrator.yml (100%) rename project/config/liofa/{local => config}/user.role.administrator.yml (93%) delete mode 100644 project/config/liofa/config/views.view.sign_up_to_liofa.yml delete mode 100644 project/config/liofa/local/language/en/system.action.clone_nodes.yml delete mode 100644 project/config/liofa/local/language/en/system.menu.devel.yml delete mode 100644 project/config/liofa/local/migrate_drupal.settings.yml delete mode 100644 project/config/liofa/local/stage_file_proxy.settings.yml delete mode 100644 project/config/liofa/local/system.action.clone_nodes.yml diff --git a/project/config/liofa/config/core.entity_form_display.node.webform.default.yml b/project/config/liofa/config/core.entity_form_display.node.webform.default.yml index cab18c71e..36fcdc62e 100644 --- a/project/config/liofa/config/core.entity_form_display.node.webform.default.yml +++ b/project/config/liofa/config/core.entity_form_display.node.webform.default.yml @@ -3,7 +3,8 @@ langcode: en-gb status: true dependencies: config: - - field.field.node.webform.body + - field.field.node.webform.field_webform_footer + - field.field.node.webform.field_webform_header - field.field.node.webform.webform - node.type.webform - workflows.workflow.nics_editorial_workflow @@ -19,22 +20,28 @@ targetEntityType: node bundle: webform mode: default content: - body: - type: text_textarea_with_summary - weight: 1 - region: content - settings: - rows: 9 - summary_rows: 3 - placeholder: '' - show_summary: false - third_party_settings: { } created: type: datetime_timestamp weight: 10 region: content settings: { } third_party_settings: { } + field_webform_footer: + type: text_textarea + weight: 3 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_webform_header: + type: text_textarea + weight: 2 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } flag: weight: 10 region: content diff --git a/project/config/liofa/config/core.entity_view_display.node.webform.default.yml b/project/config/liofa/config/core.entity_view_display.node.webform.default.yml index dd89235a7..a56c39a8d 100644 --- a/project/config/liofa/config/core.entity_view_display.node.webform.default.yml +++ b/project/config/liofa/config/core.entity_view_display.node.webform.default.yml @@ -3,7 +3,8 @@ langcode: en-gb status: true dependencies: config: - - field.field.node.webform.body + - field.field.node.webform.field_webform_footer + - field.field.node.webform.field_webform_header - field.field.node.webform.webform - node.type.webform module: @@ -17,7 +18,14 @@ targetEntityType: node bundle: webform mode: default content: - body: + field_webform_footer: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 2 + region: content + field_webform_header: type: text_default label: hidden settings: { } diff --git a/project/config/liofa/config/core.entity_view_display.node.webform.diff.yml b/project/config/liofa/config/core.entity_view_display.node.webform.diff.yml deleted file mode 100644 index 343e8a1eb..000000000 --- a/project/config/liofa/config/core.entity_view_display.node.webform.diff.yml +++ /dev/null @@ -1,37 +0,0 @@ -uuid: 07f399d8-eace-42a9-8da6-ce01468b8b7e -langcode: en -status: true -dependencies: - config: - - core.entity_view_mode.node.diff - - field.field.node.webform.body - - field.field.node.webform.webform - - node.type.webform - module: - - text - - user -id: node.webform.diff -targetEntityType: node -bundle: webform -mode: diff -content: - body: - type: text_default - label: hidden - settings: { } - third_party_settings: { } - weight: 0 - region: content - content_moderation_control: - settings: { } - third_party_settings: { } - weight: -20 - region: content - links: - settings: { } - third_party_settings: { } - weight: 100 - region: content -hidden: - langcode: true - webform: true diff --git a/project/config/liofa/config/core.entity_view_display.node.webform.teaser.yml b/project/config/liofa/config/core.entity_view_display.node.webform.teaser.yml index 828366141..5a26560a2 100644 --- a/project/config/liofa/config/core.entity_view_display.node.webform.teaser.yml +++ b/project/config/liofa/config/core.entity_view_display.node.webform.teaser.yml @@ -4,11 +4,11 @@ status: true dependencies: config: - core.entity_view_mode.node.teaser - - field.field.node.webform.body + - field.field.node.webform.field_webform_footer + - field.field.node.webform.field_webform_header - field.field.node.webform.webform - node.type.webform module: - - text - user _core: default_config_hash: Ls5l3Xs7-YstJnurxFLKj38Exqr2JMZs1j9YeX1Kh2o @@ -17,14 +17,6 @@ targetEntityType: node bundle: webform mode: teaser content: - body: - type: text_summary_or_trimmed - label: hidden - settings: - trim_length: 600 - third_party_settings: { } - weight: 0 - region: content content_moderation_control: settings: { } third_party_settings: { } @@ -36,5 +28,7 @@ content: weight: 100 region: content hidden: + field_webform_footer: true + field_webform_header: true langcode: true webform: true diff --git a/project/config/liofa/config/core.extension.yml b/project/config/liofa/config/core.extension.yml index 47816f1e9..2917521da 100644 --- a/project/config/liofa/config/core.extension.yml +++ b/project/config/liofa/config/core.extension.yml @@ -92,6 +92,7 @@ module: node: 0 node_edit_protection: 0 noreferrer: 0 + object_log: 0 options: 0 origins_ckeditor_enhancements: 0 origins_common: 0 diff --git a/project/config/liofa/config/field.field.node.webform.body.yml b/project/config/liofa/config/field.field.node.webform.field_webform_footer.yml similarity index 64% rename from project/config/liofa/config/field.field.node.webform.body.yml rename to project/config/liofa/config/field.field.node.webform.field_webform_footer.yml index 34efac94b..6a6e38716 100644 --- a/project/config/liofa/config/field.field.node.webform.body.yml +++ b/project/config/liofa/config/field.field.node.webform.field_webform_footer.yml @@ -1,9 +1,9 @@ -uuid: 9966ec13-4851-420f-994a-06984edc2c5b -langcode: en +uuid: c2ae6338-7f67-4f99-81c8-a4dde8cfcd87 +langcode: en-gb status: true dependencies: config: - - field.storage.node.body + - field.storage.node.field_webform_footer - filter.format.basic_html - node.type.webform module: @@ -13,19 +13,17 @@ third_party_settings: allowed_formats: allowed_formats: - basic_html -id: node.webform.body -field_name: body +id: node.webform.field_webform_footer +field_name: field_webform_footer entity_type: node bundle: webform -label: Body +label: Footer description: '' required: false translatable: true default_value: { } default_value_callback: '' settings: - display_summary: false - required_summary: false allowed_formats: - basic_html -field_type: text_with_summary +field_type: text_long diff --git a/project/config/liofa/config/field.field.node.webform.field_webform_header.yml b/project/config/liofa/config/field.field.node.webform.field_webform_header.yml new file mode 100644 index 000000000..6dd114e76 --- /dev/null +++ b/project/config/liofa/config/field.field.node.webform.field_webform_header.yml @@ -0,0 +1,29 @@ +uuid: 3ee655dd-866b-428d-b8bf-81b3bf808be7 +langcode: en-gb +status: true +dependencies: + config: + - field.storage.node.field_webform_header + - filter.format.basic_html + - node.type.webform + module: + - allowed_formats + - text +third_party_settings: + allowed_formats: + allowed_formats: + - basic_html +id: node.webform.field_webform_header +field_name: field_webform_header +entity_type: node +bundle: webform +label: Header +description: '' +required: false +translatable: true +default_value: { } +default_value_callback: '' +settings: + allowed_formats: + - basic_html +field_type: text_long diff --git a/project/config/liofa/config/field.storage.node.field_webform_footer.yml b/project/config/liofa/config/field.storage.node.field_webform_footer.yml new file mode 100644 index 000000000..cc78eeee3 --- /dev/null +++ b/project/config/liofa/config/field.storage.node.field_webform_footer.yml @@ -0,0 +1,19 @@ +uuid: a2f8f2ad-51e2-4d19-8222-ca761b50c372 +langcode: und +status: true +dependencies: + module: + - node + - text +id: node.field_webform_footer +field_name: field_webform_footer +entity_type: node +type: text_long +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/project/config/liofa/config/field.storage.node.field_webform_header.yml b/project/config/liofa/config/field.storage.node.field_webform_header.yml new file mode 100644 index 000000000..4adeb212f --- /dev/null +++ b/project/config/liofa/config/field.storage.node.field_webform_header.yml @@ -0,0 +1,19 @@ +uuid: ebb22bc2-52fa-43c4-9bf9-a1707af2e873 +langcode: und +status: true +dependencies: + module: + - node + - text +id: node.field_webform_header +field_name: field_webform_header +entity_type: node +type: text_long +settings: { } +module: text +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/project/config/liofa/local/language/en/system.action.user_add_role_action.administrator.yml b/project/config/liofa/config/language/en/system.action.user_add_role_action.administrator.yml similarity index 100% rename from project/config/liofa/local/language/en/system.action.user_add_role_action.administrator.yml rename to project/config/liofa/config/language/en/system.action.user_add_role_action.administrator.yml diff --git a/project/config/liofa/local/language/en/system.action.user_remove_role_action.administrator.yml b/project/config/liofa/config/language/en/system.action.user_remove_role_action.administrator.yml similarity index 100% rename from project/config/liofa/local/language/en/system.action.user_remove_role_action.administrator.yml rename to project/config/liofa/config/language/en/system.action.user_remove_role_action.administrator.yml diff --git a/project/config/liofa/local/language/en/user.role.administrator.yml b/project/config/liofa/config/language/en/user.role.administrator.yml similarity index 100% rename from project/config/liofa/local/language/en/user.role.administrator.yml rename to project/config/liofa/config/language/en/user.role.administrator.yml diff --git a/project/config/liofa/config/language/ga/search.page.user_search.yml b/project/config/liofa/config/language/ga/search.page.user_search.yml new file mode 100644 index 000000000..88be60715 --- /dev/null +++ b/project/config/liofa/config/language/ga/search.page.user_search.yml @@ -0,0 +1 @@ +label: Úsádeoirí diff --git a/project/config/liofa/config/language/ga/views.view.content.yml b/project/config/liofa/config/language/ga/views.view.content.yml new file mode 100644 index 000000000..bfaf45c81 --- /dev/null +++ b/project/config/liofa/config/language/ga/views.view.content.yml @@ -0,0 +1,7 @@ +display: + default: + display_options: + filters: + langcode: + expose: + label: Teanga diff --git a/project/config/liofa/config/language/ga/views.view.files.yml b/project/config/liofa/config/language/ga/views.view.files.yml new file mode 100644 index 000000000..1efb94b44 --- /dev/null +++ b/project/config/liofa/config/language/ga/views.view.files.yml @@ -0,0 +1,6 @@ +display: + default: + display_options: + fields: + filename: + label: Ainm diff --git a/project/config/liofa/config/language/ga/views.view.media.yml b/project/config/liofa/config/language/ga/views.view.media.yml new file mode 100644 index 000000000..bfaf45c81 --- /dev/null +++ b/project/config/liofa/config/language/ga/views.view.media.yml @@ -0,0 +1,7 @@ +display: + default: + display_options: + filters: + langcode: + expose: + label: Teanga diff --git a/project/config/liofa/config/language/ga/views.view.media_library.yml b/project/config/liofa/config/language/ga/views.view.media_library.yml new file mode 100644 index 000000000..d0e564ca1 --- /dev/null +++ b/project/config/liofa/config/language/ga/views.view.media_library.yml @@ -0,0 +1,43 @@ +display: + default: + display_options: + filters: + name: + expose: + label: Ainm + langcode: + expose: + label: Teanga + default_page: + display_options: + fields: + name: + label: Ainm + edit_media: + text: 'Cuir in eagar' + filters: + name: + expose: + label: Ainm + page: + display_options: + fields: + edit_media: + text: 'Cuir in eagar' + delete_media: + text: Scrios + widget: + display_options: + filters: + name: + expose: + label: Ainm + widget_table: + display_options: + fields: + name: + label: Ainm + filters: + name: + expose: + label: Ainm diff --git a/project/config/liofa/config/language/ga/views.view.moderated_content.yml b/project/config/liofa/config/language/ga/views.view.moderated_content.yml new file mode 100644 index 000000000..bfaf45c81 --- /dev/null +++ b/project/config/liofa/config/language/ga/views.view.moderated_content.yml @@ -0,0 +1,7 @@ +display: + default: + display_options: + filters: + langcode: + expose: + label: Teanga diff --git a/project/config/liofa/config/language/ga/views.view.user_admin_people.yml b/project/config/liofa/config/language/ga/views.view.user_admin_people.yml new file mode 100644 index 000000000..a18e7584c --- /dev/null +++ b/project/config/liofa/config/language/ga/views.view.user_admin_people.yml @@ -0,0 +1,6 @@ +display: + default: + display_options: + fields: + name: + label: 'Ainm úsáideora' diff --git a/project/config/liofa/config/language/ga/webform.webform_options.languages.yml b/project/config/liofa/config/language/ga/webform.webform_options.languages.yml new file mode 100644 index 000000000..e35e1c890 --- /dev/null +++ b/project/config/liofa/config/language/ga/webform.webform_options.languages.yml @@ -0,0 +1 @@ +category: Teanga diff --git a/project/config/liofa/config/language/ga/webform.webform_options.translations.yml b/project/config/liofa/config/language/ga/webform.webform_options.translations.yml new file mode 100644 index 000000000..e35e1c890 --- /dev/null +++ b/project/config/liofa/config/language/ga/webform.webform_options.translations.yml @@ -0,0 +1 @@ +category: Teanga diff --git a/project/config/liofa/config/liofa_pledges.countsettings.yml b/project/config/liofa/config/liofa_pledges.countsettings.yml new file mode 100644 index 000000000..18d289bb4 --- /dev/null +++ b/project/config/liofa/config/liofa_pledges.countsettings.yml @@ -0,0 +1,2 @@ +pledge_count_submissions: '26356' +pledge_count_offset: '0' diff --git a/project/config/liofa/local/system.action.user_add_role_action.administrator.yml b/project/config/liofa/config/system.action.user_add_role_action.administrator.yml similarity index 100% rename from project/config/liofa/local/system.action.user_add_role_action.administrator.yml rename to project/config/liofa/config/system.action.user_add_role_action.administrator.yml diff --git a/project/config/liofa/local/system.action.user_remove_role_action.administrator.yml b/project/config/liofa/config/system.action.user_remove_role_action.administrator.yml similarity index 100% rename from project/config/liofa/local/system.action.user_remove_role_action.administrator.yml rename to project/config/liofa/config/system.action.user_remove_role_action.administrator.yml diff --git a/project/config/liofa/local/user.role.administrator.yml b/project/config/liofa/config/user.role.administrator.yml similarity index 93% rename from project/config/liofa/local/user.role.administrator.yml rename to project/config/liofa/config/user.role.administrator.yml index dc630744c..0c23a0966 100644 --- a/project/config/liofa/local/user.role.administrator.yml +++ b/project/config/liofa/config/user.role.administrator.yml @@ -8,7 +8,6 @@ dependencies: - block - content_translation - contextual - - devel - filter - image - language @@ -19,7 +18,6 @@ dependencies: - search - system - taxonomy - - views_ui _core: default_config_hash: J8rXM_vdD29ZTEwtLOs84Vsn-PTRH-ZDh_Pi610CAEI id: administrator @@ -31,7 +29,6 @@ permissions: - 'access content' - 'access content overview' - 'access contextual links' - - 'access devel information' - 'access site in maintenance mode' - 'access site reports' - 'access user profiles' @@ -52,7 +49,6 @@ permissions: - 'administer themes' - 'administer url aliases' - 'administer users' - - 'administer views' - 'bypass node access' - 'cancel account' - 'change own username' @@ -60,7 +56,6 @@ permissions: - 'notify of path changes' - 'search content' - 'select account cancellation method' - - 'switch users' - 'translate any entity' - 'translate interface' - 'use advanced search' diff --git a/project/config/liofa/config/user.role.anonymous.yml b/project/config/liofa/config/user.role.anonymous.yml index 03a369aa3..f789d0195 100644 --- a/project/config/liofa/config/user.role.anonymous.yml +++ b/project/config/liofa/config/user.role.anonymous.yml @@ -10,7 +10,7 @@ dependencies: _core: default_config_hash: am6KFAgAEMZ_pS-xuDp-YhRgpp6bh0kRRCv0RBwVr3U id: anonymous -label: 'Anonymous user' +label: 'anonymous user' weight: 0 is_admin: false permissions: diff --git a/project/config/liofa/config/user.role.authenticated.yml b/project/config/liofa/config/user.role.authenticated.yml index 3bd7a3d17..91ab1358c 100644 --- a/project/config/liofa/config/user.role.authenticated.yml +++ b/project/config/liofa/config/user.role.authenticated.yml @@ -14,7 +14,7 @@ dependencies: _core: default_config_hash: z-UB57Tg7OS627ItYHGrWlRMLhAT7P1VO2tDm6Wty0c id: authenticated -label: 'Authenticated user' +label: 'authenticated user' weight: 1 is_admin: false permissions: diff --git a/project/config/liofa/config/user.role.supervisor_user.yml b/project/config/liofa/config/user.role.supervisor_user.yml index 30e241d95..965c8809d 100644 --- a/project/config/liofa/config/user.role.supervisor_user.yml +++ b/project/config/liofa/config/user.role.supervisor_user.yml @@ -49,11 +49,19 @@ permissions: - 'access toolbar' - 'add scheduled transitions node basic_page' - 'add scheduled transitions node bulk_pledges' + - 'add scheduled transitions node event' + - 'add scheduled transitions node faq' - 'add scheduled transitions node feature' + - 'add scheduled transitions node first_name' + - 'add scheduled transitions node form_page' - 'add scheduled transitions node news' + - 'add scheduled transitions node newsletter' - 'add scheduled transitions node organisation' - 'add scheduled transitions node phrase_of_the_week' - 'add scheduled transitions node podcast' + - 'add scheduled transitions node shared_heritage' + - 'add scheduled transitions node surname' + - 'add scheduled transitions node training_course' - 'administer blocks' - 'administer main menu items' - 'administer pathauto' @@ -126,11 +134,19 @@ permissions: - 'manipulate entityqueues' - 'reschedule scheduled transitions node basic_page' - 'reschedule scheduled transitions node bulk_pledges' + - 'reschedule scheduled transitions node event' + - 'reschedule scheduled transitions node faq' - 'reschedule scheduled transitions node feature' + - 'reschedule scheduled transitions node first_name' + - 'reschedule scheduled transitions node form_page' - 'reschedule scheduled transitions node news' + - 'reschedule scheduled transitions node newsletter' - 'reschedule scheduled transitions node organisation' - 'reschedule scheduled transitions node phrase_of_the_week' - 'reschedule scheduled transitions node podcast' + - 'reschedule scheduled transitions node shared_heritage' + - 'reschedule scheduled transitions node surname' + - 'reschedule scheduled transitions node training_course' - 'revert all revisions' - 'revert basic_page revisions' - 'revert bulk_pledges revisions' @@ -164,9 +180,17 @@ permissions: - 'view podcast revisions' - 'view scheduled transitions node basic_page' - 'view scheduled transitions node bulk_pledges' + - 'view scheduled transitions node event' + - 'view scheduled transitions node faq' - 'view scheduled transitions node feature' + - 'view scheduled transitions node first_name' + - 'view scheduled transitions node form_page' - 'view scheduled transitions node news' + - 'view scheduled transitions node newsletter' - 'view scheduled transitions node organisation' - 'view scheduled transitions node phrase_of_the_week' - 'view scheduled transitions node podcast' + - 'view scheduled transitions node shared_heritage' + - 'view scheduled transitions node surname' + - 'view scheduled transitions node training_course' - 'view the administration theme' diff --git a/project/config/liofa/config/views.view.bulk_pledges.yml b/project/config/liofa/config/views.view.bulk_pledges.yml index 87ef03d1a..9c2f21c6f 100644 --- a/project/config/liofa/config/views.view.bulk_pledges.yml +++ b/project/config/liofa/config/views.view.bulk_pledges.yml @@ -476,6 +476,122 @@ display: - 'config:field.storage.node.field_bulk_date' - 'config:field.storage.node.field_bulk_number' - 'config:field.storage.node.field_bulk_source' + attachment_1: + id: attachment_1 + display_title: 'Pledge count' + display_plugin: attachment + position: 2 + display_options: + fields: + field_bulk_number: + id: field_bulk_number + table: node__field_bulk_number + field: field_bulk_number + relationship: none + group_type: sum + admin_label: '' + plugin_id: field + label: Total + exclude: false + alter: + alter_text: false + text: '' + make_link: false + path: '' + absolute: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: 0 + word_boundary: true + ellipsis: true + more_link: false + more_link_text: '' + more_link_path: '' + strip_tags: false + trim: false + preserve_tags: '' + html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: true + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: value + type: number_integer + settings: + thousand_separator: '' + prefix_suffix: 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 + set_precision: false + precision: 0 + decimal: . + format_plural: 0 + format_plural_string: !!binary MQNAY291bnQ= + prefix: '' + suffix: '' + sorts: { } + style: + type: default + options: + row_class: '' + default_row_class: false + uses_fields: false + row: + type: fields + options: + default_field_elements: false + inline: { } + separator: '' + hide_empty: false + defaults: + group_by: false + style: false + row: false + fields: false + sorts: false + header: false + group_by: true + display_description: '' + header: { } + display_extenders: + metatag_display_extender: + metatags: { } + tokenize: false + displays: + page_1: page_1 + attachment_position: after + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_interface' + - 'user.node_grants:view' + - user.permissions + tags: { } page_1: id: page_1 display_title: Page @@ -819,119 +935,3 @@ display: - 'config:field.storage.node.field_bulk_date' - 'config:field.storage.node.field_bulk_number' - 'config:field.storage.node.field_bulk_source' - pledge_count: - id: pledge_count - display_title: 'Pledge count' - display_plugin: attachment - position: 2 - display_options: - fields: - field_bulk_number: - id: field_bulk_number - table: node__field_bulk_number - field: field_bulk_number - relationship: none - group_type: sum - admin_label: '' - plugin_id: field - label: Total - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: number_integer - settings: - thousand_separator: '' - prefix_suffix: 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 - set_precision: false - precision: 0 - decimal: . - format_plural: 0 - format_plural_string: !!binary MQNAY291bnQ= - prefix: '' - suffix: '' - sorts: { } - style: - type: default - options: - row_class: '' - default_row_class: false - uses_fields: false - row: - type: fields - options: - default_field_elements: false - inline: { } - separator: '' - hide_empty: false - defaults: - group_by: false - style: false - row: false - fields: false - sorts: false - header: false - group_by: true - display_description: '' - header: { } - display_extenders: - metatag_display_extender: - metatags: { } - tokenize: false - displays: - page_1: page_1 - attachment_position: after - cache_metadata: - max-age: -1 - contexts: - - 'languages:language_interface' - - 'user.node_grants:view' - - user.permissions - tags: { } diff --git a/project/config/liofa/config/views.view.sign_up_to_liofa.yml b/project/config/liofa/config/views.view.sign_up_to_liofa.yml deleted file mode 100644 index c812f3f8d..000000000 --- a/project/config/liofa/config/views.view.sign_up_to_liofa.yml +++ /dev/null @@ -1,292 +0,0 @@ -uuid: 1b30cb75-154c-4923-a25e-2742081e362f -langcode: en -status: true -dependencies: - config: - - node.type.webform - module: - - node - - user - - webform -id: sign_up_to_liofa -label: 'Sign up to liofa' -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: 'Sign up to liofa' - 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 - sid: - id: sid - table: webform_submission - field: sid - relationship: webform_submission - group_type: count_distinct - admin_label: '' - entity_type: webform_submission - entity_field: sid - plugin_id: field - label: Count - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: number_integer - 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 - set_precision: false - precision: 0 - decimal: . - format_plural: 0 - format_plural_string: !!binary MQNAY291bnQ= - prefix: '' - suffix: '' - pager: - type: some - options: - offset: 0 - items_per_page: 5 - exposed_form: - type: basic - options: - submit_button: Apply - reset_button: false - reset_button_label: Reset - exposed_sorts_label: 'Sort by' - expose_sort_order: true - sort_asc_label: Asc - sort_desc_label: Desc - access: - type: perm - options: - perm: 'access content' - cache: - type: tag - options: { } - empty: { } - sorts: { } - 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: '' - 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: - webform: webform - 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: { } - style: - type: default - row: - type: fields - query: - type: views_query - options: - query_comment: '' - disable_sql_rewrite: false - distinct: false - replica: false - query_tags: { } - relationships: - webform_submission: - id: webform_submission - table: node_field_data - field: webform_submission - relationship: none - group_type: group - admin_label: nid - entity_type: node - plugin_id: standard - required: false - group_by: true - header: { } - footer: { } - display_extenders: { } - cache_metadata: - max-age: -1 - contexts: - - 'languages:language_content' - - 'languages:language_interface' - - 'user.node_grants:view' - - user.permissions - tags: { } - block_1: - id: block_1 - display_title: Block - display_plugin: block - position: 1 - display_options: - display_extenders: - metatag_display_extender: - metatags: { } - tokenize: false - cache_metadata: - max-age: -1 - contexts: - - 'languages:language_content' - - 'languages:language_interface' - - 'user.node_grants:view' - - user.permissions - tags: { } diff --git a/project/config/liofa/config/webform.webform.sign_up.yml b/project/config/liofa/config/webform.webform.sign_up.yml index a372ec783..286eb0cc9 100644 --- a/project/config/liofa/config/webform.webform.sign_up.yml +++ b/project/config/liofa/config/webform.webform.sign_up.yml @@ -31,7 +31,7 @@ settings: ajax_effect: '' ajax_speed: null page: true - page_submit_path: '/signup' + page_submit_path: '' page_confirm_path: '' page_theme_name: '' form_title: both @@ -128,8 +128,8 @@ settings: draft_pending_multiple_message: '' confirmation_type: page confirmation_url: '' - confirmation_title: 'Success' - confirmation_message: 'Thank you for signing up to Liofa.' + confirmation_title: '' + confirmation_message: '' confirmation_attributes: { } confirmation_back: true confirmation_back_label: '' diff --git a/project/config/liofa/local/devel.settings.yml b/project/config/liofa/local/devel.settings.yml index 2ef403cbe..976cc91f3 100644 --- a/project/config/liofa/local/devel.settings.yml +++ b/project/config/liofa/local/devel.settings.yml @@ -1,6 +1,5 @@ _core: default_config_hash: Aqx6J0yYT6mVqT0fbjeP4JkoL-700nmudVF5d6Pq2Yo -langcode: en-gb page_alter: false raw_names: false error_handlers: diff --git a/project/config/liofa/local/devel.toolbar.settings.yml b/project/config/liofa/local/devel.toolbar.settings.yml index d7deea8b5..76ada43ce 100644 --- a/project/config/liofa/local/devel.toolbar.settings.yml +++ b/project/config/liofa/local/devel.toolbar.settings.yml @@ -1,6 +1,5 @@ _core: default_config_hash: IQjf_ytthngZTAk_MU8-74VecArWD3G5g0oEH6PM6GA -langcode: en-gb toolbar_items: - devel.admin_settings_link - devel.cache_clear diff --git a/project/config/liofa/local/language/en/system.action.clone_nodes.yml b/project/config/liofa/local/language/en/system.action.clone_nodes.yml deleted file mode 100644 index b2b84ff18..000000000 --- a/project/config/liofa/local/language/en/system.action.clone_nodes.yml +++ /dev/null @@ -1 +0,0 @@ -label: 'Clone Nodes' diff --git a/project/config/liofa/local/language/en/system.menu.devel.yml b/project/config/liofa/local/language/en/system.menu.devel.yml deleted file mode 100644 index 53ac26093..000000000 --- a/project/config/liofa/local/language/en/system.menu.devel.yml +++ /dev/null @@ -1,2 +0,0 @@ -label: Development -description: 'Links related to Devel module.' diff --git a/project/config/liofa/local/migrate_drupal.settings.yml b/project/config/liofa/local/migrate_drupal.settings.yml deleted file mode 100644 index 289036ad5..000000000 --- a/project/config/liofa/local/migrate_drupal.settings.yml +++ /dev/null @@ -1,8 +0,0 @@ -_core: - default_config_hash: 1daEO2inZc1i3d0Sn-ADIq9mUIU7tSLCxn579NT6f2g -langcode: en-gb -enforce_source_module_tags: - - 'Drupal 6' - - 'Drupal 7' -follow_up_migration_tags: - - 'Follow-up migration' diff --git a/project/config/liofa/local/stage_file_proxy.settings.yml b/project/config/liofa/local/stage_file_proxy.settings.yml deleted file mode 100644 index 8024394d8..000000000 --- a/project/config/liofa/local/stage_file_proxy.settings.yml +++ /dev/null @@ -1,9 +0,0 @@ -_core: - default_config_hash: ttd8HXcqwSjGgp-fWA3gUA8q4TNvXB0a72pkFlnF56g -langcode: en-gb -hotlink: false -origin: 'https://www.liofa.eu' -origin_dir: sites/default/files -use_imagecache_root: true -verify: true -excluded_extensions: '' diff --git a/project/config/liofa/local/system.action.clone_nodes.yml b/project/config/liofa/local/system.action.clone_nodes.yml deleted file mode 100644 index 220a4c0fc..000000000 --- a/project/config/liofa/local/system.action.clone_nodes.yml +++ /dev/null @@ -1,13 +0,0 @@ -uuid: ffe45d2a-61bb-48f3-8d85-a9d7746cc187 -langcode: en-gb -status: true -dependencies: - module: - - clone_nodes -_core: - default_config_hash: iWpJXsOU5S0G8yu-dV3KyAaH9Q7vK11j5HEVy18E5xk -id: clone_nodes -label: 'Clone Nodes' -type: node -plugin: clone_nodes -configuration: { } diff --git a/project/config/liofa/local/system.menu.devel.yml b/project/config/liofa/local/system.menu.devel.yml index 6f3b717a7..7871a506d 100644 --- a/project/config/liofa/local/system.menu.devel.yml +++ b/project/config/liofa/local/system.menu.devel.yml @@ -1,5 +1,5 @@ -uuid: 20e26bf0-2a20-45f8-a2a5-acde34ccd986 -langcode: und +uuid: caae7bc7-c1f4-436d-8d76-d6d470de023c +langcode: en status: true dependencies: enforced: @@ -9,5 +9,5 @@ _core: default_config_hash: 3V-l1uuTcyirYOGLPZV5HWaDfr02uEbWZJIwc8Byz-c id: devel label: Development -description: 'Development link' +description: 'Links related to Devel module.' locked: true From e38d443eaed44b6d8893db28ef95ce0fa871e6bb Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 14:25:12 +0000 Subject: [PATCH 15/16] Merge conflict resolution --- .../webform.webform.sign_up_to_liofa.yml | 249 ++++++++++++++++++ .../liofa/local/user.role.administrator.yml | 65 +++++ 2 files changed, 314 insertions(+) create mode 100644 project/config/liofa/config/webform.webform.sign_up_to_liofa.yml create mode 100644 project/config/liofa/local/user.role.administrator.yml diff --git a/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml b/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml new file mode 100644 index 000000000..fd98aece0 --- /dev/null +++ b/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml @@ -0,0 +1,249 @@ +uuid: d0dea441-50ef-4e54-b3e0-8168f3f48904 +langcode: en +status: open +dependencies: { } +weight: 0 +open: null +close: null +uid: 305 +template: false +archive: false +id: sign_up_to_liofa +title: 'Sign up to Líofa' +description: '' +categories: { } +elements: |- + signup_name: + '#type': textfield + '#title': Name + '#required': true + signup_email: + '#type': email + '#title': 'Email address' + '#required': true + signup_postcode: + '#type': textfield + '#title': Postcode + '#pattern': '^[A-Za-z]{1,2}[0-9Rr][0-9A-Za-z]? [0-9][ABD-HJLNP-UW-Zabd-hjlnp-uw-z]{2}$' +css: '' +javascript: '' +settings: + ajax: false + ajax_scroll_top: form + ajax_progress_type: '' + ajax_effect: '' + ajax_speed: null + page: true + page_submit_path: /signup + page_confirm_path: '' + page_theme_name: '' + form_title: both + form_submit_once: false + form_open_message: '' + form_close_message: '' + form_exception_message: '' + form_previous_submissions: true + form_confidential: false + form_confidential_message: '' + form_disable_remote_addr: false + form_convert_anonymous: false + form_prepopulate: false + form_prepopulate_source_entity: false + form_prepopulate_source_entity_required: false + form_prepopulate_source_entity_type: '' + form_unsaved: false + form_disable_back: false + form_submit_back: false + form_disable_autocomplete: false + form_novalidate: false + form_disable_inline_errors: false + form_required: false + form_autofocus: false + form_details_toggle: false + form_reset: false + form_access_denied: default + form_access_denied_title: '' + form_access_denied_message: '' + form_access_denied_attributes: { } + form_file_limit: '' + form_attributes: { } + form_method: '' + form_action: '' + share: false + share_node: false + share_theme_name: '' + share_title: true + share_page_body_attributes: { } + submission_label: '' + submission_exception_message: '' + submission_locked_message: '' + submission_log: false + submission_excluded_elements: { } + submission_exclude_empty: false + submission_exclude_empty_checkbox: false + submission_views: { } + submission_views_replace: { } + submission_user_columns: { } + submission_user_duplicate: false + submission_access_denied: default + submission_access_denied_title: '' + submission_access_denied_message: '' + submission_access_denied_attributes: { } + previous_submission_message: '' + previous_submissions_message: '' + autofill: false + autofill_message: '' + autofill_excluded_elements: { } + wizard_progress_bar: true + wizard_progress_pages: false + wizard_progress_percentage: false + wizard_progress_link: false + wizard_progress_states: false + wizard_start_label: '' + wizard_preview_link: false + wizard_confirmation: true + wizard_confirmation_label: '' + wizard_auto_forward: true + wizard_auto_forward_hide_next_button: false + wizard_keyboard: true + wizard_track: '' + wizard_prev_button_label: '' + wizard_next_button_label: '' + wizard_toggle: false + wizard_toggle_show_label: '' + wizard_toggle_hide_label: '' + wizard_page_type: container + wizard_page_title_tag: h2 + preview: 0 + preview_label: '' + preview_title: '' + preview_message: '' + preview_attributes: { } + preview_excluded_elements: { } + preview_exclude_empty: true + preview_exclude_empty_checkbox: false + draft: none + draft_multiple: false + draft_auto_save: false + draft_saved_message: '' + draft_loaded_message: '' + draft_pending_single_message: '' + draft_pending_multiple_message: '' + confirmation_type: page + confirmation_url: '' + confirmation_title: Success + confirmation_message: 'Thank you for signing up to Liofa.' + confirmation_attributes: { } + confirmation_back: true + confirmation_back_label: '' + confirmation_back_attributes: { } + confirmation_exclude_query: false + confirmation_exclude_token: false + confirmation_update: false + limit_total: null + limit_total_interval: null + limit_total_message: '' + limit_total_unique: false + limit_user: null + limit_user_interval: null + limit_user_message: '' + limit_user_unique: false + entity_limit_total: null + entity_limit_total_interval: null + entity_limit_user: null + entity_limit_user_interval: null + purge: none + purge_days: null + results_disabled: true + results_disabled_ignore: false + results_customize: false + token_view: false + token_update: false + token_delete: false + serial_disabled: false +access: + create: + roles: + - anonymous + - authenticated + users: { } + permissions: { } + view_any: + roles: { } + users: { } + permissions: { } + update_any: + roles: { } + users: { } + permissions: { } + delete_any: + roles: { } + users: { } + permissions: { } + purge_any: + roles: { } + users: { } + permissions: { } + view_own: + roles: { } + users: { } + permissions: { } + update_own: + roles: { } + users: { } + permissions: { } + delete_own: + roles: { } + users: { } + permissions: { } + administer: + roles: { } + users: { } + permissions: { } + test: + roles: { } + users: { } + permissions: { } + configuration: + roles: { } + users: { } + permissions: { } +handlers: + email: + id: email + handler_id: email + label: Email + notes: '' + status: true + conditions: { } + weight: 0 + settings: + states: + - completed + to_mail: _default + to_options: { } + bcc_mail: '' + bcc_options: { } + cc_mail: '' + cc_options: { } + from_mail: _default + from_options: { } + from_name: _default + reply_to: '' + return_path: '' + sender_mail: '' + sender_name: '' + subject: _default + body: _default + excluded_elements: { } + ignore_access: false + exclude_empty: true + exclude_empty_checkbox: false + exclude_attachments: false + html: true + attachments: false + twig: false + theme_name: '' + parameters: { } + debug: false +variants: { } diff --git a/project/config/liofa/local/user.role.administrator.yml b/project/config/liofa/local/user.role.administrator.yml new file mode 100644 index 000000000..8113f0a18 --- /dev/null +++ b/project/config/liofa/local/user.role.administrator.yml @@ -0,0 +1,65 @@ +uuid: 8b071433-40ec-4f5b-b929-02e6fea2d30e +langcode: en-gb +status: true +dependencies: + config: + - filter.format.full_html + module: + - block + - content_translation + - contextual + - devel + - filter + - image + - language + - locale + - node + - path + - pathauto + - system + - taxonomy + - views_ui +_core: + default_config_hash: J8rXM_vdD29ZTEwtLOs84Vsn-PTRH-ZDh_Pi610CAEI +id: administrator +label: Administrator +weight: 4 +is_admin: true +permissions: + - 'access administration pages' + - 'access content' + - 'access content overview' + - 'access contextual links' + - 'access devel information' + - 'access site in maintenance mode' + - 'access site reports' + - 'access user profiles' + - 'administer blocks' + - 'administer content types' + - 'administer filters' + - 'administer image styles' + - 'administer languages' + - 'administer menu' + - 'administer modules' + - 'administer nodes' + - 'administer pathauto' + - 'administer permissions' + - 'administer site configuration' + - 'administer software updates' + - 'administer taxonomy' + - 'administer themes' + - 'administer url aliases' + - 'administer users' + - 'administer views' + - 'bypass node access' + - 'cancel account' + - 'change own username' + - 'create url aliases' + - 'notify of path changes' + - 'select account cancellation method' + - 'switch users' + - 'translate any entity' + - 'translate interface' + - 'use text format full_html' + - 'view own unpublished content' + - 'view the administration theme' From cf1004872196aa79b8ac659bb681f4068cb5c56c Mon Sep 17 00:00:00 2001 From: DuttonMa Date: Wed, 21 Feb 2024 14:28:04 +0000 Subject: [PATCH 16/16] Remove files that were added in to resolve conflict --- .../webform.webform.sign_up_to_liofa.yml | 249 ------------------ .../liofa/local/user.role.administrator.yml | 65 ----- 2 files changed, 314 deletions(-) delete mode 100644 project/config/liofa/config/webform.webform.sign_up_to_liofa.yml delete mode 100644 project/config/liofa/local/user.role.administrator.yml diff --git a/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml b/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml deleted file mode 100644 index fd98aece0..000000000 --- a/project/config/liofa/config/webform.webform.sign_up_to_liofa.yml +++ /dev/null @@ -1,249 +0,0 @@ -uuid: d0dea441-50ef-4e54-b3e0-8168f3f48904 -langcode: en -status: open -dependencies: { } -weight: 0 -open: null -close: null -uid: 305 -template: false -archive: false -id: sign_up_to_liofa -title: 'Sign up to Líofa' -description: '' -categories: { } -elements: |- - signup_name: - '#type': textfield - '#title': Name - '#required': true - signup_email: - '#type': email - '#title': 'Email address' - '#required': true - signup_postcode: - '#type': textfield - '#title': Postcode - '#pattern': '^[A-Za-z]{1,2}[0-9Rr][0-9A-Za-z]? [0-9][ABD-HJLNP-UW-Zabd-hjlnp-uw-z]{2}$' -css: '' -javascript: '' -settings: - ajax: false - ajax_scroll_top: form - ajax_progress_type: '' - ajax_effect: '' - ajax_speed: null - page: true - page_submit_path: /signup - page_confirm_path: '' - page_theme_name: '' - form_title: both - form_submit_once: false - form_open_message: '' - form_close_message: '' - form_exception_message: '' - form_previous_submissions: true - form_confidential: false - form_confidential_message: '' - form_disable_remote_addr: false - form_convert_anonymous: false - form_prepopulate: false - form_prepopulate_source_entity: false - form_prepopulate_source_entity_required: false - form_prepopulate_source_entity_type: '' - form_unsaved: false - form_disable_back: false - form_submit_back: false - form_disable_autocomplete: false - form_novalidate: false - form_disable_inline_errors: false - form_required: false - form_autofocus: false - form_details_toggle: false - form_reset: false - form_access_denied: default - form_access_denied_title: '' - form_access_denied_message: '' - form_access_denied_attributes: { } - form_file_limit: '' - form_attributes: { } - form_method: '' - form_action: '' - share: false - share_node: false - share_theme_name: '' - share_title: true - share_page_body_attributes: { } - submission_label: '' - submission_exception_message: '' - submission_locked_message: '' - submission_log: false - submission_excluded_elements: { } - submission_exclude_empty: false - submission_exclude_empty_checkbox: false - submission_views: { } - submission_views_replace: { } - submission_user_columns: { } - submission_user_duplicate: false - submission_access_denied: default - submission_access_denied_title: '' - submission_access_denied_message: '' - submission_access_denied_attributes: { } - previous_submission_message: '' - previous_submissions_message: '' - autofill: false - autofill_message: '' - autofill_excluded_elements: { } - wizard_progress_bar: true - wizard_progress_pages: false - wizard_progress_percentage: false - wizard_progress_link: false - wizard_progress_states: false - wizard_start_label: '' - wizard_preview_link: false - wizard_confirmation: true - wizard_confirmation_label: '' - wizard_auto_forward: true - wizard_auto_forward_hide_next_button: false - wizard_keyboard: true - wizard_track: '' - wizard_prev_button_label: '' - wizard_next_button_label: '' - wizard_toggle: false - wizard_toggle_show_label: '' - wizard_toggle_hide_label: '' - wizard_page_type: container - wizard_page_title_tag: h2 - preview: 0 - preview_label: '' - preview_title: '' - preview_message: '' - preview_attributes: { } - preview_excluded_elements: { } - preview_exclude_empty: true - preview_exclude_empty_checkbox: false - draft: none - draft_multiple: false - draft_auto_save: false - draft_saved_message: '' - draft_loaded_message: '' - draft_pending_single_message: '' - draft_pending_multiple_message: '' - confirmation_type: page - confirmation_url: '' - confirmation_title: Success - confirmation_message: 'Thank you for signing up to Liofa.' - confirmation_attributes: { } - confirmation_back: true - confirmation_back_label: '' - confirmation_back_attributes: { } - confirmation_exclude_query: false - confirmation_exclude_token: false - confirmation_update: false - limit_total: null - limit_total_interval: null - limit_total_message: '' - limit_total_unique: false - limit_user: null - limit_user_interval: null - limit_user_message: '' - limit_user_unique: false - entity_limit_total: null - entity_limit_total_interval: null - entity_limit_user: null - entity_limit_user_interval: null - purge: none - purge_days: null - results_disabled: true - results_disabled_ignore: false - results_customize: false - token_view: false - token_update: false - token_delete: false - serial_disabled: false -access: - create: - roles: - - anonymous - - authenticated - users: { } - permissions: { } - view_any: - roles: { } - users: { } - permissions: { } - update_any: - roles: { } - users: { } - permissions: { } - delete_any: - roles: { } - users: { } - permissions: { } - purge_any: - roles: { } - users: { } - permissions: { } - view_own: - roles: { } - users: { } - permissions: { } - update_own: - roles: { } - users: { } - permissions: { } - delete_own: - roles: { } - users: { } - permissions: { } - administer: - roles: { } - users: { } - permissions: { } - test: - roles: { } - users: { } - permissions: { } - configuration: - roles: { } - users: { } - permissions: { } -handlers: - email: - id: email - handler_id: email - label: Email - notes: '' - status: true - conditions: { } - weight: 0 - settings: - states: - - completed - to_mail: _default - to_options: { } - bcc_mail: '' - bcc_options: { } - cc_mail: '' - cc_options: { } - from_mail: _default - from_options: { } - from_name: _default - reply_to: '' - return_path: '' - sender_mail: '' - sender_name: '' - subject: _default - body: _default - excluded_elements: { } - ignore_access: false - exclude_empty: true - exclude_empty_checkbox: false - exclude_attachments: false - html: true - attachments: false - twig: false - theme_name: '' - parameters: { } - debug: false -variants: { } diff --git a/project/config/liofa/local/user.role.administrator.yml b/project/config/liofa/local/user.role.administrator.yml deleted file mode 100644 index 8113f0a18..000000000 --- a/project/config/liofa/local/user.role.administrator.yml +++ /dev/null @@ -1,65 +0,0 @@ -uuid: 8b071433-40ec-4f5b-b929-02e6fea2d30e -langcode: en-gb -status: true -dependencies: - config: - - filter.format.full_html - module: - - block - - content_translation - - contextual - - devel - - filter - - image - - language - - locale - - node - - path - - pathauto - - system - - taxonomy - - views_ui -_core: - default_config_hash: J8rXM_vdD29ZTEwtLOs84Vsn-PTRH-ZDh_Pi610CAEI -id: administrator -label: Administrator -weight: 4 -is_admin: true -permissions: - - 'access administration pages' - - 'access content' - - 'access content overview' - - 'access contextual links' - - 'access devel information' - - 'access site in maintenance mode' - - 'access site reports' - - 'access user profiles' - - 'administer blocks' - - 'administer content types' - - 'administer filters' - - 'administer image styles' - - 'administer languages' - - 'administer menu' - - 'administer modules' - - 'administer nodes' - - 'administer pathauto' - - 'administer permissions' - - 'administer site configuration' - - 'administer software updates' - - 'administer taxonomy' - - 'administer themes' - - 'administer url aliases' - - 'administer users' - - 'administer views' - - 'bypass node access' - - 'cancel account' - - 'change own username' - - 'create url aliases' - - 'notify of path changes' - - 'select account cancellation method' - - 'switch users' - - 'translate any entity' - - 'translate interface' - - 'use text format full_html' - - 'view own unpublished content' - - 'view the administration theme'