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.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/fai_gestion/config/bake_extra.php b/fai_gestion/config/bake_extra.php
index 788c073..67030bf 100644
--- a/fai_gestion/config/bake_extra.php
+++ b/fai_gestion/config/bake_extra.php
@@ -74,8 +74,12 @@ $controllerActions = [
$templateExtra = [
'Adherents' => [
'title' => [
- 'custom_code' => <<<'EOT'
- "ADT" . $this->_properties['id'] . " - " . ( $this->_properties['raison']?($this->_properties['raison'] . " (" . $this->_properties['nom'] . ")" ):($this->_properties['nom'] . " " . $this->_properties['prenom']) )
+ 'customCode' => <<<'EOT'
+ return "ADT" . $this->id . " - "
+ . ($this->raison
+ ?($this->raison . " (" . $this->nom . ")" )
+ :($this->nom . " " . $this->prenom)
+ );
EOT
],
'filters' => [
@@ -101,9 +105,7 @@ EOT
],
'Equipements' => [
'title' => [
- 'custom_code' => <<<'EOT'
- $this->_properties['ip_management'] . ( $this->_properties['hostname']?(" (" . $this->_properties['hostname'] . ")"):"")
-EOT
+ 'pieces' => ['hostname', 'ip_management'],
],
'filters' => [
'q' => [
@@ -128,7 +130,7 @@ EOT
],
'EquipementModeles' => [
'title' => [
- 'glue' => ' ',
+ 'glue' => ' - ',
'pieces' => ['constructeur', 'modele'],
],
],
@@ -170,9 +172,13 @@ EOT
],
],
],
+ 'LienRadios' => [
+ 'title' => [
+ 'pieces' => ['ssid'],
+ ],
+ ],
'Services' => [
'title' => [
- 'glue' => '-',
'prefix' => 'SER',
'pieces' => ['id'],
],