Release plat/al core v1.1.13
[platal.git] / templates / bug.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 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 <fieldset style="width:700px; margin-left: 30px">
24   <legend>{icon name="bug"} Signaler un bug ou demander une amélioration</legend>
25
26   {if $bug_sent}
27   <div>
28     <input type="submit" onclick="window.close()" name="close" value="Fermer" />
29   </div>
30   {else}
31   <form action="send_bug" method="post" onsubmit="cleanContent()">
32     {xsrf_token_field}
33     <div>
34       <select name="task_type">
35         <option value="bug">Erreur</option>
36         <option value="wish">Souhait</option>
37         <option value="help">Aide/Dépannage</option>
38       </select>
39       &nbsp;&nbsp;Sujet&nbsp;: <input type="text" name="item_summary" id="flyspray_title" value="sur la page { $location }" size="50" maxlength="100"/>
40       <textarea name="detailed_desc" id="flyspray_detail" cols="70" rows="10"
41                 style="width:100%;margin-top:10px;margin-bottom:10px;height:400px;display:block;"></textarea>
42       <input type="hidden" name="page" value="{$smarty.server.HTTP_REFERER|default:$smarty.request.page}" />
43       <div class="center">
44         <input type="button" value="Abandonner" onclick="window.close()"/>
45         <input type="submit" name="send" value="Envoyer"/>
46       </div>
47     </div>
48   </form>
49   <script type="text/javascript">
50     {literal}
51     $(function() {
52       var edited=false;
53       $('#flyspray_detail')
54         .focus(function() {
55           if (edited == false) {
56             $(this).val('')
57                    .css('color', 'black')
58                    .css('textAlign', 'left');
59           }
60         })
61         .blur(function() {
62           var value = $(this).val();
63           if (value == '' || (value.toUpperCase() == value && value.toLowerCase() == value)) {
64             $(this).val("** Explique ici le problème ou l'amélioration proposée **")
65                    .css('color', 'gray')
66                    .css('textAlign', 'center');
67             edited = false;
68           } else {
69             edited = true;
70           }
71         })
72         .blur();
73     });
74     {/literal}
75   </script>
76   {/if}
77 </fieldset>
78
79 {* vim:set et sws=2 sts=2 sw=2 fenc=utf-8: *}