0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
50a40a33 |
3 | {* Copyright (C) 2003-2006 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> |
1d3f1c77 |
25 | Proposer un article pour la prochaine Lettre mensuelle |
0337d704 |
26 | </h1> |
27 | |
28 | |
29 | {if $submited} |
30 | |
31 | <p> |
32 | ton article a bien été pris en compte. |
33 | </p> |
34 | |
35 | <p> |
36 | Nous te recontacterons éventuellement (certainement vers la fin du mois) si nous avons des |
37 | renseignements à te demander à son sujet ! |
38 | </p> |
39 | |
40 | {else} |
41 | |
42 | |
43 | {if $art} |
44 | |
45 | {if !$art->check()} |
46 | <p class='erreur'> |
30901c7d |
47 | L'article que tu as proposé est trop long !<br /> |
48 | Il te faut te limiter à 8 lignes de 68 caractères. |
0337d704 |
49 | </p> |
50 | {/if} |
51 | |
52 | <form action="{$smarty.server.PHP_SELF}" method='post'> |
53 | <table class='tinybicol'> |
54 | <tr><th>Version texte</th></tr> |
55 | <tr id='text'> |
56 | <td><pre>{$art->toText()}</pre></td> |
57 | </tr> |
58 | {if $art->check()} |
59 | <tr><th>Version html</th></tr> |
60 | <tr id='html'> |
61 | <td> |
62 | <div class='nl'> |
63 | {$art->toHtml()|smarty:nodefaults} |
64 | </div> |
65 | </td> |
66 | </tr> |
67 | <tr> |
68 | <th>Soumettre</th> |
69 | </tr> |
70 | <tr> |
71 | <td> |
72 | Si tu es content de ton article, tu peux le soumetre. |
73 | Sinon, tu peux continuer à l'éditer en dessous |
74 | </td> |
75 | </tr> |
76 | <tr> |
77 | <td class='center'> |
78 | <input type='hidden' value="{$smarty.request.title}" name='title' /> |
79 | <input type='hidden' value="{$art->body()}" name="body" /> |
80 | <input type='hidden' value="{$art->append()}" name='append' /> |
81 | <input type='submit' name='valid' value='soumettre' /> |
82 | </td> |
83 | </tr> |
84 | {/if} |
85 | </table> |
86 | </form> |
87 | |
88 | <br /> |
89 | |
90 | {/if} |
91 | |
92 | <p> |
93 | Il faut absolument que ton article fasse moins de 8 lignes (non vides) de 68 caractères. |
94 | </p> |
95 | |
96 | <p> |
97 | Les contacts, prix, adresses mail utiles, liens web, ... sont en sus, et sont à placer dans la case "Ajouts" |
98 | </p> |
99 | |
100 | <form action="{$smarty.server.PHP_SELF}" method='post'> |
101 | <table class="bicol" cellpadding="3" cellspacing="0" summary="liste des NL"> |
102 | <tr> |
103 | <th colspan='2'>proposer un article</th> |
104 | </tr> |
105 | <tr class="impair"> |
106 | <td class='titre'>Sujet</td> |
107 | <td> |
ff5e5034 |
108 | <input size='60' type='text' value='{$smarty.request.title}' name='title' /> |
0337d704 |
109 | </td> |
110 | </tr> |
111 | <tr class="pair"> |
112 | <td class='titre'>Contenu</td> |
113 | <td> |
114 | <textarea cols="68" rows="10" name='body'>{if $art}{$art->body()}{/if}</textarea> |
115 | </td> |
116 | </tr> |
117 | <tr class="impair"> |
118 | <td class='titre'>Ajouts (emails, contacts, tarifs, site web, ...)</td> |
119 | <td> |
120 | <textarea cols="68" rows="6" name='append'>{if $art}{$art->append()}{/if}</textarea> |
121 | </td> |
122 | </tr> |
123 | <tr class='pair'> |
124 | <td colspan='2' class='center'> |
125 | <input type='submit' name='see' value='visualiser' /> |
126 | </td> |
127 | </tr> |
128 | </table> |
129 | </form> |
130 | |
131 | {/if} |
132 | |
133 | |
134 | {* vim:set et sw=2 sts=2 sws=2: *} |