1 | <dl> |
---|
2 | <dt>{'Check integrity'|@translate}</dt> |
---|
3 | <dd> |
---|
4 | <ul> |
---|
5 | <form method="post" name="c13y" id="c13y" action=""> |
---|
6 | <fieldset> |
---|
7 | <table class="table2"> |
---|
8 | <tr class="throw"> |
---|
9 | <th></th> |
---|
10 | <th>{'Anomaly'|@translate}</th> |
---|
11 | <th>{'Correction'|@translate}</th> |
---|
12 | </tr> |
---|
13 | {if isset($c13y_list)} |
---|
14 | {foreach from=$c13y_list item=c13y name=c13y_loop} |
---|
15 | <tr class="{if $smarty.foreach.c13y_loop.index is odd}row1{else}row2{/if}"> |
---|
16 | <td> |
---|
17 | {if $c13y.can_select} |
---|
18 | <input type="checkbox" name="c13y_selection[]" value="{$c13y.id}" id="c13y_selection-{$c13y.id}"><label for="c13y_selection-{$c13y.id}"></label> |
---|
19 | {/if} |
---|
20 | </td> |
---|
21 | <td><label for="c13y_selection-{$c13y.id}">{$c13y.anomaly}</label></td> |
---|
22 | <td> |
---|
23 | <label for="c13y_selection-{$c13y.id}"> |
---|
24 | {if $c13y.show_ignore_msg} |
---|
25 | {'The anomaly will be ignored until next application version'|@translate} |
---|
26 | <br> |
---|
27 | {'Correction the anomaly will cancel the fact that it\'s ignored'|@translate} |
---|
28 | {/if} |
---|
29 | {if $c13y.show_correction_fct} |
---|
30 | {'Automatic correction'|@translate} |
---|
31 | {/if} |
---|
32 | {if $c13y.show_correction_bad_fct} |
---|
33 | {'Impossible automatic correction'|@translate} |
---|
34 | {/if} |
---|
35 | {if $c13y.show_correction_success_fct} |
---|
36 | {'Correction applied with success'|@translate} |
---|
37 | {/if} |
---|
38 | {if !empty($c13y.correction_error_fct)} |
---|
39 | {'Correction applied with error'|@translate} |
---|
40 | <br> |
---|
41 | {$c13y.c13y.correction_error_fct} |
---|
42 | {/if} |
---|
43 | {if !empty($c13y.correction_msg)} |
---|
44 | {if $c13y.show_correction_success_fct or !empty($c13y.correction_error_fct) or $c13y.show_correction_fct or $c13y.show_correction_bad_fct } |
---|
45 | <br> |
---|
46 | {/if} |
---|
47 | {$c13y.correction_msg|@nl2br} |
---|
48 | {/if} |
---|
49 | </label> |
---|
50 | </td> |
---|
51 | </tr> |
---|
52 | {/foreach} |
---|
53 | {/if} |
---|
54 | </table> |
---|
55 | |
---|
56 | <p> |
---|
57 | {literal} |
---|
58 | <script type="text/javascript"> |
---|
59 | jQuery(document).ready(function(){ |
---|
60 | |
---|
61 | jQuery("#checkAllLink").click(function () { |
---|
62 | jQuery("#c13y input[type=checkbox]").attr('checked', true); |
---|
63 | return false; |
---|
64 | }); |
---|
65 | |
---|
66 | jQuery("#uncheckAllLink").click(function () { |
---|
67 | jQuery("#c13y input[type=checkbox]").attr('checked', false); |
---|
68 | return false; |
---|
69 | }); |
---|
70 | |
---|
71 | }); |
---|
72 | function DeselectAll( formulaire ) |
---|
73 | { |
---|
74 | var elts = formulaire.elements; |
---|
75 | for(var i=0; i <elts.length; i++) |
---|
76 | { |
---|
77 | if (elts[i].type=='checkbox') |
---|
78 | elts[i].checked = false; |
---|
79 | } |
---|
80 | } |
---|
81 | </script> |
---|
82 | {/literal} |
---|
83 | {if $c13y_show_submit_ignore} |
---|
84 | <a href="#" id="checkAllLink">{'Check all'|@translate}</a> |
---|
85 | / <a href="#" id="uncheckAllLink">{'Uncheck all'|@translate}</a> |
---|
86 | {/if} |
---|
87 | {if isset($c13y_do_check)} |
---|
88 | / <a href="#" onclick="DeselectAll(document.getElementById('c13y')); |
---|
89 | {foreach from=$c13y_do_check item=ID} |
---|
90 | document.getElementById('c13y_selection-{$ID}').checked = true; |
---|
91 | {/foreach} |
---|
92 | return false;">{'Check automatic corrections'|@translate}</a> |
---|
93 | {/if} |
---|
94 | </p> |
---|
95 | |
---|
96 | <p> |
---|
97 | {if $c13y_show_submit_automatic_correction} |
---|
98 | <input class="submit" type="submit" value="{'Apply selected corrections'|@translate}" name="Apply selected corrections"> |
---|
99 | {/if} |
---|
100 | {if $c13y_show_submit_ignore} |
---|
101 | <input class="submit" type="submit" value="{'Ignore selected anomalies'|@translate}" name="Ignore selected anomalies"> |
---|
102 | {/if} |
---|
103 | <input class="submit" type="submit" value="{'Refresh'|@translate}" name="Refresh"> |
---|
104 | </p> |
---|
105 | |
---|
106 | </fieldset> |
---|
107 | </form> |
---|
108 | </ul> |
---|
109 | </dd> |
---|