Commit | Line | Data |
---|---|---|
5486a0d3 | 1 | {**************************************************************************}\r |
2 | {* *}\r | |
179afa7f | 3 | {* Copyright (C) 2003-2008 Polytechnique.org *}\r |
5486a0d3 | 4 | {* http://opensource.polytechnique.org/ *}\r |
5 | {* *}\r | |
6 | {* This program is free software; you can redistribute it and/or modify *}\r | |
7 | {* it under the terms of the GNU General Public License as published by *}\r | |
8 | {* the Free Software Foundation; either version 2 of the License, or *}\r | |
9 | {* (at your option) any later version. *}\r | |
10 | {* *}\r | |
11 | {* This program is distributed in the hope that it will be useful, *}\r | |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}\r | |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}\r | |
14 | {* GNU General Public License for more details. *}\r | |
15 | {* *}\r | |
16 | {* You should have received a copy of the GNU General Public License *}\r | |
17 | {* along with this program; if not, write to the Free Software *}\r | |
18 | {* Foundation, Inc., *}\r | |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}\r | |
20 | {* *}\r | |
21 | {**************************************************************************}\r | |
22 | \r | |
23 | <script type="text/javascript">//<![CDATA[\r | |
24 | {literal}\r | |
25 | var edited=false;\r | |
26 | \r | |
27 | function cleanContent()\r | |
28 | {\r | |
29 | if (edited == false) {\r | |
30 | var field = document.getElementById('flyspray_detail');\r | |
31 | field.value = '';\r | |
32 | field.style.color = "black";\r | |
33 | field.style.textAlign = "left";\r | |
34 | }\r | |
35 | }\r | |
36 | \r | |
37 | function fillContent()\r | |
38 | {\r | |
39 | var field = document.getElementById('flyspray_detail');\r | |
a2446af5 | 40 | if (field.value == '' || (field.value.toUpperCase() == field.value && field.value.toLowerCase() == field.value)) {\r |
a7de4ef7 | 41 | field.value = "** Explique ici le problème ou l'amélioration proposée **";\r |
5486a0d3 | 42 | field.style.color = "gray";\r |
43 | field.style.textAlign = "center";\r | |
44 | edited = false;\r | |
45 | } else {\r | |
46 | edited = true;\r | |
47 | }\r | |
48 | }\r | |
49 | {/literal}\r | |
50 | //]]></script>\r | |
51 | \r | |
987f1bd2 | 52 | <div style="width:800px;height:600px">\r |
53 | {if $bug_sent}\r | |
99afbbbf FB |
54 | <p class="erreur">\r |
55 | Ton message a bien été envoyé au support de Polytechnique.org, tu devrais en\r | |
56 | recevoir une copie d'ici quelques minutes. Nous allons le traiter et y répondre\r | |
57 | dans les plus brefs délais.\r | |
58 | </p>\r | |
59 | \r | |
60 | <div class="center"><input type="submit" onclick="window.close()" name="close" value="Fermer" /></div>\r | |
61 | {else}\r | |
5486a0d3 | 62 | <form action="send_bug" method="post" onsubmit="cleanContent()">\r |
a7de4ef7 | 63 | <h1>Signaler un bug ou demander une amélioration</h1>\r |
5486a0d3 | 64 | <div style="margin-left:10%;margin-right:10%">\r |
65 | <select name="task_type">\r | |
360ecb20 | 66 | <option value="bug">Erreur</option>\r |
67 | <option value="wish">Souhait</option>\r | |
68 | <option value="help">Aide/Dépannage</option>\r | |
5486a0d3 | 69 | </select>\r |
e8439508 | 70 | Sujet : <input type="text" name="item_summary" id="flyspray_title" value="sur la page {$smarty.server.HTTP_REFERER}" size="50" maxlength="100"/>\r |
5486a0d3 | 71 | <textarea name="detailed_desc" id="flyspray_detail" cols="70" rows="10" style="width:100%;margin-top:10px;margin-bottom:10px;height:400px;display:block;" onFocus="cleanContent()" onBlur="fillContent()"></textarea>\r |
5c50e351 | 72 | <input type="hidden" name="page" value="{$smarty.server.HTTP_REFERER|default:$smarty.request.page}" />\r |
5486a0d3 | 73 | <div class="center">\r |
99afbbbf FB |
74 | <input type="button" value="Abandonner" onclick="window.close()"/>\r |
75 | <input type="submit" name="send" value="Envoyer"/>\r | |
987f1bd2 | 76 | </div>\r |
5486a0d3 | 77 | </div>\r |
987f1bd2 | 78 | </form>\r |
5486a0d3 | 79 | <script type="text/javascript">\r |
80 | fillContent();\r | |
81 | </script>\r | |
987f1bd2 | 82 | </div>\r |
99afbbbf | 83 | {/if}\r |
5486a0d3 | 84 | \r |
a7de4ef7 | 85 | {* vim:set et sws=2 sts=2 sw=2 enc=utf-8: *}\r |