Changeset 2241 for trunk/template


Ignore:
Timestamp:
Mar 2, 2008, 6:30:18 PM (16 years ago)
Author:
rub
Message:

0000810: Use of new template engine [smarty]

Migration of c13y template
It's the first step with simple migration, on next step more display action on tpl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/admin/check_integrity.tpl

    r2239 r2241  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id$ -->
     1{* $Id$ *}
    32<dl>
    4   <dt>{lang:c13y_title}</dt>
     3  <dt>{'c13y_title'|@translate}</dt>
    54  <dd>
    65    <ul>
    7       <form method="post" name="c13y" id="c13y" action="{F_c13y_ACTION}">
     6      <form method="post" name="c13y" id="c13y" action="{$F_C13Y_ACTION}">
    87      <fieldset>
    98        <table class="table2">
    109          <tr class="throw">
    1110            <th></th>
    12             <th>{lang:c13y_Anomaly}</th>
    13             <th>{lang:c13y_Correction}</th>
     11            <th>{'c13y_Anomaly'|@translate}</th>
     12            <th>{'c13y_Correction'|@translate}</th>
    1413          </tr>
    15           <!-- BEGIN c13y -->
    16           <tr class="{c13y.CLASS}">
    17             <td>
    18               <!-- BEGIN can_select -->
    19               <input type="checkbox" name="c13y_selection[]" value="{c13y.ID}" {c13y.CHECKED} id="c13y_selection-{c13y.ID}" /><label for="c13y_selection-{c13y.ID}"></label>
    20               <!-- END can_select -->
    21             </td>
    22             <td><label for="c13y_selection-{c13y.ID}">{c13y.ANOMALY}</label></td>
    23             <td>
    24               <label for="c13y_selection-{c13y.ID}">
    25                 <!-- BEGIN ignore_msg -->
    26                 {lang:c13y_ignore_msg1}
    27                 <br />
    28                 {lang:c13y_ignore_msg2}
    29                 <!-- END ignore_msg -->
    30                 <!-- BEGIN correction_fct -->
    31                 {lang:c13y_Automatic_correction}
    32                 <!-- END correction_fct -->
    33                 <!-- BEGIN correction_bad_fct -->
    34                 {lang:c13y_Impossible_automatic_correction}
    35                 <!-- END correction_bad_fct -->
    36                 <!-- BEGIN correction_success_fct -->
    37                 {lang:c13y_Correction_applied_success}
    38                 <!-- END correction_success_fct -->
    39                 <!-- BEGIN correction_error_fct -->
    40                 {lang:c13y_Correction_applied_error}
    41                 <BR />
    42                 {c13y.correction_error_fct.WIKI_FOROM_LINKS}
    43                 <!-- END correction_error_fct -->
    44                 <!-- BEGIN br -->
    45                 <br />
    46                 <!-- END br -->
    47                 <!-- BEGIN correction_msg -->
    48                 {c13y.correction_msg.DATA}
    49                 <!-- END correction_msg -->
    50               </label>
    51             </td>
    52           </tr>
    53           <!-- END c13y -->
     14          {if isset($c13y_list)}
     15            {foreach from=$c13y_list item=c13y name=c13y_loop}
     16              <tr class="{if $smarty.foreach.c13y_loop.index is odd}row1{else}row2{/if}">
     17                <td>
     18                  {if $c13y.can_select}
     19                    <input type="checkbox" name="c13y_selection[]" value="{$c13y.ID}" {$c13y.CHECKED} id="c13y_selection-{$c13y.ID}" /><label for="c13y_selection-{$c13y.ID}"></label>
     20                  {/if}
     21                </td>
     22                <td><label for="c13y_selection-{$c13y.ID}">{$c13y.ANOMALY}</label></td>
     23                <td>
     24                  <label for="c13y_selection-{$c13y.ID}">
     25                    {if $c13y.show_ignore_msg}
     26                      {'c13y_ignore_msg1'|@translate}
     27                      <br />
     28                      {'c13y_ignore_msg2'|@translate}
     29                    {/if}
     30                    {if $c13y.show_correction_fct}
     31                      {'c13y_Automatic_correction'|@translate}
     32                    {/if}
     33                    {if $c13y.show_correction_bad_fct}
     34                      {'c13y_Impossible_automatic_correction'|@translate}
     35                    {/if}
     36                    {if $c13y.show_correction_success_fct}
     37                      {'c13y_Correction_applied_success'|@translate}
     38                    {/if}
     39                    {if !empty($c13y.correction_error_fct)}
     40                      {'c13y_Correction_applied_error'|@translate}
     41                      <br />
     42                      {$c13y.c13y.correction_error_fct}
     43                    {/if}
     44                    {if !empty($c13y.correction_msg)}
     45                      {if $c13y.show_correction_success_fct or !empty($c13y.correction_error_fct) or $c13y.show_correction_fct or $c13y.show_correction_bad_fct }
     46                        <br />
     47                      {/if}
     48                      {$c13y.correction_msg|@nl2br}
     49                    {/if}
     50                  </label>
     51                </td>
     52              </tr>
     53            {/foreach}
     54          {/if}
    5455        </table>
    5556
    5657        <p>
    57           <!-- BEGIN c13y_link_check_uncheck -->
    58           <a href="#" onclick="SelectAll(document.getElementById('c13y')); return false;">{lang:c13y_check_all}</a>
    59         / <a href="#" onclick="DeselectAll(document.getElementById('c13y')); return false;">{lang:c13y_uncheck_all}</a>
    60           <!-- END c13y_link_check_uncheck -->
    61           <!-- BEGIN c13y_link_check_automatic_correction -->
    62           / <a href="#" onclick="DeselectAll(document.getElementById('c13y'));
    63             <!-- BEGIN c13y_do_check -->
    64               document.getElementById('c13y_selection-{c13y_link_check_automatic_correction.c13y_do_check.ID}').checked = true;
    65             <!-- END c13y_do_check -->
    66               return false;">{lang:c13y_check_auto}</a>
    67           <!-- END c13y_link_check_automatic_correction -->
     58          {if $c13y_show_submit_ignore}
     59              <a href="#" onclick="SelectAll(document.getElementById('c13y')); return false;">{'c13y_check_all'|@translate}</a>
     60            / <a href="#" onclick="DeselectAll(document.getElementById('c13y')); return false;">{'c13y_uncheck_all'|@translate}</a>
     61          {/if}
     62          {if isset($c13y_do_check)}
     63            / <a href="#" onclick="DeselectAll(document.getElementById('c13y'));
     64            {foreach from=$c13y_do_check item=ID}
     65              document.getElementById('c13y_selection-{$ID}').checked = true;
     66            {/foreach}
     67            return false;">{'c13y_check_auto'|@translate}</a>
     68          {/if}
    6869        </p>
    6970
    7071        <p>
    71           <!-- BEGIN c13y_submit_automatic_correction -->
    72           <input class="submit" type="submit" value="{lang:c13y_submit_correction}" name="c13y_submit_correction" {TAG_INPUT_ENABLED} />
    73           <!-- END c13y_submit_automatic_correction -->
    74           <!-- BEGIN c13y_submit_ignore -->
    75           <input class="submit" type="submit" value="{lang:c13y_submit_ignore}" name="c13y_submit_ignore" {TAG_INPUT_ENABLED} />
    76           <!-- END c13y_submit_ignore -->
    77           <input class="submit" type="submit" value="{lang:c13y_submit_refresh}" name="c13y_submit_refresh" />
    78         </p>
     72          {if $c13y_show_submit_automatic_correction}
     73            <input class="submit" type="submit" value="{'c13y_submit_correction'|@translate}" name="c13y_submit_correction" {$TAG_INPUT_ENABLED} />
     74          {/if}
     75          {if $c13y_show_submit_ignore}
     76            <input class="submit" type="submit" value="{'c13y_submit_ignore'|@translate}" name="c13y_submit_ignore" {$TAG_INPUT_ENABLED} />
     77          {/if}
     78          <input class="submit" type="submit" value="{'c13y_submit_refresh'|@translate}" name="c13y_submit_refresh" />
     79          </p>
    7980
    8081      </fieldset>
Note: See TracChangeset for help on using the changeset viewer.