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