[ 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/ -> removeproductcategories.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  <h1 class="context-title">{'Confirm removal of product categories'|i18n( 'design/admin/shop/removeproductcategories' )}</h1>
   6  
   7  {* DESIGN: Mainline *}<div class="header-mainline"></div>
   8  
   9  {* DESIGN: Header END *}</div></div></div></div></div></div>
  10  
  11  {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">
  12  
  13  <div class="message-confirmation">
  14  
  15  {if $dependencies|count|gt(1)}
  16      <h2>{'Are you sure you want to remove the categories?'|i18n( 'design/admin/shop/removeproductcategories' )}</h2>
  17  {else}
  18      <h2>{'Are you sure you want to remove this category?'|i18n( 'design/admin/shop/removeproductcategories' )}</h2>
  19  {/if}
  20  
  21  <ul>
  22  {def $cat_name = '' $rules_count = 0 $products_count = 0 $possible_conflicts=false()}
  23  {foreach $dependencies as $cat_id => $cat_deps}
  24      {set $cat_name       = $cat_deps.name
  25           $rules_count    = $cat_deps.affected_rules_count
  26           $products_count = $cat_deps.affected_products_count}
  27      {if $rules_count|gt( 0 )}
  28          {if $rules_count|eq( 1 )}
  29              <li>{"Removing category <%1> will result in modifying 1 VAT charging rule."|i18n( 'design/admin/shop/removeproductcategories',, array( $cat_name|wash ) )|wash}</li>
  30          {else}
  31              <li>{'Removing category <%1> will result in modifying %2 VAT charging rules.'|i18n( 'design/admin/shop/removeproductcategories',, array( $cat_name|wash, $rules_count ) )|wash}</li>
  32          {/if}
  33          {set $possible_conflicts=true()}
  34      {/if}
  35      {if $products_count|gt( 0 )}
  36          {if $products_count|eq( 1 )}
  37              <li>{"Removing category <%1> will result in resetting category for 1 product."|i18n( 'design/admin/shop/removeproductcategories',, array( $cat_name|wash ) )|wash}</li>
  38          {else}
  39              <li>{'Removing category <%1> will result in resetting category for %2 products.'|i18n( 'design/admin/shop/removeproductcategories',, array( $cat_name|wash, $products_count ) )|wash}</li>
  40          {/if}
  41      {/if}
  42  {/foreach}
  43  {undef $rules_count $products_count}
  44  </ul>
  45  {if $possible_conflicts}
  46  {'Note that the removal may cause conflicts in VAT charging rules.'|i18n( 'design/admin/shop/removeproductcategories' )|wash}
  47  {/if}
  48  {undef $possible_conflicts}
  49  </div>
  50  
  51  {* DESIGN: Content END *}</div></div></div>
  52  
  53  <div class="controlbar">
  54  
  55  {* 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">
  56  
  57  <div class="block">
  58  
  59  <form action={'shop/productcategories'|ezurl} method="post" name="RemoveCategory">
  60      <input class="button" type="submit" name="ConfirmRemovalButton" value="{'OK'|i18n( 'design/admin/shop/removeproductcategories' )}" />
  61      <input class="button" type="submit" name="CancelRemovalButton" value="{'Cancel'|i18n( 'design/admin/shop/removeproductcategories' )}" />
  62      <input type="hidden" name="CategoryIDList" value="{$category_ids}" />
  63  </form>
  64  
  65  </div>
  66  
  67  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
  68  
  69  </div>
  70  
  71  </div>
  72  


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