[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 {default attribute_base=ContentObjectAttribute} 3 4 <div class="block"> 5 {*<fieldset>*} 6 {def $multi_price = $attribute.content 7 $custom_price_list = $multi_price.custom_price_list 8 $auto_price_list = $multi_price.auto_price_list 9 $currency_list = $multi_price.auto_currency_list} 10 {if or( count( $custom_price_list ), count( $auto_price_list ) )} 11 <table class="list" cellspacing="0"> 12 <tr> 13 <th class="tight"> </th> 14 <th>{'Currency'|i18n( 'design/standard/content/datatype' )}</th> 15 <th>{'Value'|i18n( 'design/standard/content/datatype' )}</th> 16 </tr> 17 {foreach $auto_price_list as $index => $price} 18 <tr> 19 {* Remove. *} 20 <td><input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_remove_{$index}" class="ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" type="checkbox" name="{$attribute_base}_remove_price_array_{$attribute.id}[{$price.currency_code}]" title="{'Select price for removal.'|i18n( 'design/standard/content/datatype' )}" disabled="disabled" /></td> 21 22 {* Currency *} 23 <td>{$price.currency_code}</td> 24 25 {* Value *} 26 <td>{$price.value}({'Auto'|i18n( 'design/standard/content/datatype' )})</td> 27 </tr> 28 {/foreach} 29 {foreach $custom_price_list as $price} 30 <tr> 31 {* Remove. *} 32 <td><input type="checkbox" name="{$attribute_base}_remove_price_array_{$attribute.id}[{$price.currency_code}]" title="{'Select price for removal.'|i18n( 'design/standard/content/datatype' )}" /></td> 33 34 {* Currency *} 35 <td>{$price.currency_code}</td> 36 37 {* Value *} 38 <td><input type="text" name="{$attribute_base}_price_array_{$attribute.id}[{$price.currency_code}]" size="12" value="{$price.value}" /></td> 39 </tr> 40 {/foreach} 41 </table> 42 43 {* 'Remove' button *} 44 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_remove_prices]" value="{'Remove selected'|i18n( 'design/standard/content/datatype' )}" title="{'Remove selected prices.'|i18n( 'design/standard/content/datatype' )}" /><p> 45 {else} 46 {* Disabled 'remove' button *} 47 {'Price list is empty'|i18n( 'design/standard/content/datatype' )}<p> 48 <input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_remove_prices]" value="{'Remove selected'|i18n( 'design/standard/content/datatype' )}" disabled="disabled" /><p> 49 {/if} 50 51 {if count( $currency_list )} 52 {* Select currency *} 53 <select name="{$attribute_base}_selected_currency_{$attribute.id}" title="Select currency"> 54 {foreach $currency_list as $currency} 55 <option value="{$currency.code}">{$currency.code}</option> 56 {/foreach} 57 {* 58 {section var=Currency loop=$currency_list} 59 <option value="{$Currency.code}">{$Currency.code}</option> 60 {/section} 61 *} 62 </select> 63 64 {* 'Set price' button *} 65 <input class="button" type="submit" name="CustomActionButton[{$attribute.id}_set_custom_price]" value="{'Set custom price'|i18n( 'design/standard/content/datatype' )}" title="{'Set custom price.'|i18n( 'design/standard/content/datatype' )}" /> 66 <input name="ContentObjectAttribute_id[]" value="{$attribute.id}" type="hidden"> 67 {else} 68 {* Disabled 'Set price' button *} 69 <input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_set_custom_price]" value="{'Set custom price'|i18n( 'design/standard/content/datatype' )}" disabled="disabled" /> 70 {'There are no available currencies.'|i18n( 'design/standard/content/datatype' )} 71 {/if} 72 {undef} 73 {*</fieldset>*} 74 </div> 75 76 <div class="block"> 77 <label>{'VAT'|i18n( 'design/standard/content/datatype' )}:</label> 78 <select id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}_inc_ex_vat" class="ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" name="{$attribute_base}_ezmultiprice_inc_ex_vat_{$attribute.id}"> 79 <option value="1" {section show=eq( $attribute.content.is_vat_included, true() )}selected="selected"{/section}>{'Price inc. VAT'|i18n( 'design/standard/content/datatype' )}</option> 80 <option value="2" {section show=eq( $attribute.content.is_vat_included, false() )}selected="selected"{/section}>{'Price ex. VAT'|i18n( 'design/standard/content/datatype' )}</option> 81 </select> 82 </div> 83 84 <div class="block"> 85 <label>{'VAT type'|i18n( 'design/standard/content/datatype' )}:</label> 86 {include uri='design:shop/vattype/edit.tpl' 87 select_name=concat( $attribute_base, "_ezmultiprice_vat_id_", $attribute.id ) 88 vat_types=$attribute.content.vat_type 89 current_val=$attribute.content.selected_vat_type.id} 90 </div> 91 92 {/default}
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |