Merge commit 'origin/master' into fusionax
[platal.git] / templates / lists / create.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2009 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   Création d'une liste de diffusion
26 </h1>
27
28 {if !$created}
29
30 <p>
31 N'importe qui peut faire la demande de création d'une liste de diffusion, il suffit pour cela d'être au
32 moins 4 polytechniciens inscrits sur le site, et de fournir les informations suivantes concernant la
33 liste&nbsp;:
34 </p>
35
36 <form action='lists/create' method='post' enctype="multipart/form-data">
37   {xsrf_token_field}
38   <table class='bicol' cellspacing='0' cellpadding='2'>
39     <tr>
40       <th colspan='5'>Caractéristiques de la liste</th>
41     </tr>
42     <tr>
43       <td class='titre'>C'est une liste pour&nbsp;:</td>
44       <td colspan='2'><label><input type='radio' name='asso' value='groupex'
45         {if $smarty.post.asso eq 'groupex' && $smarty.post}checked='checked'{/if} />un groupe X</label></td>
46       <td colspan='2'><label><input type='radio' name='asso' value=''
47         {if !$smarty.post.asso || !$smarty.post}checked='checked'{/if} />une liste de portée générale ou d'amis</label></td>
48     </tr>
49     {if $young_promo}
50     <tr>
51       <td></td>
52       <td colspan='2'><label><input type='radio' name='asso' value='binet'
53         {if $smarty.post.asso eq 'binet' && $smarty.post}checked='checked'{/if} />un binet</label></td>
54       {if $very_young_promo}
55       <td colspan='2'><label><input type='radio' name='asso' value='alias'
56         {if $smarty.post.asso eq 'alias' && $smarty.post}checked='checked'{/if} />un alias psc&hellip;</label></td>
57       {else}
58       <td colspan='2'></td>
59       {/if}
60     </tr>
61     {/if}
62     <tr class='promo'>
63       <td class='titre'>Promotion&nbsp;:</td>
64       <td><input type='text' name='promo' size='4' maxlength='4'
65         {if $smarty.post.promo}value='{$smarty.post.promo}'{else}value='{$smarty.session.promo}'{/if} />
66       <td class='smaller' colspan='3'>Par exemple&nbsp;: 2004</td>
67     </tr>
68     <tr class='groupex'>
69       <td class='titre'>Nom du groupe X&nbsp;:</td>
70       <td colspan='4'>
71         <input type='text' name='groupex_name' value='{$smarty.post.groupex_name}' /><br />
72         <span class='smaller'><strong>Attention&nbsp;:</strong> le nom du groupe doit être écrit comme sur <a
73         href="http://www.polytechnique.net">Polytechnique.net</a>.</span>
74       </td>
75     </tr>
76     <tr>
77       <td class='titre'>Adresse&nbsp;souhaitée&nbsp;:</td>
78       <td colspan='4'>
79         <input type='text' name='liste' size='15' value='{$smarty.post.liste}' />@<span class='promo'><span id='promotion'></span>.</span><span class='groupex'><span class='smaller'>diminutifdugroupe</span>.</span>polytechnique.org
80       </td>
81     </tr>
82     <script type="text/javascript">//<![CDATA[
83       {literal}
84       $(function() {
85         $(":radio[name=asso]").change(function() {
86           var asso = $(":radio[name=asso]:checked").val();
87           if ((asso == "binet") || (asso == "alias")) {
88             $(".groupex").hide();
89             $(".promo").show();
90           } else if (asso == "groupex") {
91             $(".promo").hide();
92             $(".groupex").show();
93           } else {
94             $(".groupex").hide();
95             $(".promo").hide();
96           }
97         }).change();
98       });
99       $(function() {
100         $(":text[name=promo]").change(function () {
101           var str = $(":text[name=promo]").val();
102           $("span#promotion").text(str);
103         }).change();
104       });
105       {/literal}
106     // ]]></script>
107     <tr>
108       <td class='titre'>Sujet (bref)&nbsp;:</td>
109       <td colspan='4'>
110         <input type='text' name='desc' size='50' value='{$smarty.post.desc}' />
111       </td>
112     </tr>
113     <tr>
114       <td class='titre'>Propriétés&nbsp;:</td>
115       <td>visibilité&nbsp;:</td>
116       <td><label><input type='radio' name='advertise' value='0'
117         {if $smarty.post.advertise eq 0 && $smarty.post}checked='checked'{/if} />publique</label></td>
118       <td><label><input type='radio' name='advertise' value='1'
119         {if $smarty.post.advertise neq 0 || !$smarty.post}checked='checked'{/if} />privée</label></td>
120       <td></td>
121     </tr>
122     <tr>
123       <td></td>
124       <td class='smaller' colspan='4'>(est-ce que les non membres peuvent voir l'existence de cette liste&nbsp;?)</td>
125     </tr>
126     <tr>
127       <td></td>
128       <td>diffusion&nbsp;:</td>
129       <td><label><input type='radio' name='modlevel' value='0'
130         {if !$smarty.post.modlevel}checked='checked'{/if} />libre</label></td>
131       <td><label><input type='radio' name='modlevel' value='1'
132         {if $smarty.post.modlevel eq 1}checked='checked'{/if} />restreinte</label></td>
133       <td><label><input type='radio' name='modlevel' value='2'
134         {if $smarty.post.modlevel eq 2}checked='checked'{/if} />modérée</label></td>
135     </tr>
136     <tr>
137       <td></td>
138       <td class='smaller' colspan='4'>(l'envoi d'un email à cette liste est-il libre, modéré
139       lorsque l'expéditeur n'appartient pas à la liste ou modéré dans tous les cas&nbsp;?)</td>
140     </tr>
141     <tr>
142       <td></td>
143       <td>inscription&nbsp;:</td>
144       <td><label><input type='radio' name='inslevel' value='0'
145         {if $smarty.post.inslevel eq 0 && $smarty.post}checked='checked'{/if} />libre</label></td>
146       <td><label><input type='radio' name='inslevel' value='1'
147         {if $smarty.post.inslevel neq 0 || !$smarty.post}checked='checked'{/if} />modérée</label></td>
148       <td></td>
149     </tr>
150     <tr>
151       <td></td>
152       <td class='smaller' colspan='4'>(détermine si les inscriptions à la liste sont modérées
153       par les modérateurs de la liste ou non.)</td>
154     </tr>
155     <tr><th colspan='5'>Membres et gestionnaires</th></tr>
156     <tr>
157       <td class='titre'>Gestionnaires&nbsp;:</td>
158       <td colspan='4'>
159         <input type='hidden' name='owners' value='{$owners}' />
160         {$owners|nl2br|default:'<span class="erreur">pas de gestionnaires</span>'}
161         <br />
162         <input type='text' name='add_owner' />
163         <input type='submit' name='add_owner_sub' value='Ajouter' />
164       </td>
165     </tr>
166     <tr>
167       <td class='titre'>Membres&nbsp;:</td>
168       <td colspan='4'>
169         <input type='hidden' name='members' value='{$members}' />
170         {$members|nl2br|default:'<span class="erreur">pas de membres</span>'}
171         <br />
172         <input type='text' name='add_member' /><br />
173         <input type="file" name="add_member_file" /><br />
174         <input type='submit' name='add_member_sub' value='Ajouter' />
175       </td>
176     </tr>
177     <tr>
178       <td colspan='5'>
179         <small>
180           Tu peux entrer une liste de membres en entrant plusieurs adresses séparées par des espaces, des virgules ou des point-virgules.
181           Tu peux aussi fournir un fichier avec une adresse email par ligne.
182         </small>
183       </td>
184     </tr>
185   </table>
186   <p>
187   La création de la liste sera soumise à un contrôle manuel avant d'être validée. Ce contrôle a
188   pour but notamment de vérifier qu'il n'y aura pas ambiguité entre les membres de la liste et son
189   identité. Exemple&nbsp;: n'importe qui ne peut pas ouvrir pointgamma@polytechnique.org, il ne suffit
190   pas d'être le premier à le demander.
191   </p>
192   <p>
193   La liste est habituellement créée dans les jours qui suivent la demande sauf exception. Pour plus
194   d'informations écris-nous à l'adresse {mailto address='listes@polytechnique.org'} en mettant dans
195   le sujet de ton email le nom de la liste souhaité afin de faciliter les échanges d'emails
196   ultérieurs éventuels.
197   </p>
198   <div class='center'>
199     <br />
200     <input type='submit' name='submit' value='Soumettre' />
201   </div>
202 </form>
203
204 {/if}
205
206
207 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}