Commit | Line | Data |
---|---|---|
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 | 35 | N'importe qui peut faire la demande de création d'une mailing-list, il suffit pour cela d'être au |
0337d704 | 36 | moins 4 polytechniciens inscrits sur le site, et de fournir les informations suivantes concernant la |
e8439508 | 37 | liste : |
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 :</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 :</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 :</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 souhaitée :</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() { | |
032b244e SJ |
83 | var asso = $(":radio[@name=asso]:checked").val(); |
84 | if ((asso == "binet") || (asso == "alias")) { | |
59887c4a SJ |
85 | $(".groupex").hide(); |
86 | $(".promo").show(); | |
032b244e SJ |
87 | } else if (asso == "groupex") { |
88 | $(".promo").hide(); | |
89 | $(".groupex").show(); | |
59887c4a | 90 | } else { |
032b244e SJ |
91 | $(".groupex").hide(); |
92 | $(".promo").hide(); | |
59887c4a SJ |
93 | } |
94 | }).change(); | |
95 | }); | |
96 | $(function() { | |
97 | $(":text[@name=promo]").change(function () { | |
98 | var str = $(":text[@name=promo]").val(); | |
99 | $("span#promotion").text(str); | |
100 | }).change(); | |
101 | }); | |
102 | {/literal} | |
103 | // ]]></script> | |
0337d704 | 104 | <tr> |
e8439508 | 105 | <td class='titre'>Sujet (bref) :</td> |
59887c4a SJ |
106 | <td colspan='4'> |
107 | <input type='text' name='desc' size='50' value='{$smarty.post.desc}' /> | |
0337d704 | 108 | </td> |
109 | </tr> | |
110 | <tr> | |
e8439508 | 111 | <td class='titre'>Propriétés :</td> |
59887c4a SJ |
112 | <td>visibilité :</td> |
113 | <td><input type='radio' name='advertise' value='0' | |
114 | {if $smarty.post.advertise eq 0 && $smarty.post}checked='checked'{/if} />publique</td> | |
115 | <td><input type='radio' name='advertise' value='1' | |
116 | {if $smarty.post.advertise neq 0 || !$smarty.post}checked='checked'{/if} />privée</td> | |
117 | <td></td> | |
118 | </tr> | |
119 | <tr> | |
120 | <td></td> | |
121 | <td class='smaller' colspan='4'>(est-ce que les non membres peuvent voir l'existence de cette liste ?)</td> | |
122 | </tr> | |
123 | <tr> | |
124 | <td></td> | |
125 | <td>diffusion :</td> | |
126 | <td><input type='radio' name='modlevel' value='0' | |
127 | {if !$smarty.post.modlevel}checked='checked'{/if} />libre</td> | |
128 | <td><input type='radio' name='modlevel' value='1' | |
129 | {if $smarty.post.modlevel eq 1}checked='checked'{/if} />restreinte</td> | |
130 | <td><input type='radio' name='modlevel' value='2' | |
131 | {if $smarty.post.modlevel eq 2}checked='checked'{/if} />modérée</td> | |
132 | </tr> | |
133 | <tr> | |
134 | <td></td> | |
135 | <td class='smaller' colspan='4'>(l'envoi d'un mail à cette liste est-il libre, modéré | |
136 | lorsque l'expéditeur n'appartient pas à la liste ou modéré dans tous les cas ?)</td> | |
137 | </tr> | |
138 | <tr> | |
139 | <td></td> | |
140 | <td>inscription :</td> | |
141 | <td><input type='radio' name='inslevel' value='0' | |
142 | {if $smarty.post.inslevel eq 0 && $smarty.post}checked='checked'{/if} />libre</td> | |
143 | <td><input type='radio' name='inslevel' value='1' | |
144 | {if $smarty.post.inslevel neq 0 || !$smarty.post}checked='checked'{/if} />modérée</td> | |
145 | <td></td> | |
146 | </tr> | |
147 | <tr> | |
148 | <td></td> | |
149 | <td class='smaller' colspan='4'>(détermine si les inscriptions à la liste sont modérées | |
150 | par les modérateurs de la liste ou non.)</td> | |
0337d704 | 151 | </tr> |
59887c4a | 152 | <tr><th colspan='5'>Membres et gestionnaires</th></tr> |
0337d704 | 153 | <tr> |
59887c4a SJ |
154 | <td class='titre'>Gestionnaires :</td> |
155 | <td colspan='4'> | |
0337d704 | 156 | <input type='hidden' name='owners' value='{$owners}' /> |
157 | {$owners|nl2br|default:"<span class='erreur'>pas de gestionnaires</span>"} | |
158 | <br /> | |
159 | <input type='text' name='add_owner' /> | |
160 | <input type='submit' name='add_owner_sub' value='Ajouter' /> | |
161 | </td> | |
162 | </tr> | |
163 | <tr> | |
59887c4a SJ |
164 | <td class='titre'>Membres :</td> |
165 | <td colspan='4'> | |
0337d704 | 166 | <input type='hidden' name='members' value='{$members}' /> |
167 | {$members|nl2br|default:"<span class='erreur'>pas de membres</span>"} | |
168 | <br /> | |
169 | <input type='text' name='add_member' /> | |
170 | <input type='submit' name='add_member_sub' value='Ajouter' /> | |
171 | </td> | |
172 | </tr> | |
e7545178 | 173 | <tr> |
59887c4a | 174 | <td colspan='5'> |
9e92370d | 175 | <small>Tu peux entrer une liste de membres en entrant plusieurs adresses séparées par des espaces.</small> |
e7545178 | 176 | </td> |
177 | </tr> | |
0337d704 | 178 | </table> |
179 | <p> | |
9e92370d | 180 | La création de la liste sera soumise à un contrôle manuel avant d'être validée. Ce contrôle a |
a7de4ef7 | 181 | pour but notamment de vérifier qu'il n'y aura pas ambiguité entre les membres de la liste et son |
e8439508 | 182 | identité. Exemple : n'importe qui ne peut pas ouvrir pointgamma@polytechnique.org, il ne suffit |
9e92370d | 183 | pas d'être le premier à le demander. |
0337d704 | 184 | </p> |
185 | <p> | |
9e92370d | 186 | La liste est habituellement créée dans les jours qui suivent la demande sauf exception. Pour plus |
a7de4ef7 | 187 | d'informations écris-nous à l'adresse {mailto address='listes@polytechnique.org'} en mettant dans |
188 | le sujet de ton mail le nom de la liste souhaité afin de faciliter les échanges de mails | |
189 | ultérieurs éventuels. | |
0337d704 | 190 | </p> |
191 | <div class='center'> | |
192 | <br /> | |
193 | <input type='submit' name='submit' value='Soumettre' /> | |
194 | </div> | |
195 | </form> | |
196 | ||
197 | {/if} | |
198 | ||
199 | ||
a7de4ef7 | 200 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |