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