Backports
[platal.git] / templates / axletter / edit.tpl
CommitLineData
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">
26 {if $am}
27 {include file="axletter/letter.tpl"}
28
29 <p class="center">
30 <input type="hidden" name="id" value="{$id}" />
31 <input type="hidden" name="old_shortname" value="{$shortname}" />
32 <input type="hidden" name="saved" value="{$saved}" />
33 {if $echeance}
34 <input type="hidden" name="echeance" value="{$echeance}" />
35 {/if}
36 {if !$new}
37 <input type="submit" name="valid" value="Confirmer" />
38 {/if}
39 </p>
40 {/if}
41
42 <fieldset>
43 <legend>Sujet du mail : <input type="text" name="subject" value="{$subject}" size="60"/></legend>
44 <p class="center">
45 <strong>Titre : </strong><input type="text" name="title" value="{$title}" size="60" /><br />
46 <textarea name="body" rows="30" cols="78">{$body}</textarea><br />
47 <strong>Signature : </strong><input type="text" name="signature" value="{$signature}" size="60" />
48 </p>
49 </fieldset>
50
51 <table class="tinybicol">
52 <tr>
53 <th colspan="2">Options du message</th>
54 </tr>
55 <tr>
56 <td class="titre">Nom raccourci</td>
57 <td>
58 <input type="text" name="shortname" value="{$shortname}" size="16" maxlength="16" />
59 <span class="smaller">(uniquement lettres, chiffres ou -)</span>
60 </td>
61 </tr>
62 <tr>
63 <td class="titre">Promo min</td>
64 <td>
65 <input type="text" name="promo_min" value="{$promo_min|default:0}" size="4" maxlength="4" />
66 <span class="smaller">(0 pour pas de minimum... ex: 1947)</span>
67 </td>
68 </tr>
69 <tr>
70 <td class="titre">Promo max</td>
71 <td>
72 <input type="text" name="promo_max" value="{$promo_max|default:0}" size="4" maxlength="4" />
73 <span class="smaller">(0 pour pas de maximum... ex: 2001)</span>
74 </td>
75 </tr>
76 {if !$saved}
77 <tr>
78 <td class="titre">Echéance d'envoi</td>
79 <td>
80 le <select name="echeance_date">{$echeance_date|smarty:nodefaults}</select>
81 vers <select name="echeance_time">{$echeance_time|smarty:nodefaults}</select>
82 </td>
83 </tr>
84 {else}
85 <tr>
86 <td colspan="2" class="center">
87 Envoi au plus tard le {$echeance|date_format:"%x vers %Hh"}<br />
88 {if $is_xorg}
89 [<a href="ax/edit/valid" onclick="return confirm('Es-tu sūr de voiloir valider l\'envoi de ce message ?');">{*
90 *}{icon name=thumb_up} Valider l'envoi</a>]
91 {else}
92 [<a href="ax/edit/cancel" onclick="return confirm('Es-tu sūr de vouloir annuler l\'envoi de ce message ?');">{*
93 *}{icon name=thumb_down} Annuler l'envoi</a>]
94 {/if}
95 </td>
96 </tr>
97 {/if}
98 </table>
99
100 <p class="center">
101 <input type="hidden" name="id" value="{$id}" />
102 <input type="hidden" name="old_shortname" value="{$shortname}" />
103 <input type="hidden" name="saved" value="{$saved}" />
104 {if $echeance}
105 <input type="hidden" name="echeance" value="{$echeance}" />
106 {/if}
107 <input type="submit" name="valid" value="Aperēu" />
108 {if !$new}
109 <input type="submit" name="valid" value="Confirmer" />
110 {/if}
111 </p>
112</form>
113
114{* vim:set et sw=2 sts=2 sws=2: *}