* Copyright 2016 Nicolas Goaziou * * 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 . **/ return [ 'default' => [ 'actions' => [ 'index', 'view', 'add', 'edit'] ], 'AdherentRoles' => [ 'actions' => [ 'index', 'add', 'delete' ] ], 'AdherentRoleTypes' => [ 'actions' => [ '_empty' ] ], 'AdherentStatuts' => [ 'actions' => [ '_empty' ] ], 'AdherentTypes' => [ 'actions' => [ '_empty' ] ], 'Civilites' => [ 'actions' => [ '_empty' ] ], 'InteresseStatuts' => [ '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' => 'Find...', ], 'ville_id' => [ 'mode' => 'value', 'before' => 'false', 'after' => 'false', 'model' => 'Villes', 'colspan' => 2, 'hint' => 'Villes', ], ], ], 'Equipements' => [ 'title' => [ 'custom_code' => <<<'EOT' $this->_properties['ipmgmt_id'] . ( $this->_properties['hostname']?(" (" . $this->_properties['hostname'] . ")"):"") EOT ], 'filters' => [ 'q' => [ 'mode' => 'like', 'before' => 'true', 'after' => 'true', 'columns' => ['mac', 'ipmgmt_id', 'hostname'], 'colspan' => 3, 'hint' => 'MAC, IPv4, Hostname...', ], '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', ], ], ], 'Interesses' => [ 'actions' => [ 'index', 'view', 'add', 'edit', 'delete'], 'filters' => [ 'q' => [ 'mode' => 'like', 'before' => 'true', 'after' => 'true', 'columns' => ['nom', 'prenom', 'date_demande', 'raison'], 'colspan' => 5, 'hint' => 'Find...', ], 'interesse_statut_id' => [ 'mode' => 'value', 'before' => 'false', 'after' => 'false', 'model' => 'InteresseStatuts', 'colspan' => 2, 'hint' => 'Interesse Statut', ], ], ], 'Ipmgmt' => [ 'actions' => [ 'index', 'view', 'add' ], 'title' => [ 'glue' => ' ', 'pieces' => ['ip4'], ], ], 'Ippubliques' => [ 'actions' => [ 'index', 'view' ], 'title' => [ 'glue' => ' ', 'pieces' => ['ip4', 'ip6'], ], 'filters' => [ 'q' => [ 'mode' => 'like', 'before' => 'true', 'after' => 'false', 'columns' => ['ip4','ip6'], 'colspan' => 2, 'hint' => 'Find...', ], 'secteur_id' => [ 'mode' => 'value', 'before' => 'false', 'after' => 'false', 'model' => 'Secteurs', 'colspan' => 1, 'hint' => 'Secteurs', ], ], ], ];