Commit | Line | Data |
---|---|---|
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 | ||
164ca57a | 23 | <h1>Proposer un article pour la prochaine Lettre mensuelle</h1> |
0337d704 | 24 | |
fec93430 | 25 | {if t($submited)} |
0337d704 | 26 | |
27 | <p> | |
661e78f7 | 28 | Ton article a bien été pris en compte. |
0337d704 | 29 | </p> |
30 | ||
31 | <p> | |
a7de4ef7 | 32 | Nous te recontacterons éventuellement (certainement vers la fin du mois) si nous avons des |
6bb2f79a | 33 | renseignements à te demander à son sujet ! |
0337d704 | 34 | </p> |
35 | ||
36 | {else} | |
37 | ||
38 | ||
fec93430 | 39 | {if t($art)} |
0337d704 | 40 | |
41 | {if !$art->check()} | |
42 | <p class='erreur'> | |
6bb2f79a | 43 | L'article que tu as proposé est trop long !<br /> |
a7de4ef7 | 44 | Il te faut te limiter à 8 lignes de 68 caractères. |
0337d704 | 45 | </p> |
46 | {/if} | |
47 | ||
7b2413f6 | 48 | <form action="nl/submit" method='post'> |
4bba5777 | 49 | <table class='bicol'> |
0337d704 | 50 | <tr><th>Version texte</th></tr> |
51 | <tr id='text'> | |
52 | <td><pre>{$art->toText()}</pre></td> | |
53 | </tr> | |
0337d704 | 54 | <tr><th>Version html</th></tr> |
55 | <tr id='html'> | |
56 | <td> | |
57 | <div class='nl'> | |
58 | {$art->toHtml()|smarty:nodefaults} | |
59 | </div> | |
60 | </td> | |
61 | </tr> | |
4bba5777 | 62 | {if $art->check()} |
0337d704 | 63 | <tr> |
64 | <th>Soumettre</th> | |
65 | </tr> | |
66 | <tr> | |
67 | <td> | |
4a706058 | 68 | Si tu es content de ton article, tu peux le soumettre. |
661e78f7 | 69 | Sinon, tu peux continuer à l'éditer en dessous. |
0337d704 | 70 | </td> |
71 | </tr> | |
72 | <tr> | |
73 | <td class='center'> | |
74 | <input type='hidden' value="{$smarty.request.title}" name='title' /> | |
75 | <input type='hidden' value="{$art->body()}" name="body" /> | |
76 | <input type='hidden' value="{$art->append()}" name='append' /> | |
661e78f7 | 77 | <input type='submit' name='valid' value='Soumettre' /> |
0337d704 | 78 | </td> |
79 | </tr> | |
80 | {/if} | |
81 | </table> | |
82 | </form> | |
83 | ||
84 | <br /> | |
85 | ||
86 | {/if} | |
87 | ||
96991bab | 88 | <h2>Proposer un article</h2> |
0337d704 | 89 | |
07d3870a | 90 | <p> |
a7de4ef7 | 91 | Tu peux <a href='nl/submit#conseils'>lire les conseils de rédaction</a> avant de proposer ton article. |
07d3870a | 92 | </p> |
7b2413f6 | 93 | <form action="nl/submit" method='post'> |
96991bab | 94 | <table class="bicol" cellpadding="3" cellspacing="0" summary="proposer un article"> |
0337d704 | 95 | <tr> |
96991bab | 96 | <th colspan='2'>Proposer un article</th> |
0337d704 | 97 | </tr> |
98 | <tr class="impair"> | |
96991bab | 99 | <td class='titre'>Sujet</td> |
0337d704 | 100 | <td> |
cdc61dc0 | 101 | <input size='60' maxlength='60' type='text' value='{$smarty.request.title}' name='title' /> |
0337d704 | 102 | </td> |
103 | </tr> | |
104 | <tr class="pair"> | |
105 | <td class='titre'>Contenu</td> | |
106 | <td> | |
0fd5be99 SJ |
107 | <textarea onchange="{literal}$.post('nl/remaining/', {'body': this.value}, function(data) {$('#remaining').html(data)}){/literal}" |
108 | onkeyup="{literal}$.post('nl/remaining/', {'body': this.value}, function(data) {$('#remaining').html(data)}){/literal}" | |
109 | cols="68" rows="8" name="body" >{if t($art)}{$art->body()}{/if}</textarea> | |
0337d704 | 110 | </td> |
111 | </tr> | |
0fd5be99 SJ |
112 | <tr class="pair"> |
113 | <td id="remaining" class="center" colspan="2"></td> | |
114 | </tr> | |
0337d704 | 115 | <tr class="impair"> |
6e828e47 | 116 | <td class='titre'>Ajouts (emails, contacts, tarifs, site web…)</td> |
0337d704 | 117 | <td> |
fec93430 | 118 | <textarea cols="68" rows="3" name='append'>{if t($art)}{$art->append()}{/if}</textarea> |
0337d704 | 119 | </td> |
120 | </tr> | |
72b2f8bb | 121 | <tr class="pair smaller"> |
122 | <td></td> | |
123 | <td> | |
124 | <a href="wiki_help/notitle" class="popup3"> | |
125 | {icon name=information title="Syntaxe wiki"} Voir les marqueurs de mise en forme autorisés | |
126 | </a> | |
127 | </td> | |
4bba5777 | 128 | </tr> |
0337d704 | 129 | <tr class='pair'> |
130 | <td colspan='2' class='center'> | |
661e78f7 | 131 | <input type='submit' name='see' value='Visualiser' /> |
0337d704 | 132 | </td> |
133 | </tr> | |
134 | </table> | |
135 | </form> | |
136 | ||
07d3870a | 137 | <a id='conseils'></a> |
7a3f546b | 138 | {include wiki=Xorg.LettreMensuelle} |
96991bab | 139 | |
0337d704 | 140 | {/if} |
141 | ||
a7de4ef7 | 142 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |