[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/admin/templates/shop/ -> vattype.tpl (source)

   1  {if $errors}
   2      <div class="message-warning">
   3          <h2>{'Input did not validate'|i18n( 'design/admin/shop/vattype' )}</h2>
   4          <ul>
   5          {foreach $errors as $error}
   6              <li>{$error|wash}</li>
   7          {/foreach}
   8          </ul>
   9     </div>
  10  {/if}
  11  
  12  <form action={'shop/vattype'|ezurl} method="post" name="VatType">
  13  
  14  <div class="context-block">
  15  {* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr">
  16  <h1 class="context-title">{'VAT types [%vat_types]'|i18n( 'design/admin/shop/vattype',, hash( '%vat_types', $vattype_array|count ) )}</h1>
  17  
  18  {* DESIGN: Mainline *}<div class="header-mainline"></div>
  19  
  20  {* DESIGN: Header END *}</div></div></div></div></div></div>
  21  
  22  {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">
  23  
  24  {section show=$vattype_array}
  25  <table class="list" cellspacing="0">
  26  <tr>
  27      <th class="tight"><img src={'toggle-button-16x16.gif'|ezimage} alt="{'Invert selection.'|i18n( 'design/admin/shop/vattype' )}" title="{'Invert selection.'|i18n( 'design/admin/shop/vattype' )}" onclick="ezjs_toggleCheckboxes( document.VatType, 'vatTypeIDList[]' ); return false;" /></th>
  28      <th>{'Name'|i18n( 'design/admin/shop/vattype' )}</th>
  29      <th class="tight">{'Percentage'|i18n( 'design/admin/shop/vattype' )}</th>
  30  </tr>
  31  
  32  {def $id_string=''}
  33  {section var=Vattypes loop=$vattype_array sequence=array( bglight, bgdark )}
  34  {if and( is_set( $last_added_id ), eq( $last_added_id, $Vattypes.item.id) )}
  35      {set $id_string='id="LastAdded"'}
  36  {/if}
  37  <tr class="{$Vattypes.sequence}">
  38      <td><input type="checkbox" name="vatTypeIDList[]" value="{$Vattypes.item.id}" title="{'Select VAT type for removal.'|i18n( 'design/admin/shop/vattype' )}" /></td>
  39      <td><input type="text" name="vattype_name_{$Vattypes.item.id}" {$id_string} value="{$Vattypes.item.name|wash}" size="24" /></td>
  40      <td><input type="text" name="vattype_percentage_{$Vattypes.item.id}" value="{$Vattypes.item.percentage}" size="4" />&nbsp;%</td>
  41  </tr>
  42  {/section}
  43  </table>
  44  {section-else}
  45  <div class="block">
  46  <p>{'There are no VAT types.'|i18n( 'design/admin/shop/vattype' )}</p>
  47  </div>
  48  {/section}
  49  
  50  {* DESIGN: Content END *}</div></div></div>
  51  
  52  <div class="controlbar">
  53  {* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br">
  54  <div class="block">
  55  <div class="button-left">
  56      {section show=$vattype_array}
  57      <input class="button" type="submit" name="RemoveVatTypeButton" value="{'Remove selected'|i18n( 'design/admin/shop/vattype' )}" title="{'Remove selected VAT types.'|i18n( 'design/admin/shop/vattype' )}" />
  58      {section-else}
  59      <input class="button-disabled" type="submit" name="RemoveVatTypeButton" value="{'Remove selected'|i18n( 'design/admin/shop/vattype' )}" disabled="disabled" />
  60      {/section}
  61      <input class="button" type="submit" name="AddVatTypeButton" value="{'New VAT type'|i18n( 'design/admin/shop/vattype' )}" title="{'Create a new VAT type.'|i18n( 'design/admin/shop/vattype' )}" />
  62  </div>
  63  <div class="button-right">
  64      {section show=$vattype_array}
  65      <input class="button" type="submit" name="SaveVatTypeButton" value="{'Apply changes'|i18n( 'design/admin/shop/vattype' )}" title="{'Click this button to store changes if you have modified any of the fields above.'|i18n( 'design/admin/shop/vattype' )}" />
  66      {section-else}
  67      <input class="button-disabled" type="submit" name="SaveVatTypeButton" value="{'Apply changes'|i18n( 'design/admin/shop/vattype' )}" disabled="disabled" />
  68      {/section}
  69  </div>
  70  <div class="break"></div>
  71  </div>
  72  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
  73  </div>
  74  
  75  </div>
  76  
  77  </form>
  78  
  79  {literal}
  80  <script language="JavaScript" type="text/javascript">
  81  <!--
  82      window.onload=function()
  83      {
  84          var lastAddedItem = document.getElementById('LastAdded');
  85  
  86          if ( lastAddedItem != null )
  87          {
  88              lastAddedItem.select();
  89              lastAddedItem.focus();
  90          }
  91      }
  92  -->
  93  </script>
  94  {/literal}
  95  


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7