8da0d3c1 |
1 | {**************************************************************************} |
2 | {* *} |
3 | {* Copyright (C) 2003-2006 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>Edition de message</h1> |
24 | |
25 | <form action="{$platal->pl_self()}" method="post"> |
fde3e90e |
26 | {xsrf_token_field} |
8da0d3c1 |
27 | {if $am} |
28 | {include file="axletter/letter.tpl"} |
29 | |
30 | <p class="center"> |
31 | <input type="hidden" name="id" value="{$id}" /> |
4ea58d4b |
32 | <input type="hidden" name="old_short_name" value="{$short_name}" /> |
8da0d3c1 |
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> |
faefdbb7 |
44 | <legend>Sujet de l'email : <input type="text" name="subject" value="{$subject}" size="60"/></legend> |
8da0d3c1 |
45 | <p class="center"> |
72b2f8bb |
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 /> |
e8439508 |
49 | <strong>Titre : </strong><input type="text" name="title" value="{$title}" size="60" /><br /> |
8da0d3c1 |
50 | <textarea name="body" rows="30" cols="78">{$body}</textarea><br /> |
e8439508 |
51 | <strong>Signature : </strong><input type="text" name="signature" value="{$signature}" size="60" /> |
8da0d3c1 |
52 | </p> |
53 | </fieldset> |
54 | |
05cb05c0 |
55 | <table class="bicol"> |
8da0d3c1 |
56 | <tr> |
57 | <th colspan="2">Options du message</th> |
58 | </tr> |
59 | <tr> |
60 | <td class="titre">Nom raccourci</td> |
61 | <td> |
4ea58d4b |
62 | <input type="text" name="short_name" value="{$short_name}" size="16" maxlength="16" /> |
8da0d3c1 |
63 | <span class="smaller">(uniquement lettres, chiffres ou -)</span> |
64 | </td> |
65 | </tr> |
05cb05c0 |
66 | {include file="include/field.promo.tpl" prefix=""} |
8da0d3c1 |
67 | {if !$saved} |
68 | <tr> |
a7de4ef7 |
69 | <td class="titre">Echéance d'envoi</td> |
8da0d3c1 |
70 | <td> |
46395fb8 |
71 | le {valid_date name="echeance_date" value=$echeance_date from=3 to=15} |
8da0d3c1 |
72 | vers <select name="echeance_time">{$echeance_time|smarty:nodefaults}</select> |
73 | </td> |
74 | </tr> |
75 | {else} |
76 | <tr> |
77 | <td colspan="2" class="center"> |
78 | Envoi au plus tard le {$echeance|date_format:"%x vers %Hh"}<br /> |
79 | {if $is_xorg} |
fde3e90e |
80 | [<a href="ax/edit/valid?token={xsrf_token}" onclick="return confirm('Es-tu sûr de vouloir valider l\'envoi de ce message ?');">{* |
8da0d3c1 |
81 | *}{icon name=thumb_up} Valider l'envoi</a>] |
82 | {else} |
fde3e90e |
83 | [<a href="ax/edit/cancel?token={xsrf_token}" onclick="return confirm('Es-tu sûr de vouloir annuler l\'envoi de ce message ?');">{* |
8da0d3c1 |
84 | *}{icon name=thumb_down} Annuler l'envoi</a>] |
85 | {/if} |
86 | </td> |
87 | </tr> |
88 | {/if} |
89 | </table> |
90 | |
91 | <p class="center"> |
92 | <input type="hidden" name="id" value="{$id}" /> |
4ea58d4b |
93 | <input type="hidden" name="old_short_name" value="{$short_name}" /> |
8da0d3c1 |
94 | <input type="hidden" name="saved" value="{$saved}" /> |
95 | {if $echeance} |
96 | <input type="hidden" name="echeance" value="{$echeance}" /> |
97 | {/if} |
a7de4ef7 |
98 | <input type="submit" name="valid" value="Aperçu" /> |
8da0d3c1 |
99 | {if !$new} |
100 | <input type="submit" name="valid" value="Confirmer" /> |
101 | {/if} |
102 | </p> |
103 | </form> |
104 | |
a7de4ef7 |
105 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |