diff options
Diffstat (limited to 'generator/before-bake/config/bake_extra.php')
-rw-r--r-- | generator/before-bake/config/bake_extra.php | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/generator/before-bake/config/bake_extra.php b/generator/before-bake/config/bake_extra.php new file mode 100644 index 0000000..3ff3352 --- /dev/null +++ b/generator/before-bake/config/bake_extra.php @@ -0,0 +1,162 @@ +<?php +/** + * Copyright 2016 Ludovic Pouzenc <ludovic@pouzenc.fr> + * Copyright 2016 Nicolas Goaziou <mail@nicolasgoaziou.fr> + * + * This file is part of CHD Gestion. + * + * CHD Gestion is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * CHD Gestion 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with CHD Gestion. If not, see <http://www.gnu.org/licenses/>. +**/ +return [ + 'default' => [ 'actions' => [ 'index', 'view', 'add', 'edit'] ], + 'AdherentRoles' => [ 'actions' => [ 'index', 'add', 'delete' ] ], + 'AdherentRoleTypes' => [ 'actions' => [ '_empty' ] ], + 'AdherentStatuts' => [ 'actions' => [ '_empty' ] ], + 'AdherentTypes' => [ 'actions' => [ '_empty' ] ], + 'Civilites' => [ 'actions' => [ '_empty' ] ], + 'Periodicites' => [ 'actions' => [ '_empty' ] ], + 'Secteurs' => [ 'actions' => [ '_empty' ] ], + 'ServiceStatuts' => [ 'actions' => [ '_empty' ] ], + 'ServiceTypes' => [ 'actions' => [ '_empty' ] ], + 'EquipementModes' => [ 'actions' => [ '_empty' ] ], + 'EquipementModeles' => [ + 'title' => [ + 'glue' => ' ', + 'pieces' => ['constructeur', 'modele'], + ], + ], + 'Adherents' => [ + 'title' => [ + 'custom_code' => <<<'EOT' +"CHD" . $this->_properties['id'] . " - " . ( $this->_properties['raison']?($this->_properties['raison'] . " (" . $this->_properties['nom'] . ")" ):($this->_properties['nom'] . " " . $this->_properties['prenom']) ) +EOT + ], + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => 'true', + 'after' => 'true', + 'columns' => ['id','nom','nom2','prenom','prenom2','raison','proprio','tel_mobile1','tel_mobile2'], + 'colspan' => 5, + 'hint' => 'Rechercher...', + ], + 'ville_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'Villes', + 'colspan' => 2, + 'hint' => 'Villes', + ], + ], + ], + 'Equipements' => [ + 'title' => [ + 'glue' => ' ', + 'pieces' => ['mac'], + ], + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => 'true', + 'after' => 'true', + //'columns' => ['id', 'ipmgmt.ip4','ipmgmt.ip6', 'mac'], + 'columns' => ['mac'], + 'colspan' => 3, + 'hint' => 'Adresse MAC...', + ], + 'equipement_modele_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'EquipementModeles', + 'colspan' => 2, + 'hint' => 'Equipement Modeles', + ], + 'relais_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'Relais', + 'colspan' => 2, + 'hint' => 'Relais', + ], + ], + ], + 'Services' => [ + 'title' => [ + 'glue' => '-', + 'prefix' => 'SER', + 'pieces' => ['service_type_id', 'adherent_id', 'id'], + ], + 'filters' => [ + 'service_type_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'ServiceTypes', + 'colspan' => 3, + 'hint' => 'Service Type', + ], + 'service_statut_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'ServiceStatuts', + 'colspan' => 2, + 'hint' => 'Service Statut', + ], + 'relais_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'Relais', + 'colspan' => 2, + 'hint' => 'Relais', + ], + ], + ], + 'Ipmgmt' => [ + 'actions' => [ 'index', 'view' ], + 'title' => [ + 'glue' => ' ', + 'pieces' => ['ip4', 'ip6'], + ], + ], + 'Ippubliques' => [ + 'actions' => [ 'index', 'view' ], + 'title' => [ + 'glue' => ' ', + 'pieces' => ['ip4', 'ip6'], + ], + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => 'true', + 'after' => 'false', + 'columns' => ['ip4','ip6'], + 'colspan' => 2, + 'hint' => 'Rechercher...', + ], + 'secteur_id' => [ + 'mode' => 'value', + 'before' => 'false', + 'after' => 'false', + 'model' => 'Secteurs', + 'colspan' => 1, + 'hint' => 'Secteurs', + ], + ], + ], +]; |