Overview
Comment: | Ajout recherche sur catégorie de membre |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
b648e8d1ffe0043b3861c8e98cf47686 |
User & Date: | bohwaz on 2018-10-01 17:36:08 |
Other Links: | branch diff | manifest | tags |
Context
2018-10-01
| ||
18:00 | Mise en commun export CSV/ODS (+ simplification) check-in: 72b8ff6c0f user: bohwaz tags: dev | |
17:36 | Ajout recherche sur catégorie de membre check-in: b648e8d1ff user: bohwaz tags: dev | |
17:14 | Édition et suppression de recherche enregistrée check-in: a4991057b3 user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Recherche.php from [1c1828c11f] to [7584e020e0].
︙ | ︙ | |||
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | /** * Renvoie la liste des colonnes d'une cible */ public function getColumns($target) { $columns = []; if ($target == 'membres') { $champs = Config::getInstance()->get('champs_membres'); foreach ($champs->getList() as $champ => $config) { $column = (object) [ 'realType' => $config->type, 'textMatch'=> $champs->isText($champ), 'label' => $config->title, | > > > > > > > > > > | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | /** * Renvoie la liste des colonnes d'une cible */ public function getColumns($target) { $columns = []; $db = DB::getInstance(); if ($target == 'membres') { $champs = Config::getInstance()->get('champs_membres'); $columns['id_categorie'] = (object) [ 'realType' => 'select', 'textMatch'=> false, 'label' => 'Catégorie', 'type' => 'enum', 'null' => false, 'values' => $db->getAssoc('SELECT id, nom FROM membres_categories ORDER BY nom;'), ]; foreach ($champs->getList() as $champ => $config) { $column = (object) [ 'realType' => $config->type, 'textMatch'=> $champs->isText($champ), 'label' => $config->title, |
︙ | ︙ |
Modified src/templates/admin/membres/recherche.tpl from [83ce1eddb2] to [96417436b3].
︙ | ︙ | |||
72 73 74 75 76 77 78 | } else if (label == '-') { label = '➖'; } var i = document.createElement('input'); | < | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | } else if (label == '-') { label = '➖'; } var i = document.createElement('input'); i.type = type == 'integer' ? 'number' : type; i.value = label; if (type == 'button') { i.className = 'icn action'; } |
︙ | ︙ |