diff options
Diffstat (limited to 'fai_gestion/config')
-rw-r--r-- | fai_gestion/config/bake_extra.php | 118 |
1 files changed, 114 insertions, 4 deletions
diff --git a/fai_gestion/config/bake_extra.php b/fai_gestion/config/bake_extra.php index 559b340..788c073 100644 --- a/fai_gestion/config/bake_extra.php +++ b/fai_gestion/config/bake_extra.php @@ -45,16 +45,31 @@ $taskParams = [ 'theme' => 'CustomTheme', 'no-fixture' => true, 'no-test' => true, - 'no-rules' => true, - 'index-columns' => 6 + 'index-columns' => 7 #'components' => 'hello,world', ], - 'Adherents' => [ 'index-columns' => 7 ], + #'Adherents' => [ 'index-columns' => 7 ], ]; $controllerActions = [ 'default' => [ 'index', 'view', 'add', 'edit'], 'AdherentRoles' => [ 'index', 'add', 'delete' ], 'AdherentRoleTypes' => [ ], + 'AdherentStatuts' => [ ], + 'AdherentTypes' => [ ], + 'Civilites' => [ ], + #'EquipementInterfaces' => [ ], # TODO in equipements ? + 'EquipementModes' => [ ], + 'Interesses' => [ 'index', 'view', 'add', 'edit', 'delete'], + 'InteresseStatuts' => [ ], + 'Ippubliques' => [ 'index', 'view' ], # FIXME rename table to ip_publiques + #'LienFilaire' => [ ], # TODO in equipements ? + #'LienRadio' => [ ], # TODO in equipements ? + #'LienTunnel' => [ ], # TODO in equipements ? + 'Periodicites' => [ ], + 'Secteurs' => [ ], + 'ServiceStatuts' => [ ], + 'ServiceTypes' => [ ], + # 'Villes' => [ ], # default ]; $templateExtra = [ 'Adherents' => [ @@ -70,7 +85,7 @@ EOT 'after' => 'true', 'field' => ['id','nom','nom2','prenom','prenom2','raison','proprio','tel_mobile1','tel_mobile2'], 'colspan' => 3, - 'hint' => 'Find...', + 'hint' => 'Chercher...', ], 'adherent_type_id' => [ 'mode' => 'value', @@ -84,6 +99,101 @@ EOT ], ], ], + 'Equipements' => [ + 'title' => [ + 'custom_code' => <<<'EOT' + $this->_properties['ip_management'] . ( $this->_properties['hostname']?(" (" . $this->_properties['hostname'] . ")"):"") +EOT + ], + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => 'true', + 'after' => 'true', + 'field' => ['mac_boite', 'ip_management', 'hostname'], + 'colspan' => 3, + 'hint' => 'MAC, IPv4, Hostname...', + ], + 'equipement_modele_id' => [ + 'mode' => 'value', + 'colspan' => 2, + 'hint' => 'Equipement Modeles', + ], + 'relais_id' => [ + 'mode' => 'value', + 'colspan' => 2, + 'hint' => 'Relais', + ], + ], + ], + 'EquipementModeles' => [ + 'title' => [ + 'glue' => ' ', + 'pieces' => ['constructeur', 'modele'], + ], + ], + 'Interesses' => [ + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => 'true', + 'after' => 'true', + 'field' => ['nom', 'prenom', 'date_demande', 'raison'], + 'colspan' => 5, + 'hint' => 'Chercher...', + ], + 'interesse_statut_id' => [ + 'mode' => 'value', + 'colspan' => 2, + 'hint' => 'Interesse Statut', + ], + ], + ], + 'Ippubliques' => [ + 'title' => [ + 'glue' => ' ', + 'pieces' => ['ip4', 'ip6'], + ], + 'filters' => [ + 'q' => [ + 'mode' => 'like', + 'before' => 'true', + 'after' => 'false', + 'field' => ['ip4','ip6'], + 'colspan' => 2, + 'hint' => 'Derniers chiffres...', + ], + 'secteur_id' => [ + 'mode' => 'value', + 'colspan' => 1, + 'hint' => 'Secteurs', + ], + ], + ], + 'Services' => [ + 'title' => [ + 'glue' => '-', + 'prefix' => 'SER', + 'pieces' => ['id'], + ], + 'filters' => [ + 'service_type_id' => [ + 'mode' => 'value', + 'colspan' => 3, + 'hint' => 'Service Type', + ], + 'service_statut_id' => [ + 'mode' => 'value', + 'colspan' => 2, + 'hint' => 'Service Statut', + ], + 'relais_id' => [ + 'mode' => 'value', + 'colspan' => 2, + 'hint' => 'Relais', + ], + ], + ], ]; return compact('skipTables', 'taskParams', 'controllerActions', 'templateExtra'); |