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