From b0ee85cb12554274ab43eea5d827308a7cc4594b Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 13 Jan 2021 14:29:54 +0100 Subject: [PATCH] new: [UI] connection test field added for the brood index --- .../IndexTable/Fields/connection_test.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/element/genericElements/IndexTable/Fields/connection_test.php diff --git a/templates/element/genericElements/IndexTable/Fields/connection_test.php b/templates/element/genericElements/IndexTable/Fields/connection_test.php new file mode 100644 index 0000000..c79370b --- /dev/null +++ b/templates/element/genericElements/IndexTable/Fields/connection_test.php @@ -0,0 +1,14 @@ +Hash->extract($row, $field['data_path'])[0]; + echo sprintf( + '
%s
', + h($data), + __('Test the connection to the remote instance'), + __('Test the connection to the remote instance'), + sprintf( + "testConnection('%s');", + h($data) + ), + __('Run') + ); +?>