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 | ||
f719597f | 23 | <h1>Nom d'usage</h1> |
0337d704 | 24 | |
9ba22f37 | 25 | {if $same} |
9ba22f37 | 26 | <p> |
44b071c2 | 27 | Tu peux soit <a href='profile/usage'>refaire une demande de nom d'usage</a>, soit <a href='profile/edit'>retourner à l'édition de ton profil</a>. |
9ba22f37 | 28 | </p> |
29 | {else} | |
30 | {if $myusage} | |
31 | {if $usage_old} | |
32 | <p> | |
33 | Ta demande de suppression de ton nom d'usage ainsi que de tes | |
7d73bb7b | 34 | alias {$alias_old}@{#globals.mail.domain#} et |
a7de4ef7 | 35 | {$alias_old}@{#globals.mail.domain2#} a bien été enregistrée. |
9ba22f37 | 36 | </p> |
37 | {/if} | |
38 | ||
39 | {if $myusage->alias} | |
40 | <p> | |
a7de4ef7 | 41 | Ta demande d'ajout de ton nom d'usage a bien été enregistrée. Sa |
42 | validation engendrera la création des alias | |
7d73bb7b | 43 | <strong>{$myusage->alias}@{#globals.mail.domain#}</strong> et |
44 | <strong>{$myusage->alias}@{#globals.mail.domain2#}</strong>. | |
9ba22f37 | 45 | </p> |
46 | {/if} | |
47 | ||
48 | <p> | |
faefdbb7 SJ |
49 | Tu recevras un email dès que les changements demandés auront été effectués. |
50 | Encore merci de nous faire confiance pour tes emails ! | |
9ba22f37 | 51 | </p> |
52 | ||
53 | {else} | |
54 | ||
f719597f | 55 | <p> |
a7de4ef7 | 56 | Le nom d'usage est un patronyme qui doit être <strong>reconnu par la |
f719597f | 57 | loi</strong> (nom du conjoint, d'un de ses parents, ou bien plus |
a7de4ef7 | 58 | exceptionnellement sur changement de l'état civil, ...). |
f719597f | 59 | </p> |
60 | ||
61 | <p> | |
a7de4ef7 | 62 | Les surnoms sont <strong>systématiquement refusés</strong>. Pour |
63 | utiliser une adresse personnalisée, il faut se tourner vers | |
d7dd70be | 64 | <a href="emails/alias">l'alias @{#globals.mail.alias_dom#}</a>. |
f719597f | 65 | </p> |
0337d704 | 66 | |
0337d704 | 67 | <p> |
a7de4ef7 | 68 | Afin d'être joignable à la fois sous ton nom à l'X et sous ton nom d'usage, tu peux |
69 | saisir ici ce dernier. Il apparaîtra alors dans l'annuaire et tu disposeras | |
7d73bb7b | 70 | des adresses correspondantes @{#globals.mail.domain#} et @{#globals.mail.domain2#}, en plus de |
a7de4ef7 | 71 | celles que tu possèdes déjà. |
0337d704 | 72 | </p> |
73 | ||
74 | <br /> | |
75 | ||
8bd7c1de | 76 | {literal} |
77 | <form action="profile/usage" method="post" onsubmit=" | |
6fb32a23 | 78 | for (var i=this.reason.length-1; i>=0; i--) { |
79 | if (this.reason[i].checked && | |
80 | (this.reason[i].value != 'other' || this.other_reason.value != '')) { | |
8bd7c1de | 81 | return true; |
82 | } | |
83 | } | |
84 | alert('Tu dois préciser une raison motivant ta demande.'); | |
85 | return false; | |
86 | "> | |
87 | {/literal} | |
8827fc52 | 88 | {xsrf_token_field} |
0337d704 | 89 | <table class="bicol" cellpadding="4" summary="Nom d'usage"> |
90 | <tr> | |
91 | <th>Nom d'usage</th> | |
92 | </tr> | |
93 | <tr> | |
21e9114c | 94 | <td class="center"> |
95 | <input type="text" name="nom_usage" id="nom_usage" value="{$usage_old}" /> | |
96 | <script type="text/javascript"> | |
97 | document.getElementById("nom_usage").focus(); | |
98 | </script> | |
99 | </td> | |
100 | </tr> | |
101 | <tr> | |
102 | <th>Raison du changement de nom</th> | |
103 | </tr> | |
104 | <tr> | |
105 | <td class="rt"> | |
8bd7c1de | 106 | <input type="radio" name="reason" value="époux/se" id="reason_ep" onclick="this.form.other_reason.value=''" /><label for="reason_ep">Nom d'épouse / d'époux</label><br /> |
21e9114c | 107 | {if $usage_old} |
108 | <input type="radio" name="reason" value="divorce" id="reason_div" onclick="this.form.other_reason.value=''" /><label for="reason_div">Divorce</label><br /> | |
109 | {/if} | |
a7de4ef7 | 110 | <input type="radio" name="reason" value="raccourci" id="reason_rac" onclick="this.form.other_reason.value=''" /><label for="reason_rac">Nom d'état civil simplifié, le nom officiel étant trop long</label><br /> |
e8439508 | 111 | <input type="radio" name="reason" value="other" id="reason_oth" /><label for="reason_oth">Autre :</label><br /> |
21e9114c | 112 | <input type="text" name="other_reason" onfocus="document.getElementById('reason_oth').checked='checked'" size="60" /> |
113 | </td> | |
0337d704 | 114 | </tr> |
115 | <tr> | |
c80cbb5a | 116 | <td class="center"> |
117 | {if !$usage_old} | |
118 | <input type="submit" name="submit" value="Faire la demande" /> | |
119 | {else} | |
120 | <input type="submit" name="submit" value="Modifier" /> | |
121 | <input type="submit" name="submit" value="Supprimer" onClick="this.form.nom_usage.value=''" /> | |
122 | {/if} | |
123 | </td> | |
0337d704 | 124 | </tr> |
125 | </table> | |
126 | </form> | |
127 | {/if} | |
128 | {/if} | |
129 | ||
130 | ||
a7de4ef7 | 131 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |