Add article submission system for community letter
[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 <form action="comletter/submit" method='post'>
40   <table class='bicol'>
41     <tr><th>Version texte</th></tr>
42     <tr id='text'>
43     <td><pre>{$art->toText()}</pre></td>
44     </tr>
45     <tr><th>Version html</th></tr>
46     <tr id='html'>
47       <td>
48         <div class='nl'>
49           {$art->toHtml()|smarty:nodefaults}
50         </div>
51       </td>
52     </tr>
53     <tr>
54       <th>Soumettre</th>
55     </tr>
56     <tr>
57       <td>
58         Si tu es content de ton article, tu peux le soumettre.
59         Sinon, tu peux continuer à l'éditer en dessous.
60       </td>
61     </tr>
62     <tr>
63       <td class='center'>
64         <input type='hidden' value="{$smarty.request.title}" name='title' />
65         <input type='hidden' value="{$art->body()}" name="body" />
66         <input type='hidden' value="{$art->append()}" name='append' />
67         <input type='submit' name='valid' value='Soumettre' />
68       </td>
69     </tr>
70   </table>
71 </form>
72
73 <br />
74
75 {/if}
76
77 <h2>Proposer un article</h2>
78
79 <p>
80 Tu peux <a href='comletter/submit#conseils'>lire les conseils de rédaction</a> avant de proposer ton article.
81 </p>
82 <form action="comletter/submit" method='post'>
83   <table class="bicol" cellpadding="3" cellspacing="0" summary="proposer un article">
84     <tr>
85       <th colspan='2'>Proposer un article</th>
86     </tr>
87     <tr class="impair">
88         <td class='titre'>Sujet</td>
89       <td>
90         <input size='60' maxlength='60' type='text' value='{$smarty.request.title}' name='title' />
91       </td>
92     </tr>
93     <tr class="pair">
94       <td class='titre'>Contenu</td>
95       <td>
96         <textarea cols="68" rows="8" name="body" >{if t($art)}{$art->body()}{/if}</textarea>
97       </td>
98     </tr>
99     <tr class="pair">
100       <td id="remaining" class="center" colspan="2"></td>
101     </tr>
102     <tr class="impair">
103       <td class='titre'>Ajouts (emails, contacts, tarifs, site web&hellip;)</td>
104       <td>
105         <textarea cols="68" rows="3" name='append'>{if t($art)}{$art->append()}{/if}</textarea>
106       </td>
107     </tr>
108     <tr class="pair smaller">
109       <td></td>
110       <td>
111         <a href="wiki_help/notitle" class="popup3">
112           {icon name=information title="Syntaxe wiki"} Voir les marqueurs de mise en forme autorisés
113         </a>
114       </td>
115     </tr>
116     <tr class='pair'>
117       <td colspan='2' class='center'>
118         <input type='submit' name='see' value='Visualiser' />
119       </td>
120     </tr>
121   </table>
122 </form>
123
124 <a id='conseils'></a>
125 {include wiki=Xorg.LettreCommunaute}
126
127 {/if}
128
129 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}