Simplify javascript.
[platal.git] / templates / site_errors.tpl
CommitLineData
7f6d1063
FB
1{**************************************************************************}\r
2{* *}\r
e92ecb8c 3{* Copyright (C) 2003-2011 Polytechnique.org *}\r
7f6d1063
FB
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
40b79bfc
FB
23<script type="text/javascript">\r
24{literal}\r
25// <![CDATA[\r
d5494feb 26$(function() {\r
40b79bfc
FB
27 $(".error_state").click(function() {\r
28 $(this).children(".error_state_content").toggle();\r
29 });\r
30});\r
31// ]]>\r
32{/literal}\r
33</script>\r
34\r
7f6d1063 35<h1>Erreurs d'exécution</h1>\r
40b79bfc
FB
36 {iterate from=$errors item=error}\r
37 <fieldset>\r
38 <legend>{$error->date}</legend>\r
39 <pre>{$error->error}</pre>\r
40 {foreach from=$error->state item=table key=name}\r
41 <div class="error_state">\r
42 <div><strong>{$name} (click to show/hide content)</strong></div>\r
43 <div class="error_state_content" style="display: none">\r
44 {php}\r
45 $var = $this->get_template_vars('table');\r
46 var_dump($var);\r
47 {/php}\r
48 </div>\r
49 </div>\r
50 {/foreach}\r
51 </fieldset>\r
52 {/iterate}\r
7f6d1063
FB
53<form action="site_errors" method="post">\r
54 <div>\r
55 <input type="submit" name="clear" value="Effacer les erreurs" />\r
56 </div>\r
57</form>\r
58\r
59\r
60{* vim:set et sws=2 sts=2 sw=2 enc=utf-8: *}\r