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