diff --git a/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc b/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc index e3178098d..1df48194a 100644 --- a/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc +++ b/app/availableplugins/ApiConnector/templates/ApiSources/fields.inc @@ -25,19 +25,8 @@ * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ -$alerts = [ - [ - 'type' => 'information', - 'message' => __d('information', 'plugin.config.none') - ] -]; - -// XXX Revisit this - what's the "Push Mode" text attempting to convey here (with no other information)? -$fields = [ - 'SUBTITLE' => [ - 'subtitle' => __d('api_connector', 'field.ApiSources.push_mode') - ] -]; +// There are currently no directly configurable fields for this model. +$showNoConfigMessage = true; $subnav = [ 'tabs' => ['ExternalIdentitySources', 'ApiConnector.ApiSources', 'ExternalIdentitySources@action.search'], diff --git a/app/availableplugins/PipelineToolkit/src/Model/Table/IdentifierMappersTable.php b/app/availableplugins/PipelineToolkit/src/Model/Table/IdentifierMappersTable.php index bcf15f191..42c34e508 100644 --- a/app/availableplugins/PipelineToolkit/src/Model/Table/IdentifierMappersTable.php +++ b/app/availableplugins/PipelineToolkit/src/Model/Table/IdentifierMappersTable.php @@ -41,6 +41,19 @@ class IdentifierMappersTable extends Table { use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\ValidationTrait; + /** + * Provide the default layout + * + * @since COmanage Registry v5.4.0 + * @return string Type of redirect + */ + public function getLayout(string $action = ''): string { + return match($action) { + 'index','add','edit','view','deleted' => 'iframe', + default => 'default' + }; + } + /** * Perform Cake Model initialization. * diff --git a/app/availableplugins/PipelineToolkit/src/Model/Table/LoginIdentifierTypesTable.php b/app/availableplugins/PipelineToolkit/src/Model/Table/LoginIdentifierTypesTable.php index 3e72832c7..5d592e1a6 100644 --- a/app/availableplugins/PipelineToolkit/src/Model/Table/LoginIdentifierTypesTable.php +++ b/app/availableplugins/PipelineToolkit/src/Model/Table/LoginIdentifierTypesTable.php @@ -43,6 +43,19 @@ class LoginIdentifierTypesTable extends Table { use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\ValidationTrait; + /** + * Provide the default layout + * + * @since COmanage Registry v5.4.0 + * @return string Type of redirect + */ + public function getLayout(string $action = ''): string { + return match($action) { + 'index','add','edit','view','deleted' => 'iframe', + default => 'default' + }; + } + /** * Perform Cake Model initialization. * diff --git a/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappersTable.php b/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappersTable.php index 437bbefb2..9387ccff4 100644 --- a/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappersTable.php +++ b/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappersTable.php @@ -41,6 +41,19 @@ class PersonRoleMappersTable extends Table { use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\ValidationTrait; + /** + * Provide the default layout + * + * @since COmanage Registry v5.4.0 + * @return string Type of redirect + */ + public function getLayout(string $action = ''): string { + return match($action) { + 'index','add','edit','view','deleted' => 'iframe', + default => 'default' + }; + } + /** * Perform Cake Model initialization. * diff --git a/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappingsTable.php b/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappingsTable.php index cd4fd5415..8d0977295 100644 --- a/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappingsTable.php +++ b/app/availableplugins/PipelineToolkit/src/Model/Table/PersonRoleMappingsTable.php @@ -42,7 +42,20 @@ class PersonRoleMappingsTable extends Table { use \App\Lib\Traits\PrimaryLinkTrait; use \App\Lib\Traits\TableMetaTrait; use \App\Lib\Traits\ValidationTrait; - + + /** + * Provide the default layout + * + * @since COmanage Registry v5.4.0 + * @return string Type of redirect + */ + public function getLayout(string $action = ''): string { + return match($action) { + 'index','add','edit','view','deleted' => 'iframe', + default => 'default' + }; + } + /** * Perform Cake Model initialization. * diff --git a/app/availableplugins/PipelineToolkit/templates/IdentifierMappers/fields.inc b/app/availableplugins/PipelineToolkit/templates/IdentifierMappers/fields.inc index 403f3f929..85c05b844 100644 --- a/app/availableplugins/PipelineToolkit/templates/IdentifierMappers/fields.inc +++ b/app/availableplugins/PipelineToolkit/templates/IdentifierMappers/fields.inc @@ -25,20 +25,9 @@ * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ -// There are currently no directly configurable fields for this model.) -$suppress_submit = true; +// There are currently no directly configurable fields for this model. +$showNoConfigMessage = true; + +$subnav = 'flanges'; -// Top Links -$topLinks[] = [ - 'icon' => 'transform', - 'order' => 'Default', - 'label' => __d('pipeline_toolkit', 'controller.LoginIdentifierTypes', [99]), - 'link' => [ - 'plugin' => 'PipelineToolkit', - 'controller' => 'LoginIdentifierTypes', - 'action' => 'index', - 'identifier_mapper_id' => $vv_obj->id - ], - 'class' => '' -]; ?> diff --git a/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/columns.inc b/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/columns.inc index f287f169c..aee3bf653 100644 --- a/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/columns.inc +++ b/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/columns.inc @@ -39,10 +39,6 @@ $indexColumns = [ ] ]; -/* -// When the $bulkActions variable exists in a columns.inc config, the "Bulk edit" switch will appear in the index. -$bulkActions = [ - // TODO: develop bulk actions. For now, use a placeholder. - 'delete' => true -]; -*/ +$inIframe = true; + +$subnav = 'flanges'; diff --git a/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/fields.inc b/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/fields.inc index 69c161ed5..8cf27d5c0 100644 --- a/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/fields.inc +++ b/app/availableplugins/PipelineToolkit/templates/LoginIdentifierTypes/fields.inc @@ -29,3 +29,5 @@ $fields = [ 'type_id', 'login' ]; + +$subnav = 'flanges'; diff --git a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappers/fields.inc b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappers/fields.inc index 5579fb55a..5142b3d0f 100644 --- a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappers/fields.inc +++ b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappers/fields.inc @@ -25,21 +25,9 @@ * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ -// There are currently no directly configurable fields for this model.) -$suppress_submit = true; +// There are currently no directly configurable fields for this model. +$showNoConfigMessage = true; -// Top Links -$topLinks[] = [ - 'icon' => 'transform', - 'order' => 'Default', - 'label' => __d('pipeline_toolkit', 'controller.PersonRoleMappings', [99]), - 'link' => [ - 'plugin' => 'PipelineToolkit', - 'controller' => 'PersonRoleMappings', - 'action' => 'index', - 'person_role_mapper_id' => $vv_obj->id - ], - 'class' => '' -]; +$subnav = 'flanges'; ?> diff --git a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/columns.inc b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/columns.inc index 8b442abea..65c1d7197 100644 --- a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/columns.inc +++ b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/columns.inc @@ -45,10 +45,6 @@ $indexColumns = [ ] ]; -/* -// When the $bulkActions variable exists in a columns.inc config, the "Bulk edit" switch will appear in the index. -$bulkActions = [ - // TODO: develop bulk actions. For now, use a placeholder. - 'delete' => true -]; -*/ +$inIframe = true; + +$subnav = 'flanges'; diff --git a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc index 5ad27c9d3..395117e59 100644 --- a/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc +++ b/app/availableplugins/PipelineToolkit/templates/PersonRoleMappings/fields.inc @@ -38,6 +38,8 @@ $fields = [ 'ordr' ]; +$subnav = 'flanges'; + ?>