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