Overview
Comment: | Correction de certains bugs dans les templates avec la transition à Smartyer |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | dev |
Files: | files | file ages | folders |
SHA1: |
2a49b9aeb629b9e3f367247a1259ab01 |
User & Date: | bohwaz on 2017-01-19 04:22:14 |
Other Links: | branch diff | manifest | tags |
Context
2017-01-19
| ||
21:34 | Merge avec trunk check-in: 1b1ebb4095 user: bohwaz tags: dev | |
04:22 | Correction de certains bugs dans les templates avec la transition à Smartyer check-in: 2a49b9aeb6 user: bohwaz tags: dev | |
03:58 | Utilisation de KD2\ErrorManager comme gestionnaire d'erreur au lieu du gestionnaire maison check-in: d56397f058 user: bohwaz tags: dev | |
Changes
Modified src/include/lib/Garradin/Template.php from [08784a1c0f] to [1aa1dbd2ec].
︙ | ︙ | |||
591 592 593 594 595 596 597 | $tpl->register_modifier('format_sqlite_date_to_french', ['Garradin\Utils', 'sqliteDateToFrench']); $tpl->register_modifier('format_bytes', ['Garradin\Utils', 'format_bytes']); $tpl->register_modifier('strftime_fr', 'Garradin\tpl_strftime_fr'); $tpl->register_modifier('date_fr', 'Garradin\tpl_date_fr'); | > > > > > > > | 591 592 593 594 595 596 597 598 599 600 601 602 603 604 | $tpl->register_modifier('format_sqlite_date_to_french', ['Garradin\Utils', 'sqliteDateToFrench']); $tpl->register_modifier('format_bytes', ['Garradin\Utils', 'format_bytes']); $tpl->register_modifier('strftime_fr', 'Garradin\tpl_strftime_fr'); $tpl->register_modifier('date_fr', 'Garradin\tpl_date_fr'); $tpl->register_compile_function('continue', function ($pos, $block, $name, $raw_args) { if ($block == 'continue') { return 'continue;'; } }); |
Modified src/templates/admin/config/index.tpl from [33e274fd92] to [5b3c1849f9].
︙ | ︙ | |||
16 17 18 19 20 21 22 | <form method="post" action="{$self_url}"> <fieldset> <legend>Garradin</legend> <dl> <dt>Version installée</dt> | | | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | <form method="post" action="{$self_url}"> <fieldset> <legend>Garradin</legend> <dl> <dt>Version installée</dt> <dd class="help">{$garradin_version} <a href="{$garradin_website}">[Vérifier la disponibilité d'une nouvelle version]</a></dd> <dt>Informations système</dt> <dd class="help">PHP version {$php_version} — SQLite version {$sqlite_version}</dd> </dl> </fieldset> <fieldset> <legend>Informations sur l'association</legend> |
︙ | ︙ | |||
89 90 91 92 93 94 95 | {/foreach} </select> </dd> <dt><label for="f_champ_identite">Champ utilisé pour définir l'identité des membres</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd class="help">Ce champ des fiches membres sera utilisé comme identité du membre dans les emails, les fiches, les pages, etc.</dd> <dd> <select name="champ_identite" required="required" id="f_champ_identite"> | | | | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | {/foreach} </select> </dd> <dt><label for="f_champ_identite">Champ utilisé pour définir l'identité des membres</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd class="help">Ce champ des fiches membres sera utilisé comme identité du membre dans les emails, les fiches, les pages, etc.</dd> <dd> <select name="champ_identite" required="required" id="f_champ_identite"> {foreach from=$champs key="c" item="champ"} <option value="{$c}" {form_field selected=$c name="champ_identite" data=$config}>{$champ.title}</option> {/foreach} </select> </dd> <dt><label for="f_champ_identifiant">Champ utilisé comme identifiant de connexion</label> <b title="(Champ obligatoire)">obligatoire</b></dt> <dd class="help">Ce champ des fiches membres sera utilisé en guise d'identifiant pour se connecter à Garradin. Pour cela le champ doit être unique (pas de doublons).</dd> <dd> <select name="champ_identifiant" required="required" id="f_champ_identifiant"> {foreach from=$champs key="c" item="champ"} <option value="{$c}" {form_field selected=$c name="champ_identifiant" data=$config}>{$champ.title}</option> {/foreach} </select> </dd> </dl> </fieldset> |
︙ | ︙ |
Modified src/templates/admin/config/plugins.tpl from [cc8224796a] to [1d5abf639f].
︙ | ︙ | |||
63 64 65 66 67 68 69 | </tr> {/foreach} </tbody> </table> {else} <p class="help"> Aucune extension n'est installée. | | | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | </tr> {/foreach} </tbody> </table> {else} <p class="help"> Aucune extension n'est installée. Vous pouvez consulter <a href="{$garradin_website}">le site de Garradin</a> pour obtenir des extensions à télécharger. </p> {/if} {if !empty($liste_telecharges)} <form method="post" action="{$self_url}"> |
︙ | ︙ |
Modified src/www/admin/compta/_inc.php from [ca64083ba8] to [668ded3763].
1 2 3 4 5 6 7 8 9 10 11 12 13 | <?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; if ($user['droits']['compta'] < Membres::DROIT_ACCES) { throw new UserException("Vous n'avez pas le droit d'accéder à cette page."); } $comptes = new Compta\Comptes; | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; if ($user['droits']['compta'] < Membres::DROIT_ACCES) { throw new UserException("Vous n'avez pas le droit d'accéder à cette page."); } $comptes = new Compta\Comptes; $tpl->assign('id_caisse', Compta\Comptes::CAISSE); |
Modified src/www/admin/config/_inc.php from [04e5b052de] to [04927b203f].
1 2 3 4 5 6 7 8 9 10 11 | <?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; if ($user['droits']['config'] < Membres::DROIT_ADMIN) { throw new UserException("Vous n'avez pas le droit d'accéder à cette page."); } | | | 1 2 3 4 5 6 7 8 9 10 11 12 | <?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; if ($user['droits']['config'] < Membres::DROIT_ADMIN) { throw new UserException("Vous n'avez pas le droit d'accéder à cette page."); } $tpl->assign('garradin_website', WEBSITE); |