[ 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/ -> removevattypes.tpl (source)

   1  <div class="context-block">
   2  
   3  {* 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">
   4  
   5  {def $title=''}
   6  {if $can_remove}
   7      {if $dependencies|count|gt(1)}
   8          {set $title='Confirm removal of the VAT types'|i18n( 'design/admin/shop/removevattypes' )}
   9      {else}
  10          {set $title='Confirm removal of this VAT type'|i18n( 'design/admin/shop/removevattypes' )}
  11      {/if}
  12  {else}
  13      {if $dependencies|count|gt(1)}
  14          {set $title='Removing VAT types'|i18n( 'design/admin/shop/removevattypes' )}
  15      {else}
  16          {set $title='Removing VAT type'|i18n( 'design/admin/shop/removevattypes' )}
  17      {/if}
  18  {/if}
  19  <h1 class="context-title">{$title}</h1>
  20  {undef $title}
  21  
  22  {* DESIGN: Mainline *}<div class="header-mainline"></div>
  23  
  24  {* DESIGN: Header END *}</div></div></div></div></div></div>
  25  
  26  {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr">
  27  
  28  <form action={'shop/vattype'|ezurl} method="post" name="RemoveVatType">
  29  
  30  {if $can_remove|not}
  31  <div class="message-error">
  32  {if $dependencies|count|gt(1)}
  33      <h2>{'Unable to remove the VAT types'|i18n( 'design/admin/shop/removevattypes' )}</h2>
  34  {else}
  35      <h2>{'Unable to remove this VAT type'|i18n( 'design/admin/shop/removevattypes' )}</h2>
  36  {/if}
  37  <ul>
  38  {foreach $errors as $error}
  39  <li>{$error}</li>
  40  {/foreach}
  41  </ul>
  42  </div>
  43  {/if}
  44  
  45  
  46  <div class="box-content">
  47  
  48  {if $can_remove}
  49  <div class="message-confirmation">
  50  {if $dependencies|count|gt(1)}
  51      <h2>{'Are you sure you want to remove the VAT types?'|i18n( 'design/admin/shop/removevattypes' )}</h2>
  52  {else}
  53      <h2>{'Are you sure you want to remove this VAT type?'|i18n( 'design/admin/shop/removevattypes' )}</h2>
  54  {/if}
  55  </div>
  56  {/if}
  57  
  58  {*---------- Dependencies START ----------*}
  59  {if $show_dependencies}
  60  <ul>
  61  {def $vat_name = '' $rules_count = 0 $products_count = 0 $classes_count = 0}
  62  {foreach $dependencies as $vat_id => $vat_deps}
  63      {set $vat_name       = $vat_deps.name
  64           $rules_count    = $vat_deps.affected_rules_count
  65           $products_count = $vat_deps.affected_products_count
  66           $classes_count  = $vat_deps.affected_classes_count}
  67      {if $can_remove|not}
  68          {if $classes_count|gt( 0 )}
  69              {if $classes_count|eq( 1 )}
  70                  <li>{"VAT type <%1> is set as default for 1 product class."|i18n( 'design/admin/shop/removevattypes',, array( $vat_name|wash ) )|wash}</li>
  71              {else}
  72                  <li>{'VAT type <%1> is set as default for %2 product classes.'|i18n( 'design/admin/shop/removevattypes',, array( $vat_name|wash, $classes_count ) )|wash}</li>
  73              {/if}
  74          {/if}
  75      {else}
  76          {if $rules_count|gt( 0 )}
  77              {if $rules_count|eq( 1 )}
  78                  <li>{"Removing VAT type <%1> will result in removal of 1 VAT charging rule."|i18n( 'design/admin/shop/removevattypes',, array( $vat_name|wash ) )|wash}</li>
  79              {else}
  80                  <li>{'Removing VAT type <%1> will result in removal of %2 VAT charging rules.'|i18n( 'design/admin/shop/removevattypes',, array( $vat_name|wash, $rules_count ) )|wash}</li>
  81              {/if}
  82          {/if}
  83          {if $products_count|gt( 0 )}
  84              {if $products_count|eq( 1 )}
  85                  <li>{"Removing VAT type <%1> will result in resetting VAT type for 1 product to its default value."|i18n( 'design/admin/shop/removevattypes',, array( $vat_name|wash ) )|wash}</li>
  86              {else}
  87                  <li>{'Removing VAT type <%1> will result in resetting VAT type for %2 products to its default value.'|i18n( 'design/admin/shop/removevattypes',, array( $vat_name|wash, $products_count ) )|wash}</li>
  88              {/if}
  89          {/if}
  90      {/if}
  91  {/foreach}
  92  {undef $rules_count $products_count}
  93  </ul>
  94  {/if}
  95  {*----------  Dependencies END -----------*}
  96  
  97  {* DESIGN: Content END *}</div></div></div>
  98  
  99  <div class="controlbar">
 100  
 101  {* 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">
 102  
 103  <div class="block">
 104  {if $can_remove}
 105      <input type="hidden" name="vatTypeIDList" value="{$vat_type_ids}" />
 106      <input class="button" type="submit" name="ConfirmRemovalButton" value="{'OK'|i18n( 'design/admin/shop/removevattypes' )}" />
 107      <input class="button" type="submit" name="CancelRemovalButton" value="{'Cancel'|i18n( 'design/admin/shop/removevattypes' )}" />
 108  {else}
 109      <input class="button" type="submit" name="CancelRemovalButton" value="{'Back'|i18n( 'design/admin/shop/removevattypes' )}" />
 110  {/if}
 111  </div>
 112  
 113  </form>
 114  
 115  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
 116  
 117  </div>
 118  
 119  </div>
 120  


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