-{**************************************************************************}\r
-{* *}\r
-{* Copyright (C) 2003-2010 Polytechnique.org *}\r
-{* http://opensource.polytechnique.org/ *}\r
-{* *}\r
-{* This program is free software; you can redistribute it and/or modify *}\r
-{* it under the terms of the GNU General Public License as published by *}\r
-{* the Free Software Foundation; either version 2 of the License, or *}\r
-{* (at your option) any later version. *}\r
-{* *}\r
-{* This program is distributed in the hope that it will be useful, *}\r
-{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}\r
-{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}\r
-{* GNU General Public License for more details. *}\r
-{* *}\r
-{* You should have received a copy of the GNU General Public License *}\r
-{* along with this program; if not, write to the Free Software *}\r
-{* Foundation, Inc., *}\r
-{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}\r
-{* *}\r
-{**************************************************************************}\r
-\r
-<script type="text/javascript">//<![CDATA[\r
-{literal}\r
-var edited=false;\r
-\r
-function cleanContent()\r
-{\r
- if (edited == false) {\r
- var field = document.getElementById('flyspray_detail');\r
- field.value = '';\r
- field.style.color = "black";\r
- field.style.textAlign = "left";\r
- }\r
-}\r
-\r
-function fillContent()\r
-{\r
- var field = document.getElementById('flyspray_detail');\r
- if (field.value == '' || (field.value.toUpperCase() == field.value && field.value.toLowerCase() == field.value)) {\r
- field.value = "** Explique ici le problème ou l'amélioration proposée **";\r
- field.style.color = "gray";\r
- field.style.textAlign = "center";\r
- edited = false;\r
- } else {\r
- edited = true;\r
- }\r
-}\r
-{/literal}\r
-//]]></script>\r
-\r
-<div style="width:800px;height:600px">\r
-{if $bug_sent}\r
-<div><input type="submit" onclick="window.close()" name="close" value="Fermer" /></div>\r
-{else}\r
-<form action="send_bug" method="post" onsubmit="cleanContent()">\r
- {xsrf_token_field}\r
- <h1>Signaler un bug ou demander une amélioration</h1>\r
- <div style="margin-left:10%;margin-right:10%">\r
- <select name="task_type">\r
- <option value="bug">Erreur</option>\r
- <option value="wish">Souhait</option>\r
- <option value="help">Aide/Dépannage</option>\r
- </select>\r
- Sujet : <input type="text" name="item_summary" id="flyspray_title" value="sur la page { $location }" size="50" maxlength="100"/>\r
- <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
- <input type="hidden" name="page" value="{$smarty.server.HTTP_REFERER|default:$smarty.request.page}" />\r
- <div class="center">\r
- <input type="button" value="Abandonner" onclick="window.close()"/>\r
- <input type="submit" name="send" value="Envoyer"/>\r
- </div>\r
- </div>\r
-</form>\r
-<script type="text/javascript">\r
- fillContent();\r
-</script>\r
-</div>\r
-{/if}\r
-\r
-{* vim:set et sws=2 sts=2 sw=2 enc=utf-8: *}\r
+{**************************************************************************}
+{* *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* http://opensource.polytechnique.org/ *}
+{* *}
+{* This program is free software; you can redistribute it and/or modify *}
+{* it under the terms of the GNU General Public License as published by *}
+{* the Free Software Foundation; either version 2 of the License, or *}
+{* (at your option) any later version. *}
+{* *}
+{* This program is distributed in the hope that it will be useful, *}
+{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
+{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
+{* GNU General Public License for more details. *}
+{* *}
+{* You should have received a copy of the GNU General Public License *}
+{* along with this program; if not, write to the Free Software *}
+{* Foundation, Inc., *}
+{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
+{* *}
+{**************************************************************************}
+
+<fieldset style="width:700px; margin-left: 30px">
+ <legend>{icon name="bug"} Signaler un bug ou demander une amélioration</legend>
+
+ {if $bug_sent}
+ <div>
+ <input type="submit" onclick="window.close()" name="close" value="Fermer" />
+ </div>
+ {else}
+ <form action="send_bug" method="post" onsubmit="cleanContent()">
+ {xsrf_token_field}
+ <div>
+ <select name="task_type">
+ <option value="bug">Erreur</option>
+ <option value="wish">Souhait</option>
+ <option value="help">Aide/Dépannage</option>
+ </select>
+ Sujet : <input type="text" name="item_summary" id="flyspray_title" value="sur la page { $location }" size="50" maxlength="100"/>
+ <textarea name="detailed_desc" id="flyspray_detail" cols="70" rows="10"
+ style="width:100%;margin-top:10px;margin-bottom:10px;height:400px;display:block;"></textarea>
+ <input type="hidden" name="page" value="{$smarty.server.HTTP_REFERER|default:$smarty.request.page}" />
+ <div class="center">
+ <input type="button" value="Abandonner" onclick="window.close()"/>
+ <input type="submit" name="send" value="Envoyer"/>
+ </div>
+ </div>
+ </form>
+ <script type="text/javascript">
+ {literal}
+ $(document).ready(function() {
+ var edited=false;
+ $('#flyspray_detail')
+ .focus(function() {
+ if (edited == false) {
+ $(this).val('')
+ .css('color', 'black')
+ .css('textAlign', 'left');
+ }
+ })
+ .blur(function() {
+ var value = $(this).val();
+ if (value == '' || (value.toUpperCase() == value && value.toLowerCase() == value)) {
+ $(this).val("** Explique ici le problème ou l'amélioration proposée **")
+ .css('color', 'gray')
+ .css('textAlign', 'center');
+ edited = false;
+ } else {
+ edited = true;
+ }
+ })
+ .blur();
+ });
+ {/literal}
+ </script>
+ {/if}
+</fieldset>
+
+{* vim:set et sws=2 sts=2 sw=2 enc=utf-8: *}