{**************************************************************************} {* *} {* Copyright (C) 2003-2014 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program 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 2 of the License, or *} {* (at your option) any later version. *} {* *} {* This program 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 this program; if not, write to the Free Software *} {* Foundation, Inc., *} {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} {* *} {**************************************************************************}

Gestion des homonymes

{if $op eq 'list' || $op eq 'mail' || $op eq 'correct'} {if $homonyms_to_fix|@count}

Liste des homonymies à corriger, celles en rouge devraient déjà être traitées.
Dans un premier temps, envoyer un mail. Ensuite (typiquement une semaine plus tard), cliquer sur "corriger".

{foreach from=$homonyms_to_fix key=login item=row} {foreach from=$row item=user} {/foreach} {/foreach}
alias concerné date de péremption de l'alias actions
{if $row.0.urgent} {$login} {else} {$login} {/if} {$row.0.expire|date_format} envoyer un email corriger
  {$user.forlife} fiche edit
{/if}

Liste des homonymies déjà corrigées.

{foreach from=$homonyms key=login item=row} {foreach from=$row item=user} {/foreach} {/foreach}
alias concerné alias prémimé depuis actions
{$login} {if $row.0.expire eq '0000-00-00'}---{else}{$row.0.expire|date_format}{/if}
  {$user.forlife} fiche edit
{elseif $op eq 'mail-conf'}
{xsrf_token_field}
Envoyer un email pour prévenir l'utilisateur
{elseif $op eq 'correct-conf'}
{xsrf_token_field}
Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}
{/if} {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}