source: trunk/admin/themes/default/template/check_integrity.tpl @ 28550

Last change on this file since 28550 was 8128, checked in by patdenice, 13 years ago

feature 2060: Remove {$TAG_INPUT_ENABLED} from tpl files.

  • Property svn:eol-style set to LF
File size: 4.1 KB
RevLine 
[2531]1<dl>
[5021]2  <dt>{'Check integrity'|@translate}</dt>
[2531]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>
[5021]10            <th>{'Anomaly'|@translate}</th>
11            <th>{'Correction'|@translate}</th>
[2531]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}
[3185]18                    <input type="checkbox" name="c13y_selection[]" value="{$c13y.id}" id="c13y_selection-{$c13y.id}"><label for="c13y_selection-{$c13y.id}"></label>
[2531]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}
[5021]25                      {'The anomaly will be ignored until next application version'|@translate}
[3185]26                      <br>
[5021]27                      {'Correction the anomaly will cancel the fact that it\'s ignored'|@translate}
[2531]28                    {/if}
29                    {if $c13y.show_correction_fct}
[5021]30                      {'Automatic correction'|@translate}
[2531]31                    {/if}
32                    {if $c13y.show_correction_bad_fct}
[5021]33                      {'Impossible automatic correction'|@translate}
[2531]34                    {/if}
35                    {if $c13y.show_correction_success_fct}
[5021]36                      {'Correction applied with success'|@translate}
[2531]37                    {/if}
38                    {if !empty($c13y.correction_error_fct)}
[5021]39                      {'Correction applied with error'|@translate}
[3185]40                      <br>
[2531]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 }
[3185]45                        <br>
[2531]46                      {/if}
47                      {$c13y.correction_msg|@nl2br}
48                    {/if}
49                  </label>
50                </td>
51              </tr>
52            {/foreach}
53          {/if}
54        </table>
55
56        <p>
[7852]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}
[2531]83          {if $c13y_show_submit_ignore}
[7852]84              <a href="#" id="checkAllLink">{'Check all'|@translate}</a>
85            / <a href="#" id="uncheckAllLink">{'Uncheck all'|@translate}</a>
[2531]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}
[5021]92            return false;">{'Check automatic corrections'|@translate}</a>
[2531]93          {/if}
94        </p>
95
96        <p>
97          {if $c13y_show_submit_automatic_correction}
[8128]98            <input class="submit" type="submit" value="{'Apply selected corrections'|@translate}" name="Apply selected corrections">
[2531]99          {/if}
100          {if $c13y_show_submit_ignore}
[8128]101            <input class="submit" type="submit" value="{'Ignore selected anomalies'|@translate}" name="Ignore selected anomalies">
[2531]102          {/if}
[5021]103          <input class="submit" type="submit" value="{'Refresh'|@translate}" name="Refresh">
[2531]104          </p>
105
106      </fieldset>
107      </form>
108    </ul>
109  </dd>
Note: See TracBrowser for help on using the repository browser.