mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
* datatable row actions
Below is a sample of extra param to enable feature:
$aExtraParams['row_actions'] = [
[
'tooltip' => 'remove an element',
'icon_css_class' => 'fa-minus',
'js_row_action' => 'console.log("You clicked the remove button");',
'confirmation' => [
'message' => 'UI:ConfirmationMessage',
'message_row_data' => "name",
'remember_choice_pref_key' => 'remove_do_not_show_again',
],
],
[
'tooltip' => 'open in new tab',
'icon_css_class' => 'fa-external-link-square-alt',
'on_action_js' => 'window.open("http://localhost/itop-branchs/dev/pages/UI.php?operation=details&class=UserRequest&id=" + aData.id + "&c[menu]=UserRequest%3AOpenRequests");',
],
[
'tooltip' => 'other actions',
'icon_css_class' => 'fa-ellipsis-v',
'on_action_js' => 'console.log(event);',
],
];
* Contrôleur pour la suppression et le détachement de liens
* Block UI pour l'édition des relations
* Block UI pour la visualisation des relations
* Boutons d'actions pour la suppression et le détachement de liens
* Gestion dialogue de confirmation pour les row actions
36 lines
1.7 KiB
PHP
36 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (C) 2013-2021 Combodo SARL
|
|
*
|
|
* This file is part of iTop.
|
|
*
|
|
* iTop is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* iTop is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
*/
|
|
|
|
// Display DataTable
|
|
Dict::Add('EN US', 'English', 'English', array(
|
|
'UI:Datatables:Language:Processing' => 'Please wait...',
|
|
'UI:Datatables:Language:LengthMenu' => '_MENU_ per page',
|
|
'UI:Datatables:Language:ZeroRecords' => 'No result',
|
|
'UI:Datatables:Language:Info' => '_TOTAL_ item(s)',
|
|
'UI:Datatables:Language:InfoEmpty' => 'No information',
|
|
'UI:Datatables:Language:EmptyTable' => 'No data available in this table',
|
|
'UI:Datatables:Language:Error' => 'An error occured while running the query',
|
|
'UI:Datatables:Language:DisplayLength:All' => 'All',
|
|
'UI:Datatables:Language:Sort:Ascending' => 'enable for an ascending sort',
|
|
'UI:Datatables:Language:Sort:Descending' => 'enable for a descending sort',
|
|
'UI:Datatables:Column:RowActions:Label' => '',
|
|
'UI:Datatables:Column:RowActions:Description' => '',
|
|
'UI:Datatables:RowActions:ConfirmationDialog' => 'Action Confirmation',
|
|
'UI:Datatables:RowActions:ConfirmationMessage' => 'Do you confirm action ?',
|
|
)); |