Skip to content

Commit

Permalink
ApiUsers fields-generate.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Apr 26, 2024
1 parent c1b8445 commit 5db3828
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions app/templates/ApiUsers/fields-generate.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
]);
1 change: 1 addition & 0 deletions app/templates/element/form/infoDiv/status.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
declare(strict_types = 1);

$linkHtml = $status;
$link = $link ?? [];


if($link) {
Expand Down

0 comments on commit 5db3828

Please sign in to comment.