Some html fixes
[platal.git] / templates / emails / duplicated.tpl
CommitLineData
9e570fe0 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2006 Polytechnique.org *}
4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
23<h1>Gestion des adresses en doublon</h1>
24
25{if $action eq "list"}
26<table class="bicol">
27 <tr>
28 <th>Adresse</th>
29 <th>Etat</th>
30 <th>Utilisateurs</th>
31 <th></th>
32 </tr>
9e570fe0 33 <tr class="impair">
34 <td colspan="2">
35 <strong>Ajouter une entrée manuellement</strong>
36 </td>
37 <td colspan="2" class="right">
38 <strong><a href="admin/emails/duplicated/create">créer{icon name=add}</a></strong>
39 </td>
40 </tr>
41 {foreach from=$table item=doublon}
42 <tr class="{cycle values="pair,impair"}">
43 <td>
44 <strong>{$doublon.mail}</strong><br />
45 Détecté le {$doublon.detection|date_format}
46 </td>
47 <td>
48 {$doublon.state}
49 </td>
50 <td class="right">
51 {foreach from=$doublon.users item=user name=all}
3bfc5bfe 52 <a href="profile/{$user}" class="popup2">{$user}{icon name=user_suit title="Fiche"}</a>
9e570fe0 53 <a href="admin/user/{$user}">{icon name=wrench title="Administrer}</a>{if !$smarty.foreach.all.last}<br />{/if}
54 {/foreach}
55 </td>
56 <td class="right">
57 <a href="admin/emails/duplicated/edit/{$doublon.mail}">{icon name=page_edit title="Editer"}</a>
58 <a href="admin/emails/duplicated/delete/{$doublon.mail}">{icon name=delete title="Supprimer"}</a>
59 </td>
60 </tr>
61 {/foreach}
62</table>
63{elseif $action eq "create" || $action eq "edit"}
64[<a href="admin/emails/duplicated">Retour à la liste des doublons</a>]<br /><br />
65<form method="post" action="admin/emails/duplicated">
66<table class="tinybicol">
67 <tr>
3bfc5bfe 68 <th colspan="2">Commenter le doublon</th>
9e570fe0 69 </tr>
70 <tr class="impair">
3bfc5bfe 71 <td class="titre">Adresse mail</td>
9e570fe0 72 {if $action eq "create"}
73 <td><input type="text" name="emailN" /></td>
74 {else}
75 <td>
76 <a href="mailto:{$doublon.mail}">{icon name=email title="Envoyer un mail"}</a>
77 &nbsp;{$doublon.mail}
78 <input type="hidden" name="emailN" value="{$doublon.mail}" />
79 </td>
9f94a7d4 80 </tr>
9e570fe0 81 {foreach from=$doublon.users key=i name=all item=user}
9f94a7d4 82 {if $i is even}<tr class="impair">{/if}
9e570fe0 83 <td>
3bfc5bfe 84 <a href="profile/{$user}" class="popup2">{$user}{icon name=user_suit title="Fiche"}</a>
9e570fe0 85 <a href="admin/user/{$user}">{icon name=wrench title="Administrer}</a>{if !$smarty.foreach.all.last}<br />{/if}
86 </td>
87 {if $i is even && $smarty.foreach.all.last}<td></td>{/if}
9f94a7d4 88 {if $i is odd || $smarty.foreach.all.last}</tr>{/if}
9e570fe0 89 {/foreach}
9e570fe0 90 <tr class="pair">
3bfc5bfe 91 <td class="titre">Date de détection</td>
9e570fe0 92 <td>{$doublon.detection|date_format}</td>
93 {/if}
94 </tr>
95 <tr class="pair">
3bfc5bfe 96 <td class="titre">Danger</td>
9e570fe0 97 <td>
98 <select name="stateN">
99 {foreach from=$states key=state item=text}
100 <option value="{$state}"{if $doublon.state eq $state} selected="selected"{/if}>{$text}</option>
101 {/foreach}
102 </select>
103 </td>
104 </tr>
105 <tr class="impair">
3bfc5bfe 106 <td colspan="2" class="titre">Description</td>
351ff9e3 107 {if $doublon.edit}
108 </tr>
109 <tr class="impair">
3bfc5bfe 110 <td colspan="2">
111 <small>Dernière édition par {$doublon.edit} le {$doublon.last|date_format}</small>
9e570fe0 112 </td>
351ff9e3 113 {/if}
9e570fe0 114 </tr>
115 <tr class="impair">
116 <td colspan="2" class="center">
117 <textarea cols="50" rows="10" name="descriptionN">{$doublon.description}</textarea>
118 </td>
119 </tr>
120 <tr>
121 <th colspan="2">
122 <input type="hidden" name="action" value="{$action}" />
123 <input type="submit" name="valid" value="Valider" />
124 </th>
125 </tr>
126</table>
127</form>
128{/if}
129
130{* vim:set et sw=2 sts=2 sws=2: *}