diff --git a/app/templates/ApiUsers/fields-generate.inc b/app/templates/ApiUsers/fields-generate.inc index 293f2a1c1..a290c60d4 100644 --- a/app/templates/ApiUsers/fields-generate.inc +++ b/app/templates/ApiUsers/fields-generate.inc @@ -25,8 +25,18 @@ * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) */ -print $this->Field->banner(__d('information', 'api.key')); +print $this->element('banner', [ 'info' => __d('information', 'api.key')]); -print $this->Field->statusControl('username', $vv_obj->username); +print $this->element('form/listItem', [ + 'arguments' => [ + 'fieldName' => 'username', + 'status' => $vv_obj->username, + ] +]); -print $this->Field->statusControl('api_key', $vv_api_key); +print $this->element('form/listItem', [ + 'arguments' => [ + 'fieldName' => 'api_key', + 'status' => $vv_api_key, + ] +]); diff --git a/app/templates/element/form/infoDiv/status.php b/app/templates/element/form/infoDiv/status.php index 0d117520c..72c0052ea 100644 --- a/app/templates/element/form/infoDiv/status.php +++ b/app/templates/element/form/infoDiv/status.php @@ -29,6 +29,7 @@ declare(strict_types = 1); $linkHtml = $status; +$link = $link ?? []; if($link) {