cf893d38679ba86c536ce0fbbe7c3aebde7779ab
[platal.git] / templates / axletter / edit.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2010 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>Édition de message</h1>
24
25 <form action="{$platal->pl_self()}" method="post">
26   {xsrf_token_field}
27   {if $am}
28   {include file="axletter/letter.mail.tpl"}
29
30   <p class="center">
31     <input type="hidden" name="id" value="{$id}" />
32     <input type="hidden" name="old_short_name" value="{$short_name}" />
33     <input type="hidden" name="saved" value="{$saved}" />
34     {if $echeance}
35     <input type="hidden" name="echeance" value="{$echeance}" />
36     {/if}
37     {if !$new}
38     <input type="submit" name="valid" value="Confirmer" />
39     {/if}
40   </p>
41   {/if}
42
43   <fieldset>
44     <legend>Sujet de l'email&nbsp;: <input type="text" name="subject" value="{$subject}" size="60"/></legend>
45     <p class="center">
46       <a href="wiki_help" class="popup3">
47         {icon name=information title="Syntaxe wiki"} Voir les marqueurs de mise en forme autorisés
48       </a><br />
49       <strong>Titre&nbsp;: </strong><input type="text" name="title" value="{$title}" size="60" /><br />
50       <textarea name="body" rows="30" cols="78">{$body}</textarea><br />
51       <strong>Signature&nbsp;: </strong><input type="text" name="signature" value="{$signature}" size="60" />
52     </p>
53   </fieldset>
54
55   <table class="bicol">
56     <tr>
57       <th colspan="2">Options du message</th>
58     </tr>
59     <tr>
60       <td class="titre">Nom raccourci</td>
61       <td>
62         <input type="text" name="short_name" value="{$short_name}" size="16" maxlength="16" />
63         <span class="smaller">(uniquement lettres, chiffres ou -)</span>
64       </td>
65     </tr>
66     {include file="include/field.promo.tpl" prefix=""}
67     <tr>
68       <td class="titre">Envoyer à une liste d'adresses</td>
69       <td>
70       <textarea name="subset_to" rows="7" cols="78">{$subset_to}</textarea><br />
71       <span class="smaller">Indiquez une liste d'adresses emails&nbsp;: la lettre sera envoyée uniquement aux personnes des promotions sélectionnées, dont l'adresse figure dans la liste, et qui souhaitent recevoir les emails de l'AX.</span>
72       </td>
73     </tr>
74     <tr>
75       <td class="titre">Sélection inversée</td>
76       <td>
77       <input type="checkbox" name="subset_rm" {if $subset_rm}checked{/if} /><span class="smaller">En cochant cette case, la liste sera envoyée à tous les inscrits de l'intervalle de promotions sélectionné, sauf ceux indiqués dans la liste ci-dessus.</span>
78       </td>
79     </tr>
80     {if !$saved}
81     <tr>
82       <td class="titre">Echéance d'envoi</td>
83       <td>
84         le {valid_date name="echeance_date" value=$echeance_date from=3 to=15}
85         vers <select name="echeance_time">{$echeance_time|smarty:nodefaults}</select>
86       </td>
87     </tr>
88     {else}
89     <tr>
90       <td colspan="2" class="center">
91         Envoi au plus tard le {$echeance|date_format:"%x vers %Hh"}<br />
92         {if $is_xorg}
93         [<a href="ax/edit/valid?token={xsrf_token}" onclick="return confirm('Es-tu sûr de vouloir valider l\'envoi de ce message&nbsp;?');">{*
94           *}{icon name=thumb_up} Valider l'envoi</a>]
95         {else}
96         [<a href="ax/edit/cancel?token={xsrf_token}" onclick="return confirm('Es-tu sûr de vouloir annuler l\'envoi de ce message&nbsp;?');">{*
97           *}{icon name=thumb_down} Annuler l'envoi</a>]
98         {/if}
99       </td>
100     </tr>
101     {/if}
102   </table>
103
104   <p class="center">
105     <input type="hidden" name="id" value="{$id}" />
106     <input type="hidden" name="old_short_name" value="{$short_name}" />
107     <input type="hidden" name="saved" value="{$saved}" />
108     {if $echeance}
109     <input type="hidden" name="echeance" value="{$echeance}" />
110     {/if}
111     <input type="submit" name="valid" value="Aperçu" />
112     {if $subset}
113     <input type="submit" name="valid" value="Vérifier les emails" />
114     {/if}
115     {if !$new}
116     <input type="submit" name="valid" value="Confirmer" />
117     {/if}
118   </p>
119 </form>
120
121 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}