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