summaryrefslogtreecommitdiff
path: root/fai_gestion/config/bake_extra.php
diff options
context:
space:
mode:
Diffstat (limited to 'fai_gestion/config/bake_extra.php')
-rw-r--r--fai_gestion/config/bake_extra.php36
1 files changed, 26 insertions, 10 deletions
diff --git a/fai_gestion/config/bake_extra.php b/fai_gestion/config/bake_extra.php
index 1f7fe4f..897219b 100644
--- a/fai_gestion/config/bake_extra.php
+++ b/fai_gestion/config/bake_extra.php
@@ -85,8 +85,8 @@ EOT
'filters' => [
'q' => [
'mode' => 'like',
- 'before' => 'true',
- 'after' => 'true',
+ 'before' => true,
+ 'after' => true,
'field' => ['id','nom','nom2','prenom','prenom2','raison','proprio','tel_mobile1','tel_mobile2'],
'colspan' => 3,
'hint' => 'Chercher...',
@@ -104,14 +104,20 @@ EOT
],
],
'Equipements' => [
+ 'order' => [
+ 'Equipements.hostname' => 'ASC',
+ ],
+ 'orderHook' => [
+ 'Equipements.ip_management' => 'INET_ATON(Equipements.ip_management)',
+ ],
'title' => [
'pieces' => ['hostname', 'ip_management'],
],
'filters' => [
'q' => [
'mode' => 'like',
- 'before' => 'true',
- 'after' => 'true',
+ 'before' => true,
+ 'after' => true,
'field' => ['hostname', 'mac_boite', 'ip_management'],
'colspan' => 3,
'hint' => 'Hostname, IP, MAC...',
@@ -129,6 +135,10 @@ EOT
],
],
'EquipementModeles' => [
+ 'order' => [
+ 'EquipementModeles.constructeur' => 'ASC',
+ 'EquipementModeles.modele' => 'ASC',
+ ],
'title' => [
'glue' => ' - ',
'pieces' => ['constructeur', 'modele'],
@@ -138,8 +148,8 @@ EOT
'filters' => [
'q' => [
'mode' => 'like',
- 'before' => 'true',
- 'after' => 'true',
+ 'before' => true,
+ 'after' => true,
'field' => ['nom', 'prenom', 'date_demande', 'raison'],
'colspan' => 5,
'hint' => 'Chercher...',
@@ -151,16 +161,19 @@ EOT
],
],
],
- 'Ippubliques' => [
+ 'IpPubliques' => [
+ 'orderHook' => [
+ 'IpPubliques.ip4' => 'INET_ATON(IpPubliques.ip4)',
+ 'IpPubliques.ip6' => 'INET6_ATON(IpPubliques.ip6)',
+ ],
'title' => [
- 'glue' => ' ',
'pieces' => ['ip4', 'ip6'],
],
'filters' => [
'q' => [
'mode' => 'like',
- 'before' => 'true',
- 'after' => 'false',
+ 'before' => true,
+ 'after' => false,
'field' => ['ip4','ip6'],
'colspan' => 2,
'hint' => 'Derniers chiffres...',
@@ -173,6 +186,9 @@ EOT
],
],
'LienRadios' => [
+ 'order' => [
+ 'LienRadios.ssid' => 'ASC',
+ ],
'title' => [
'pieces' => ['ssid'],
],