Adapts inclusion of promotion and accounts.
[platal.git] / templates / admin / add_accounts.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2010 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>Mise à jour de l'annuaire</h1>
24
25 {if !$add_type}
26 <form action="{$platal->pl_self()}" method="post">
27 <table class="tinybicol">
28   <tr>
29     <td class="center">
30       <strong>Ajouter&nbsp;:</strong>
31       <label><input type="radio" name="add_type" value="promo" checked="checked" /> une promotion</label> -
32       <label><input type="radio" name="add_type" value="account" /> des comptes seuls</label><br />
33     </td>
34   </tr>
35   <tr>
36     <td class="center">
37       <strong>Mettre à jour&nbsp;:</strong>
38       <label><input type="radio" name="add_type" value="ax_id" /> les matricules AX</label>
39     </td>
40   </tr>
41   <tr>
42     <td class="center"><input type='submit' value='Continuer' /></td>
43   </tr>
44 </table>
45 </form>
46
47 {else}
48 <form action="{$platal->pl_self()}" method="post">
49 <input type="hidden" name="add_type" value="{$add_type}" />
50 <table class="tinybicol">
51   <tr>
52     <td class="center">
53       <strong>Promotion&nbsp;:</strong>
54       <input type="text" name="promotion" size="4" maxlength="4" />
55     </td>
56   </tr>
57 {if $add_type eq 'promo'}
58   <tr>
59     <td class="center">
60       <strong>Formation&nbsp;:</strong>
61       <label><input type="radio" name="edu_type" value="X" checked="checked" /> X</label> -
62       <label><input type="radio" name="edu_type" value="M" /> master</label> -
63       <label><input type="radio" name="edu_type" value="D" /> doctorat</label>
64     </td>
65   </tr>
66 </table>
67 <br />
68 <table class="bicol">
69   <tr>
70     <td>Nom</td>
71     <td>Prénom</td>
72     <td>Date de naissance</td>
73     <td>Sexe (F/M)</td>
74     <td>Matricule École</td>
75     <td>Matricule AX</td>
76   </tr>
77   <tr>
78     <td colspan="6"><textarea name="people" rows="20" cols="80"></textarea></td>
79   </tr>
80 </table>
81
82 {elseif $add_type eq 'account'}
83   <tr>
84     <td class="center">
85       <strong>Type de compte&nbsp;:</strong>
86       <select name="type">
87       {foreach from=$account_types item=type}
88         <option value="{$type}">{$type}</option>
89       {/foreach}
90       </select>
91     </td>
92   </tr>
93 </table>
94 <br />
95 <table class="bicol">
96   <tr>
97     <td>Nom</td>
98     <td>Prénom</td>
99     <td>Adresse email</td>
100     <td>Sexe (F/M)</td>
101   </tr>
102   <tr>
103     <td colspan="4"><textarea name="people" rows="20" cols="80"></textarea></td>
104   </tr>
105 </table>
106
107 {elseif $add_type eq 'ax_id'}
108 </table>
109 <br />
110 <table class="bicol">
111   <tr>
112     <td>Nom</td>
113     <td>Prénom</td>
114     <td>Matricule AX</td>
115   </tr>
116   <tr>
117     <td colspan="4"><textarea name="people" rows="20" cols="80"></textarea></td>
118   </tr>
119 </table>
120 {/if}
121
122 <p class="center">
123   <strong>Séparateur&nbsp;:</strong>
124   <input type="text" name="separator" value=";" size="1" maxlength="1" /><br /><br />
125   <input type='submit' value='Ajouter' />
126 </p>
127 </form>
128 {/if}
129
130 {* vim:set et sws=2 sts=2 sw=2 enc=utf-8: *}