new: [UI] connection test field added for the brood index

pull/38/head
iglocska 2021-01-13 14:29:54 +01:00
parent 7402476f0c
commit b0ee85cb12
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?php
$data = $this->Hash->extract($row, $field['data_path'])[0];
echo sprintf(
'<div id="connection_test_%s"><span role="button" tabindex="0" aria-label="%s" title="%s" class="btn btn-primary btn-sm" onClick="%s">%s</span></div>',
h($data),
__('Test the connection to the remote instance'),
__('Test the connection to the remote instance'),
sprintf(
"testConnection('%s');",
h($data)
),
__('Run')
);
?>