In French address only takes one d
[platal.git] / templates / emails / alias.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 Polytechnique.org *}
0337d704 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
24{if $success}
25 <p>
a7de4ef7 26 La demande de création des alias <strong>{$success}@{#globals.mail.alias_dom#}</strong> et
27 <strong>{$success}@{#globals.mail.alias_dom2#}</strong> a bien été enregistrée. Après
28 vérification, tu recevras un mail te signalant l'ouverture de ces adresses.
0337d704 29 </p>
30 <p>
31 Encore merci de nous faire confiance pour tes e-mails !
32 </p>
33{else}
34 <h1>
a7de4ef7 35 Adresses e-mail personnalisées
0337d704 36 </h1>
37
38{if $actuel}
5721c9a3 39 {javascript name=ajax}
0337d704 40 <table class="flags">
41 <tr>
42 <td class="orange">
b7582015 43 <input type="checkbox" {if $mail_public}checked="checked"{/if}
44 onclick="
46504fb3 45 Ajax.update_html(null,'{$globals->baseurl}/emails/alias/set/'+(this.checked?'public':'private')+'?token={xsrf_token}');
a7de4ef7 46 document.getElementById('mail_public').innerHTML = (this.checked?'public et apparaît donc sur ta fiche':'privé et n\'apparaît nulle part sur le site') + '.';
b7582015 47 " />
0337d704 48 </td>
49 <td>
e8439508 50 Ton alias est actuellement&nbsp;: <strong>{$actuel}</strong>. Il est pour l'instant
a7de4ef7 51 <span id="mail_public">{if $mail_public}public et apparaît donc sur ta fiche.{else}privé et n'apparaît nulle part sur le site.{/if}</span>
0337d704 52 </td>
53 </tr>
54 </table>
0337d704 55
56{else}
57 <p>
a7de4ef7 58 Pour plus de <strong>convivialité</strong> dans l'utilisation de tes mails, tu peux choisir une adresse
59 e-mail discrète et personnalisée. Ce nouvel e-mail peut par exemple correspondre à ton surnom.
0337d704 60 </p>
61{/if}
62
63 <p>
a7de4ef7 64 Pour de plus amples informations sur ce service, nous t'invitons à consulter
65 <a href="Xorg/AliasMelix">cette documentation</a> qui répondra
483fb312 66 sans doute à toutes tes questions.
0337d704 67 </p>
68
69 {if $actuel}
70 <p>
e8439508 71 <strong>Note&nbsp;: tu as déjà l'alias {$actuel}, or tu ne peux avoir qu'un seul alias à la fois.
a7de4ef7 72 Si tu effectues une nouvelle demande l'ancien alias sera effacé.</strong>
0337d704 73 </p>
74 {/if}
75
76 {if $demande}
77 <p>
e8439508 78 <strong>Note&nbsp;: tu as déjà effectué une demande pour {$demande->alias}, dont le traitement est
0337d704 79 en cours. Si tu souhaites modifier ceci refais une demande, sinon ce n'est pas la peine.</strong>
80 </p>
81 {/if}
82
83 <br />
7b2413f6 84 <form action="emails/alias/ask" method="post">
46504fb3 85 {xsrf_token_field}
0337d704 86 <table class="bicol" cellpadding="4" summary="Demande d'alias">
87 <tr>
88 <th>Demande d'alias</th>
89 </tr>
90 <tr>
e8439508 91 <td>Alias demandé&nbsp;:</td>
0337d704 92 </tr>
93 <tr>
94 <td><input type="text" name="alias" value="{$r_alias}" />@{#globals.mail.alias_dom#} et @{#globals.mail.alias_dom2#}</td>
95 </tr>
96 <tr>
97 <td>
98 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
99 <tr>
100 <td class="orange">
101 <input type="checkbox" name="public" {if $mail_public}checked="checked"{/if}/>
102 </td>
103 <td class="texte">
a7de4ef7 104 adresse publique (apparaît sur ta fiche).
0337d704 105 </td>
106 </tr>
107 </table>
108 </td>
109 </tr>
110 <tr>
e8439508 111 <td>Brève explication&nbsp;:</td>
0337d704 112 </tr>
113 <tr>
114 <td><textarea rows="5" cols="50" name="raison">{$r_raison}</textarea></td>
115 </tr>
116 <tr>
117 <td><input type="submit" name="submit" value="Envoyer" /></td>
118 </tr>
119 </table>
120 </form>
121 {if $actuel}
7b2413f6 122 <form action="emails/alias/delete/{$actuel}" method="post"
a7de4ef7 123 onsubmit="return confirm('Es-tu sûr de vouloir supprimer {$actuel} ?')">
46504fb3 124 {xsrf_token_field}
0337d704 125 <table class="bicol" cellpadding="4" summary="Suppression d'alias">
126 <tr>
127 <th>Suppression d'alias</th>
128 </tr>
129 <tr>
130 <td class="center">
0337d704 131 <input type="submit" value="Supprimer l'alias {$actuel}" />
132 </td>
133 </tr>
134 </table>
135 </form>
136 {/if}
137{/if}
138
a7de4ef7 139{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}