Overview
Comment: | Corrige champ passe qui ne devrait pas être système + possibilité d'ajouter plusieurs champs perso de suite |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
ba2128803fba531d1aab7047c2ad7c0c |
User & Date: | bohwaz on 2018-06-20 21:18:28 |
Other Links: | manifest | tags |
Context
2018-06-22
| ||
00:57 | Amélioration galerie dynamique check-in: 6782dad4bf user: bohwaz tags: trunk, stable | |
2018-06-20
| ||
21:18 | Corrige champ passe qui ne devrait pas être système + possibilité d'ajouter plusieurs champs perso de suite check-in: ba2128803f user: bohwaz tags: trunk, stable | |
21:10 | Ne pas permettre d'ajouter des champs ayant un nom système check-in: 1f26ad54dd user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Membres/Champs.php from [611652ad59] to [6839687f0f].
︙ | ︙ | |||
8 9 10 11 12 13 14 | use Garradin\UserException; class Champs { protected $champs = null; protected $system_fields = [ | < | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | use Garradin\UserException; class Champs { protected $champs = null; protected $system_fields = [ 'date_connexion', 'date_inscription', 'clef_pgp', 'secret_otp', 'id', 'id_categorie', ]; |
︙ | ︙ |
Modified src/templates/admin/config/membres.tpl from [442c85f4e3] to [79611cc039].
︙ | ︙ | |||
107 108 109 110 111 112 113 114 115 116 117 118 119 120 | {/foreach} </select> </dd> </dl> <p> {csrf_field key="config_membres"} <input type="submit" name="add" value="Ajouter ce champ à la fiche membre" /> </p> </fieldset> </form> <form method="post" action="{$self_url}"> <div id="orderFields"> {foreach from=$champs item="champ" key="nom"} | > | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | {/foreach} </select> </dd> </dl> <p> {csrf_field key="config_membres"} <input type="submit" name="add" value="Ajouter ce champ à la fiche membre" /> <input type="hidden" name="champs" value="{$champs|escape:json|escape}" /> </p> </fieldset> </form> <form method="post" action="{$self_url}"> <div id="orderFields"> {foreach from=$champs item="champ" key="nom"} |
︙ | ︙ |