From b9451ccf0ed90c674c6f714de10a71a33a6c7b16 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 22 Jul 2018 22:33:53 +0200 Subject: bake: allow default order by through associated tables --- fai_gestion/config/bake_extra.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'fai_gestion/config') diff --git a/fai_gestion/config/bake_extra.php b/fai_gestion/config/bake_extra.php index e8788c8..5bd5e89 100644 --- a/fai_gestion/config/bake_extra.php +++ b/fai_gestion/config/bake_extra.php @@ -134,6 +134,27 @@ EOT ], ], ], + 'EquipementInterfaces' => [ + 'order' => [ + 'Equipements.hostname' => 'ASC', + 'EquipementInterfaces.title' => 'ASC', + ], + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => true, + 'after' => true, + 'field' => ['Equipements.hostname', 'Equipements.ip_management', 'EquipementInterfaces.title', 'mac'], + 'colspan' => 3, + 'hint' => 'Hostname, IP, MAC...', + ], + 'lien_radio_id' => [ + 'mode' => 'value', + 'colspan' => 1, + 'hint' => 'LienRadios', + ], + ], + ], 'EquipementModeles' => [ 'order' => [ 'EquipementModeles.constructeur' => 'ASC', -- cgit v1.1