Backport du bug des deces
[platal.git] / templates / nomusage.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2004 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>Nom d'usage</h1>
24
25 <p>
26 Le nom d'usage est un patronyme qui doit être <strong>reconnu par la
27   loi</strong> (nom du conjoint, d'un de ses parents, ou bien plus
28 exceptionnellement sur changement de l'état civil, ...).
29 </p>
30
31 <p>
32 Les surnoms sont <strong>systématiquement refusés</strong>. Pour
33 utiliser une adresse personnalisée, il faut se tourner vers
34 <a href="{rel}/alias.php">l'alias @melix.net</a>.
35 </p>
36
37 {if $same}
38 <p class="erreur">
39     Si ton nom d'usage est identique à ton nom à l'X, il n'est pas
40     nécessaire de le saisir ici!
41 </p>
42 {else}
43   {if $myusage}
44   {if $usage_old}
45   <p>
46     Ta demande de suppression de ton nom d'usage ainsi que de tes
47     alias {$alias_old}@polytechnique.org et
48     {$alias_old}@m4x.org a bien été enregistrée. 
49   </p>
50   {/if}
51
52   {if $myusage->alias}
53   <p>
54     Ta demande d'ajout de ton nom d'usage a bien été enregistrée. Sa
55     validation engendrera la création des alias
56     <strong>{$myusage->alias}@polytechnique.org</strong> et
57     <strong>{$myusage->alias}@m4x.org</strong>.
58   </p>
59   {/if}
60   
61   <p>
62     Tu recevras un mail dès que les changements demandés auront été effectués. 
63     Encore merci de nous faire confiance pour tes e-mails !
64   </p>
65
66 {else}
67
68   <p>
69   Afin d'être joignable à la fois sous ton nom à l'X et sous ton nom d'usage, tu peux
70   saisir ici ce dernier. Il apparaîtra alors dans l'annuaire et tu disposeras
71   des adresses correspondantes @m4x.org et @polytechnique.org, en plus de
72   celles que tu possèdes déjà.
73   </p>
74
75   <br />
76
77   <form action="{$smarty.server.PHP_SELF}" method="post">
78     <table class="bicol" cellpadding="4" summary="Nom d'usage">
79       <tr>
80         <th>Nom d'usage</th>
81       </tr>
82       <tr>
83         <td class="center">
84           <input type="text" name="nom_usage" id="nom_usage" value="{$usage_old}" />
85           <script type="text/javascript">
86             document.getElementById("nom_usage").focus();
87           </script>
88         </td>
89       </tr>
90       <tr>
91         <th>Raison du changement de nom</th>
92       </tr>
93       <tr>
94         <td class="rt">
95           <input type="radio" name="reason" checked="checked" value="époux/se" id="reason_ep" onclick="this.form.other_reason.value=''" /><label for="reason_ep">Nom d'épouse / d'époux</label><br />
96           {if $usage_old}
97             <input type="radio" name="reason" value="divorce" id="reason_div" onclick="this.form.other_reason.value=''" /><label for="reason_div">Divorce</label><br />
98           {/if}
99           <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 />
100           <input type="radio" name="reason" value="other" id="reason_oth" /><label for="reason_oth">Autre :</label><br />
101           <input type="text" name="other_reason" onfocus="document.getElementById('reason_oth').checked='checked'" size="60" />
102         </td>
103       </tr>
104       <tr>
105         <td class="center">
106           {if !$usage_old}
107             <input type="submit" name="submit" value="Faire la demande" />
108           {else}
109             <input type="submit" name="submit" value="Modifier" />
110             <input type="submit" name="submit" value="Supprimer" onClick="this.form.nom_usage.value=''" />
111           {/if}
112         </td>
113       </tr>
114     </table>
115   </form>
116   {/if}
117 {/if}
118
119
120 {* vim:set et sw=2 sts=2 sws=2: *}