From 0a48717089b8f01032b2d70d54a2c3a6204c82da Mon Sep 17 00:00:00 2001 From: Andy Newton Date: Thu, 20 Jun 2024 16:26:19 +0100 Subject: [PATCH] feat: LTA Admin Functionality --- composer.json | 2 +- composer.lock | 390 +++++++++--------- module/Admin/config/module.config.php | 14 + module/Admin/config/navigation.config.php | 6 + .../Controller/LocalAuthorityController.php | 51 +++ .../LocalAuthorityControllerFactory.php | 35 ++ .../Admin/src/Data/Mapper/LocalAuthority.php | 52 +++ .../Model/Fieldset/LocalAuthorityDetails.php | 50 +++ .../src/Form/Model/Form/LocalAuthority.php | 28 ++ .../Tables/admin-local-authority.table.php | 55 +++ .../view/pages/local-authority/index.phtml | 7 + 11 files changed, 496 insertions(+), 194 deletions(-) create mode 100644 module/Admin/src/Controller/LocalAuthorityController.php create mode 100644 module/Admin/src/Controller/LocalAuthorityControllerFactory.php create mode 100644 module/Admin/src/Data/Mapper/LocalAuthority.php create mode 100644 module/Admin/src/Form/Model/Fieldset/LocalAuthorityDetails.php create mode 100644 module/Admin/src/Form/Model/Form/LocalAuthority.php create mode 100644 module/Admin/src/Table/Tables/admin-local-authority.table.php create mode 100644 module/Admin/view/pages/local-authority/index.phtml diff --git a/composer.json b/composer.json index 59eda6c947..e4923b44ca 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "olcs/olcs-auth": "^8.0", "olcs/olcs-common": "^7.2.3", "olcs/olcs-logging": "^7.2", - "olcs/olcs-transfer": "^7.0.0", + "olcs/olcs-transfer": "^7.4.0", "olcs/olcs-utils": "^6.0.0", "saeven/zf3-purifier": "^1.1", "doctrine/doctrine-module": "^5", diff --git a/composer.lock b/composer.lock index 2adf0f4ba4..8581790302 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "98e7389934cb281ba7a792e232fa0701", + "content-hash": "aa45ee987e374178dbf92df15596debd", "packages": [ { "name": "aws/aws-crt-php", - "version": "v1.2.5", + "version": "v1.2.6", "source": { "type": "git", "url": "https://github.com/awslabs/aws-crt-php.git", - "reference": "0ea1f04ec5aa9f049f97e012d1ed63b76834a31b" + "reference": "a63485b65b6b3367039306496d49737cf1995408" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/0ea1f04ec5aa9f049f97e012d1ed63b76834a31b", - "reference": "0ea1f04ec5aa9f049f97e012d1ed63b76834a31b", + "url": "https://api.github.com/repos/awslabs/aws-crt-php/zipball/a63485b65b6b3367039306496d49737cf1995408", + "reference": "a63485b65b6b3367039306496d49737cf1995408", "shasum": "" }, "require": { @@ -56,22 +56,22 @@ ], "support": { "issues": "https://github.com/awslabs/aws-crt-php/issues", - "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.5" + "source": "https://github.com/awslabs/aws-crt-php/tree/v1.2.6" }, - "time": "2024-04-19T21:30:56+00:00" + "time": "2024-06-13T17:21:28+00:00" }, { "name": "aws/aws-sdk-php", - "version": "3.306.4", + "version": "3.314.7", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "f50ff987dbe6d3e60d68794970422eae71ffb525" + "reference": "3a7ea3e49ae50eaaa969dc15d69b2dd46b4d7284" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f50ff987dbe6d3e60d68794970422eae71ffb525", - "reference": "f50ff987dbe6d3e60d68794970422eae71ffb525", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3a7ea3e49ae50eaaa969dc15d69b2dd46b4d7284", + "reference": "3a7ea3e49ae50eaaa969dc15d69b2dd46b4d7284", "shasum": "" }, "require": { @@ -151,32 +151,32 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.306.4" + "source": "https://github.com/aws/aws-sdk-php/tree/3.314.7" }, - "time": "2024-05-10T18:23:57+00:00" + "time": "2024-06-24T21:03:27+00:00" }, { "name": "brick/varexporter", - "version": "0.4.0", + "version": "0.5.0", "source": { "type": "git", "url": "https://github.com/brick/varexporter.git", - "reference": "2fd038f7c9d12d468130c6e1b3ce06e4160a7dbb" + "reference": "84b2a7a91f69aa5d079aec5a0a7256ebf2dceb6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brick/varexporter/zipball/2fd038f7c9d12d468130c6e1b3ce06e4160a7dbb", - "reference": "2fd038f7c9d12d468130c6e1b3ce06e4160a7dbb", + "url": "https://api.github.com/repos/brick/varexporter/zipball/84b2a7a91f69aa5d079aec5a0a7256ebf2dceb6b", + "reference": "84b2a7a91f69aa5d079aec5a0a7256ebf2dceb6b", "shasum": "" }, "require": { - "nikic/php-parser": "^4.0", + "nikic/php-parser": "^5.0", "php": "^7.4 || ^8.0" }, "require-dev": { "php-coveralls/php-coveralls": "^2.2", - "phpunit/phpunit": "^8.5 || ^9.0", - "vimeo/psalm": "5.15.0" + "phpunit/phpunit": "^9.3", + "psalm/phar": "5.21.1" }, "type": "library", "autoload": { @@ -194,7 +194,7 @@ ], "support": { "issues": "https://github.com/brick/varexporter/issues", - "source": "https://github.com/brick/varexporter/tree/0.4.0" + "source": "https://github.com/brick/varexporter/tree/0.5.0" }, "funding": [ { @@ -202,7 +202,7 @@ "type": "github" } ], - "time": "2023-09-01T21:10:07+00:00" + "time": "2024-05-10T17:15:19+00:00" }, { "name": "doctrine/annotations", @@ -1177,26 +1177,26 @@ }, { "name": "firebase/php-jwt", - "version": "v6.10.0", + "version": "v6.10.1", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "a49db6f0a5033aef5143295342f1c95521b075ff" + "reference": "500501c2ce893c824c801da135d02661199f60c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff", - "reference": "a49db6f0a5033aef5143295342f1c95521b075ff", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5", + "reference": "500501c2ce893c824c801da135d02661199f60c5", "shasum": "" }, "require": { - "php": "^7.4||^8.0" + "php": "^8.0" }, "require-dev": { - "guzzlehttp/guzzle": "^6.5||^7.4", + "guzzlehttp/guzzle": "^7.4", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "psr/cache": "^1.0||^2.0", + "psr/cache": "^2.0||^3.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0" }, @@ -1234,9 +1234,9 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.10.0" + "source": "https://github.com/firebase/php-jwt/tree/v6.10.1" }, - "time": "2023-12-01T16:26:39+00:00" + "time": "2024-05-18T18:05:11+00:00" }, { "name": "guzzlehttp/guzzle", @@ -1641,16 +1641,16 @@ }, { "name": "laminas/laminas-cache", - "version": "3.12.1", + "version": "3.12.2", "source": { "type": "git", "url": "https://github.com/laminas/laminas-cache.git", - "reference": "bf8bc7f92e15925991c46079c6cd727372af5a46" + "reference": "f99d10dd1f13d5163a924f8561e9dca3d27d8ad2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-cache/zipball/bf8bc7f92e15925991c46079c6cd727372af5a46", - "reference": "bf8bc7f92e15925991c46079c6cd727372af5a46", + "url": "https://api.github.com/repos/laminas/laminas-cache/zipball/f99d10dd1f13d5163a924f8561e9dca3d27d8ad2", + "reference": "f99d10dd1f13d5163a924f8561e9dca3d27d8ad2", "shasum": "" }, "require": { @@ -1738,7 +1738,7 @@ "type": "community_bridge" } ], - "time": "2024-01-19T20:42:11+00:00" + "time": "2024-06-14T13:39:14+00:00" }, { "name": "laminas/laminas-cache-storage-adapter-redis", @@ -1809,16 +1809,16 @@ }, { "name": "laminas/laminas-code", - "version": "4.13.0", + "version": "4.14.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-code.git", - "reference": "7353d4099ad5388e84737dd16994316a04f48dbf" + "reference": "562e02b7d85cb9142b5116cc76c4c7c162a11a1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-code/zipball/7353d4099ad5388e84737dd16994316a04f48dbf", - "reference": "7353d4099ad5388e84737dd16994316a04f48dbf", + "url": "https://api.github.com/repos/laminas/laminas-code/zipball/562e02b7d85cb9142b5116cc76c4c7c162a11a1c", + "reference": "562e02b7d85cb9142b5116cc76c4c7c162a11a1c", "shasum": "" }, "require": { @@ -1830,7 +1830,7 @@ "laminas/laminas-coding-standard": "^2.5.0", "laminas/laminas-stdlib": "^3.17.0", "phpunit/phpunit": "^10.3.3", - "psalm/plugin-phpunit": "^0.18.4", + "psalm/plugin-phpunit": "^0.19.0", "vimeo/psalm": "^5.15.0" }, "suggest": { @@ -1868,7 +1868,7 @@ "type": "community_bridge" } ], - "time": "2023-10-18T10:00:55+00:00" + "time": "2024-06-17T08:50:25+00:00" }, { "name": "laminas/laminas-config", @@ -2134,16 +2134,16 @@ }, { "name": "laminas/laminas-eventmanager", - "version": "3.13.0", + "version": "3.13.1", "source": { "type": "git", "url": "https://github.com/laminas/laminas-eventmanager.git", - "reference": "ce5ba8bde378fca5cb0cd514f01823637215b2f3" + "reference": "933d1b5cf03fa4cf3016cebfd0555fa2ba3f2024" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/ce5ba8bde378fca5cb0cd514f01823637215b2f3", - "reference": "ce5ba8bde378fca5cb0cd514f01823637215b2f3", + "url": "https://api.github.com/repos/laminas/laminas-eventmanager/zipball/933d1b5cf03fa4cf3016cebfd0555fa2ba3f2024", + "reference": "933d1b5cf03fa4cf3016cebfd0555fa2ba3f2024", "shasum": "" }, "require": { @@ -2198,20 +2198,20 @@ "type": "community_bridge" } ], - "time": "2024-01-03T17:43:50+00:00" + "time": "2024-06-24T14:01:06+00:00" }, { "name": "laminas/laminas-filter", - "version": "2.35.2", + "version": "2.36.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-filter.git", - "reference": "3e821b33a787253d56046f9258174a22de1bd267" + "reference": "307afc21ada0648e84cdcf9e14cd84bd43ee9d13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-filter/zipball/3e821b33a787253d56046f9258174a22de1bd267", - "reference": "3e821b33a787253d56046f9258174a22de1bd267", + "url": "https://api.github.com/repos/laminas/laminas-filter/zipball/307afc21ada0648e84cdcf9e14cd84bd43ee9d13", + "reference": "307afc21ada0648e84cdcf9e14cd84bd43ee9d13", "shasum": "" }, "require": { @@ -2229,11 +2229,11 @@ "laminas/laminas-crypt": "^3.11", "laminas/laminas-i18n": "^2.26.0", "laminas/laminas-uri": "^2.11", - "pear/archive_tar": "^1.4.14", - "phpunit/phpunit": "^10.5.11", + "pear/archive_tar": "^1.5.0", + "phpunit/phpunit": "^10.5.20", "psalm/plugin-phpunit": "^0.19.0", - "psr/http-factory": "^1.0.2", - "vimeo/psalm": "^5.22.2" + "psr/http-factory": "^1.1.0", + "vimeo/psalm": "^5.24.0" }, "suggest": { "laminas/laminas-crypt": "Laminas\\Crypt component, for encryption filters", @@ -2277,7 +2277,7 @@ "type": "community_bridge" } ], - "time": "2024-04-11T08:13:56+00:00" + "time": "2024-06-13T10:31:36+00:00" }, { "name": "laminas/laminas-form", @@ -2951,20 +2951,20 @@ }, { "name": "laminas/laminas-modulemanager", - "version": "2.15.0", + "version": "2.16.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-modulemanager.git", - "reference": "4c4e6f29f0b1a770c8ce4f30dd3a48eb45ed7d3b" + "reference": "8df7b237d75c04a1bc17b8f7d01eeb601cd7b7e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-modulemanager/zipball/4c4e6f29f0b1a770c8ce4f30dd3a48eb45ed7d3b", - "reference": "4c4e6f29f0b1a770c8ce4f30dd3a48eb45ed7d3b", + "url": "https://api.github.com/repos/laminas/laminas-modulemanager/zipball/8df7b237d75c04a1bc17b8f7d01eeb601cd7b7e3", + "reference": "8df7b237d75c04a1bc17b8f7d01eeb601cd7b7e3", "shasum": "" }, "require": { - "brick/varexporter": "^0.3.2 || ^0.4", + "brick/varexporter": "^0.3.2 || ^0.4 || ^0.5", "laminas/laminas-config": "^3.7", "laminas/laminas-eventmanager": "^3.4", "laminas/laminas-stdlib": "^3.6", @@ -2980,7 +2980,7 @@ "laminas/laminas-mvc": "^3.6.1", "laminas/laminas-servicemanager": "^3.22.1", "phpunit/phpunit": "^10.4.2", - "psalm/plugin-phpunit": "^0.18.4", + "psalm/plugin-phpunit": "^0.19.0", "vimeo/psalm": "^5.15" }, "suggest": { @@ -3019,7 +3019,7 @@ "type": "community_bridge" } ], - "time": "2023-11-02T09:09:35+00:00" + "time": "2024-06-14T14:44:50+00:00" }, { "name": "laminas/laminas-mvc", @@ -3708,16 +3708,16 @@ }, { "name": "laminas/laminas-session", - "version": "2.20.0", + "version": "2.21.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-session.git", - "reference": "16876aa20a6688d06291a972f7e1eb0b74b05d51" + "reference": "b8cd890f7682a255b335c2ca45df9a7cbc58873d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-session/zipball/16876aa20a6688d06291a972f7e1eb0b74b05d51", - "reference": "16876aa20a6688d06291a972f7e1eb0b74b05d51", + "url": "https://api.github.com/repos/laminas/laminas-session/zipball/b8cd890f7682a255b335c2ca45df9a7cbc58873d", + "reference": "b8cd890f7682a255b335c2ca45df9a7cbc58873d", "shasum": "" }, "require": { @@ -3731,16 +3731,16 @@ }, "require-dev": { "ext-xdebug": "*", - "laminas/laminas-cache": "^3.12.1", + "laminas/laminas-cache": "^3.12.2", "laminas/laminas-cache-storage-adapter-memory": "^2.3", "laminas/laminas-coding-standard": "~2.5.0", - "laminas/laminas-db": "^2.19.0", + "laminas/laminas-db": "^2.20.0", "laminas/laminas-http": "^2.19", - "laminas/laminas-validator": "^2.49.0", - "mongodb/mongodb": "~1.17.0", - "phpunit/phpunit": "^9.6.17", - "psalm/plugin-phpunit": "^0.18.4", - "vimeo/psalm": "^5.22.2" + "laminas/laminas-validator": "^2.57.0", + "mongodb/mongodb": "~1.17.1", + "phpunit/phpunit": "^9.6.19", + "psalm/plugin-phpunit": "^0.19.0", + "vimeo/psalm": "^5.24.0" }, "suggest": { "laminas/laminas-cache": "Laminas\\Cache component", @@ -3786,7 +3786,7 @@ "type": "community_bridge" } ], - "time": "2024-03-08T11:02:36+00:00" + "time": "2024-06-19T14:36:45+00:00" }, { "name": "laminas/laminas-stdlib", @@ -3967,16 +3967,16 @@ }, { "name": "laminas/laminas-validator", - "version": "2.53.0", + "version": "2.59.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-validator.git", - "reference": "dbcfc19cb7f2e3eb3a27ba5d059c200e8404d72c" + "reference": "1ea93397469ddf2d5989706b8d85ab1806b6c5e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-validator/zipball/dbcfc19cb7f2e3eb3a27ba5d059c200e8404d72c", - "reference": "dbcfc19cb7f2e3eb3a27ba5d059c200e8404d72c", + "url": "https://api.github.com/repos/laminas/laminas-validator/zipball/1ea93397469ddf2d5989706b8d85ab1806b6c5e9", + "reference": "1ea93397469ddf2d5989706b8d85ab1806b6c5e9", "shasum": "" }, "require": { @@ -3990,16 +3990,16 @@ }, "require-dev": { "laminas/laminas-coding-standard": "^2.5", - "laminas/laminas-db": "^2.19", - "laminas/laminas-filter": "^2.34", + "laminas/laminas-db": "^2.20", + "laminas/laminas-filter": "^2.35.2", "laminas/laminas-i18n": "^2.26.0", "laminas/laminas-session": "^2.20", "laminas/laminas-uri": "^2.11.0", - "phpunit/phpunit": "^10.5.15", + "phpunit/phpunit": "^10.5.20", "psalm/plugin-phpunit": "^0.19.0", "psr/http-client": "^1.0.3", - "psr/http-factory": "^1.0.2", - "vimeo/psalm": "^5.23.1" + "psr/http-factory": "^1.1.0", + "vimeo/psalm": "^5.24.0" }, "suggest": { "laminas/laminas-db": "Laminas\\Db component, required by the (No)RecordExists validator", @@ -4047,20 +4047,20 @@ "type": "community_bridge" } ], - "time": "2024-04-01T09:26:32+00:00" + "time": "2024-06-19T14:26:44+00:00" }, { "name": "laminas/laminas-view", - "version": "2.34.0", + "version": "2.35.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-view.git", - "reference": "53136a59622c8809c519b29dbbaa346aa39e834a" + "reference": "f597148345dd406fb9d04d391a19c0c33bf71605" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-view/zipball/53136a59622c8809c519b29dbbaa346aa39e834a", - "reference": "53136a59622c8809c519b29dbbaa346aa39e834a", + "url": "https://api.github.com/repos/laminas/laminas-view/zipball/f597148345dd406fb9d04d391a19c0c33bf71605", + "reference": "f597148345dd406fb9d04d391a19c0c33bf71605", "shasum": "" }, "require": { @@ -4095,11 +4095,11 @@ "laminas/laminas-navigation": "^2.19.1", "laminas/laminas-paginator": "^2.18.1", "laminas/laminas-permissions-acl": "^2.16", - "laminas/laminas-router": "^3.12.0", + "laminas/laminas-router": "^3.13.0", "laminas/laminas-uri": "^2.11", - "phpunit/phpunit": "^10.5.9", - "psalm/plugin-phpunit": "^0.18.4", - "vimeo/psalm": "^5.20" + "phpunit/phpunit": "^10.5.13", + "psalm/plugin-phpunit": "^0.19.0", + "vimeo/psalm": "^5.23.1" }, "suggest": { "laminas/laminas-authentication": "Laminas\\Authentication component", @@ -4147,7 +4147,7 @@ "type": "community_bridge" } ], - "time": "2024-01-25T11:26:39+00:00" + "time": "2024-06-04T06:44:31+00:00" }, { "name": "laminas/laminas-xml", @@ -4361,25 +4361,27 @@ }, { "name": "nikic/php-parser", - "version": "v4.19.1", + "version": "v5.0.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.1" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "bin": [ "bin/php-parse" @@ -4387,7 +4389,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -4411,9 +4413,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" }, - "time": "2024-03-17T08:10:35+00:00" + "time": "2024-03-05T20:51:40+00:00" }, { "name": "olcs/olcs-auth", @@ -4609,16 +4611,16 @@ }, { "name": "olcs/olcs-transfer", - "version": "v7.2.0", + "version": "v7.4.0", "source": { "type": "git", "url": "https://github.com/dvsa/olcs-transfer.git", - "reference": "afa84d67606ab0cf40b421782bce12bb1684de49" + "reference": "59e5f6e9004efaccca9c4ddeb858107779e38730" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/dvsa/olcs-transfer/zipball/afa84d67606ab0cf40b421782bce12bb1684de49", - "reference": "afa84d67606ab0cf40b421782bce12bb1684de49", + "url": "https://api.github.com/repos/dvsa/olcs-transfer/zipball/59e5f6e9004efaccca9c4ddeb858107779e38730", + "reference": "59e5f6e9004efaccca9c4ddeb858107779e38730", "shasum": "" }, "require": { @@ -4660,9 +4662,9 @@ "notification-url": "https://packagist.org/downloads/", "description": "OLCS Transfer", "support": { - "source": "https://github.com/dvsa/olcs-transfer/tree/v7.2.0" + "source": "https://github.com/dvsa/olcs-transfer/tree/v7.4.0" }, - "time": "2024-06-18T10:09:17+00:00" + "time": "2024-06-28T09:33:06+00:00" }, { "name": "olcs/olcs-utils", @@ -5248,16 +5250,16 @@ }, { "name": "symfony/console", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f" + "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/a170e64ae10d00ba89e2acbb590dc2e54da8ad8f", - "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f", + "url": "https://api.github.com/repos/symfony/console/zipball/be5854cee0e8c7b110f00d695d11debdfa1a2a91", + "reference": "be5854cee0e8c7b110f00d695d11debdfa1a2a91", "shasum": "" }, "require": { @@ -5322,7 +5324,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.4.7" + "source": "https://github.com/symfony/console/tree/v6.4.8" }, "funding": [ { @@ -5338,20 +5340,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/dependency-injection", - "version": "v5.4.39", + "version": "v5.4.40", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "5b4505f2afbe1d11d43a3917d0c1c178a38f6f19" + "reference": "408b33326496030c201b8051b003e9e8cdb2efc9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/5b4505f2afbe1d11d43a3917d0c1c178a38f6f19", - "reference": "5b4505f2afbe1d11d43a3917d0c1c178a38f6f19", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/408b33326496030c201b8051b003e9e8cdb2efc9", + "reference": "408b33326496030c201b8051b003e9e8cdb2efc9", "shasum": "" }, "require": { @@ -5411,7 +5413,7 @@ "description": "Allows you to standardize and centralize the way objects are constructed in your application", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dependency-injection/tree/v5.4.39" + "source": "https://github.com/symfony/dependency-injection/tree/v5.4.40" }, "funding": [ { @@ -5427,7 +5429,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T08:26:06+00:00" + "time": "2024-05-31T14:33:22+00:00" }, { "name": "symfony/deprecation-contracts", @@ -5498,16 +5500,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", "shasum": "" }, "require": { @@ -5557,7 +5559,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" }, "funding": [ { @@ -5573,20 +5575,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", - "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", "shasum": "" }, "require": { @@ -5635,7 +5637,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" }, "funding": [ { @@ -5651,20 +5653,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", "shasum": "" }, "require": { @@ -5716,7 +5718,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" }, "funding": [ { @@ -5732,20 +5734,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", - "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", "shasum": "" }, "require": { @@ -5796,7 +5798,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" }, "funding": [ { @@ -5812,20 +5814,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", "shasum": "" }, "require": { @@ -5876,7 +5878,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" }, "funding": [ { @@ -5892,20 +5894,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d" + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/c565ad1e63f30e7477fc40738343c62b40bc672d", - "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/3fb075789fb91f9ad9af537c4012d523085bd5af", + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af", "shasum": "" }, "require": { @@ -5952,7 +5954,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.30.0" }, "funding": [ { @@ -5968,20 +5970,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/property-access", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "9174e2ec62563dfc15fbe84d1618613092e09d91" + "reference": "e4d9b00983612f9c0013ca37c61affdba2dd975a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/9174e2ec62563dfc15fbe84d1618613092e09d91", - "reference": "9174e2ec62563dfc15fbe84d1618613092e09d91", + "url": "https://api.github.com/repos/symfony/property-access/zipball/e4d9b00983612f9c0013ca37c61affdba2dd975a", + "reference": "e4d9b00983612f9c0013ca37c61affdba2dd975a", "shasum": "" }, "require": { @@ -6029,7 +6031,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v6.4.7" + "source": "https://github.com/symfony/property-access/tree/v6.4.8" }, "funding": [ { @@ -6045,20 +6047,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:22:46+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/property-info", - "version": "v6.4.7", + "version": "v6.4.8", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "42778ca731b8796e02e237008f4ed871361ddfce" + "reference": "7f544bc6ceb1a6a2283c7af8e8621262c43b7ede" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/42778ca731b8796e02e237008f4ed871361ddfce", - "reference": "42778ca731b8796e02e237008f4ed871361ddfce", + "url": "https://api.github.com/repos/symfony/property-info/zipball/7f544bc6ceb1a6a2283c7af8e8621262c43b7ede", + "reference": "7f544bc6ceb1a6a2283c7af8e8621262c43b7ede", "shasum": "" }, "require": { @@ -6112,7 +6114,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v6.4.7" + "source": "https://github.com/symfony/property-info/tree/v6.4.8" }, "funding": [ { @@ -6128,7 +6130,7 @@ "type": "tidelift" } ], - "time": "2024-04-28T10:28:08+00:00" + "time": "2024-05-31T14:49:08+00:00" }, { "name": "symfony/service-contracts", @@ -6215,16 +6217,16 @@ }, { "name": "symfony/string", - "version": "v7.0.7", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "e405b5424dc2528e02e31ba26b83a79fd4eb8f63" + "reference": "60bc311c74e0af215101235aa6f471bcbc032df2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/e405b5424dc2528e02e31ba26b83a79fd4eb8f63", - "reference": "e405b5424dc2528e02e31ba26b83a79fd4eb8f63", + "url": "https://api.github.com/repos/symfony/string/zipball/60bc311c74e0af215101235aa6f471bcbc032df2", + "reference": "60bc311c74e0af215101235aa6f471bcbc032df2", "shasum": "" }, "require": { @@ -6238,6 +6240,7 @@ "symfony/translation-contracts": "<2.5" }, "require-dev": { + "symfony/emoji": "^7.1", "symfony/error-handler": "^6.4|^7.0", "symfony/http-client": "^6.4|^7.0", "symfony/intl": "^6.4|^7.0", @@ -6281,7 +6284,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.0.7" + "source": "https://github.com/symfony/string/tree/v7.1.1" }, "funding": [ { @@ -6297,7 +6300,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:29:19+00:00" + "time": "2024-06-04T06:40:14+00:00" }, { "name": "webimpress/safe-writer", @@ -6785,16 +6788,16 @@ }, { "name": "mockery/mockery", - "version": "1.6.11", + "version": "1.6.12", "source": { "type": "git", "url": "https://github.com/mockery/mockery.git", - "reference": "81a161d0b135df89951abd52296adf97deb0723d" + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/81a161d0b135df89951abd52296adf97deb0723d", - "reference": "81a161d0b135df89951abd52296adf97deb0723d", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", "shasum": "" }, "require": { @@ -6864,20 +6867,20 @@ "security": "https://github.com/mockery/mockery/security/advisories", "source": "https://github.com/mockery/mockery" }, - "time": "2024-03-21T18:34:15+00:00" + "time": "2024-05-16T03:13:13+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.11.1", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", - "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", "shasum": "" }, "require": { @@ -6885,11 +6888,12 @@ }, "conflict": { "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3,<3.2.2" + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, "require-dev": { "doctrine/collections": "^1.6.8", "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", @@ -6915,7 +6919,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" }, "funding": [ { @@ -6923,7 +6927,7 @@ "type": "tidelift" } ], - "time": "2023-03-08T13:26:56+00:00" + "time": "2024-06-12T14:39:25+00:00" }, { "name": "phar-io/manifest", @@ -8506,16 +8510,16 @@ }, { "name": "symfony/var-dumper", - "version": "v7.0.7", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "d1627b66fd87c8b4d90cabe5671c29d575690924" + "reference": "deb2c2b506ff6fdbb340e00b34e9901e1605f293" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/d1627b66fd87c8b4d90cabe5671c29d575690924", - "reference": "d1627b66fd87c8b4d90cabe5671c29d575690924", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/deb2c2b506ff6fdbb340e00b34e9901e1605f293", + "reference": "deb2c2b506ff6fdbb340e00b34e9901e1605f293", "shasum": "" }, "require": { @@ -8569,7 +8573,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v7.0.7" + "source": "https://github.com/symfony/var-dumper/tree/v7.1.1" }, "funding": [ { @@ -8585,7 +8589,7 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:29:19+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "theseer/tokenizer", diff --git a/module/Admin/config/module.config.php b/module/Admin/config/module.config.php index 37b46cc2e0..7ea34c0394 100644 --- a/module/Admin/config/module.config.php +++ b/module/Admin/config/module.config.php @@ -42,6 +42,19 @@ ], ], ], + 'local-authority' => [ + 'type' => Segment::class, + 'options' => [ + 'route' => 'local-authority[/:action][/:id]', + 'constraints' => [ + 'action' => '(index|edit)', + ], + 'defaults' => [ + 'controller' => Admin\Controller\LocalAuthorityController::class, + 'action' => 'index', + ], + ], + ], ], ], 'admin-data-retention' => [ @@ -938,6 +951,7 @@ Admin\Controller\IrhpPermitSectorController::class => Admin\Controller\IrhpPermitSectorControllerFactory::class, Admin\Controller\IrhpPermitStockController::class => Admin\Controller\IrhpPermitStockControllerFactory::class, Admin\Controller\IrhpPermitWindowController::class => Admin\Controller\IrhpPermitWindowControllerFactory::class, + Admin\Controller\LocalAuthorityController::class => Admin\Controller\LocalAuthorityControllerFactory::class, Admin\Controller\MyDetailsController::class => Admin\Controller\MyDetailsControllerFactory::class, Admin\Controller\PartnerController::class => Admin\Controller\PartnerControllerFactory::class, Admin\Controller\PaymentProcessingFeesController::class => Admin\Controller\PaymentProcessingFeesControllerFactory::class, diff --git a/module/Admin/config/navigation.config.php b/module/Admin/config/navigation.config.php index 50d33e0eba..d8c4cb3324 100644 --- a/module/Admin/config/navigation.config.php +++ b/module/Admin/config/navigation.config.php @@ -451,6 +451,12 @@ 'label' => 'Notice periods', 'route' => 'admin-dashboard/admin-bus-registration/notice-period', ], + [ + 'id' => 'admin-dashboard/admin-bus-registration/local-authority', + 'class' => 'govuk-link--no-visited-state', + 'label' => 'Local Authorities (LTA)', + 'route' => 'admin-dashboard/admin-bus-registration/local-authority', + ], ], ], [ diff --git a/module/Admin/src/Controller/LocalAuthorityController.php b/module/Admin/src/Controller/LocalAuthorityController.php new file mode 100644 index 0000000000..5c784c76bd --- /dev/null +++ b/module/Admin/src/Controller/LocalAuthorityController.php @@ -0,0 +1,51 @@ + ['table-actions'], + ]; + + // list + protected $tableName = 'admin-local-authority'; + protected $defaultTableSortField = 'id'; + protected $defaultTableOrderField = 'ASC'; + protected $listDto = ListDto::class; + + // add/edit + protected $itemDto = ItemDto::class; + protected $formClass = LocalAuthorityForm::class; + protected $mapperClass = LocalAuthorityMapper::class; + protected $updateCommand = UpdateDto::class; + + protected $editContentTitle = 'Edit Local Authority'; + + protected $tableViewTemplate = 'pages/local-authority/index'; + + public function getLeftView() + { + $view = new ViewModel( + [ + 'navigationId' => 'admin-dashboard/admin-bus-registration/notice-period', + 'navigationTitle' => 'Local Authorities (LTA)' + ] + ); + $view->setTemplate('admin/sections/admin/partials/generic-left'); + + return $view; + } +} diff --git a/module/Admin/src/Controller/LocalAuthorityControllerFactory.php b/module/Admin/src/Controller/LocalAuthorityControllerFactory.php new file mode 100644 index 0000000000..33b49568f5 --- /dev/null +++ b/module/Admin/src/Controller/LocalAuthorityControllerFactory.php @@ -0,0 +1,35 @@ +get(TranslationHelperService::class); + assert($translationHelper instanceof TranslationHelperService); + + $formHelperService = $container->get(FormHelperService::class); + assert($formHelperService instanceof FormHelperService); + + $flashMessenger = $container->get(FlashMessengerHelperService::class); + assert($flashMessenger instanceof FlashMessengerHelperService); + + $navigation = $container->get('navigation'); + assert($navigation instanceof Navigation); + + return new LocalAuthorityController( + $translationHelper, + $formHelperService, + $flashMessenger, + $navigation + ); + } +} diff --git a/module/Admin/src/Data/Mapper/LocalAuthority.php b/module/Admin/src/Data/Mapper/LocalAuthority.php new file mode 100644 index 0000000000..d5014ea3df --- /dev/null +++ b/module/Admin/src/Data/Mapper/LocalAuthority.php @@ -0,0 +1,52 @@ + $data]; + } + + /** + * Should map form data back into a command data structure + * + * @param array $data Data from form + * + * @return array + */ + public static function mapFromForm(array $data): array + { + return $data['localAuthorityDetails']; + } + + /** + * Should map errors onto the form, any global errors should be returned so they can be added + * to the flash messenger + * + * @param FormInterface $form Form interface + * @param array $errors array response from errors + * + * @return array + */ + public static function mapFromErrors(FormInterface $form, array $errors): array + { + return $errors; + } +} diff --git a/module/Admin/src/Form/Model/Fieldset/LocalAuthorityDetails.php b/module/Admin/src/Form/Model/Fieldset/LocalAuthorityDetails.php new file mode 100644 index 0000000000..55e9024804 --- /dev/null +++ b/module/Admin/src/Form/Model/Fieldset/LocalAuthorityDetails.php @@ -0,0 +1,50 @@ + [ + 'titleSingular' => 'Local Authority', + 'title' => 'Local Authorities' + ], + 'settings' => [ + 'crud' => [ + 'actions' => [ + 'edit' => ['requireRows' => true, 'class' => 'govuk-button govuk-button--secondary js-require--one'] + ] + ], + 'paginate' => [ + 'limit' => [ + 'default' => 25, + 'options' => [10, 25, 50] + ], + ] + ], + 'attributes' => [ + ], + 'columns' => [ + [ + 'title' => 'ID', + 'name' => 'id', + ], + [ + 'title' => 'Description', + 'name' => 'description', + ], + [ + 'title' => 'Email Address', + 'name' => 'emailAddress', + ], + [ + 'title' => 'TransXchange Name', + 'name' => 'txcName', + ], + [ + 'title' => 'NAPTAN Code', + 'name' => 'naptanCode', + ], + [ + 'title' => 'Traffic Area', + 'name' => 'trafficArea', + 'formatter' => fn($row) => $row['trafficArea']['name'] + ], + [ + 'title' => 'markup-table-th-action', + 'width' => 'checkbox', + 'format' => '{{[elements/radio]}}' + ], + ] +]; diff --git a/module/Admin/view/pages/local-authority/index.phtml b/module/Admin/view/pages/local-authority/index.phtml new file mode 100644 index 0000000000..142d90ebaf --- /dev/null +++ b/module/Admin/view/pages/local-authority/index.phtml @@ -0,0 +1,7 @@ +render('pages/table'); +?> +
+

Only name changes and notification email changes can be actioned via this Interface

+

Additions, deletions, merges, and changes to any other fields must be raised with the VOL CI Product Owner, to be actioned by the developers

+