{* DO NOT EDIT THIS FILE! Use an override template instead. *}

{default attribute_base=ContentObjectAttribute}

<div class="block">
<label>{'Option set name'|i18n( 'design/standard/content/datatype' )}:</label>
<input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}" class="box ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" type="text" name="{$attribute_base}_data_optionset_name_{$attribute.id}" value="{$attribute.content.name}" />
</div>

{section show=$attribute.content.multioption_list}
<table class="special" cellspacing="0">
{section var=MultiOptionList loop=$attribute.content.multioption_list sequence=array( bglight, bgdark )}
<tr>
<th class="tight"><input type="checkbox" name="{$attribute_base}_data_multioption_remove_{$attribute.id}[]" value="{$MultiOptionList.id}" title="{'Select multioption for removal.'|i18n( 'design/standard/content/datatype' )}" /></th>
<th>{$MultiOptionList.index}</th>
<th class="tight">{'Priority'|i18n( 'design/standard/content/datatype' )}:&nbsp;<input type="text" size="3" name = "{$attribute_base}_data_multioption_priority_{$attribute.id}_{$MultiOptionList.id}" value="{sum($MultiOptionList.index,1)}" /></th>
</tr>

<tr>
<td colspan="3">

<div class="block">
<label>{'Name'|i18n( 'design/standard/content/datatype' )}:</label>
<input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}" class="box ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" type="text" name = "{$attribute_base}_data_multioption_name_{$attribute.id}_{$MultiOptionList.id}" value="{$MultiOptionList.name}" />
<input type="hidden" name="{$attribute_base}_data_multioption_id_{$attribute.id}[]" value="{$MultiOptionList.id}" />
</div>

<div class="block">
<label>{'Options'|i18n( 'design/standard/content/datatype' )}:</label>

{section show=$MultiOptionList.item.optionlist}
<table class="list" cellspacing="0">
<tr>
<th class="tight">&nbsp;</th>
<th>{'Option'|i18n( 'design/standard/content/datatype' )}</th>
<th>{'Additional price'|i18n( 'design/standard/content/datatype' )}</th>
<th class="tight">{'Default'|i18n( 'design/standard/content/datatype' )}</th>
</tr>

{section var=OptionList loop=$MultiOptionList.item.optionlist sequence=array( bglight, bgdark )}
<tr class="{$OptionList.sequence}">

{* Remove. *}
<td><input type="checkbox" name="{$attribute_base}_data_option_remove_{$attribute.id}_{$MultiOptionList.id}[]" value="{$OptionList.id}" title="{'Select option for removal.'|i18n('design/standard/content/datatype')}" /></td>

{* Option. *}
<td><input class="box" type="text" name="{$attribute_base}_data_option_value_{$attribute.id}_{$MultiOptionList.id}[]" value="{$OptionList.value}" /></td>

{* Value. *}
<td><input class="box" type="text" name="{$attribute_base}_data_option_additional_price_{$attribute.id}_{$MultiOptionList.id}[]" value="{$OptionList.additional_price}" /></td>

{* Default. *}
<td>
{section show=eq( sum( $OptionList.index, 1 ), $MultiOptionList.default_option_id )}
    <input type="radio" name="{$attribute_base}_data_radio_checked_{$attribute.id}_{$MultiOptionList.id}"  value="{$OptionList.id}" title="{'Use the radio buttons to set the default option.'|i18n( 'design/standard/content/datatype' )}" checked="checked" />
{section-else}
    <input type="radio" name="{$attribute_base}_data_radio_checked_{$attribute.id}_{$MultiOptionList.id}"  value="{$OptionList.id}" title="{'Use the radio buttons to set the default option.'|i18n( 'design/standard/content/datatype' )}" />
{/section}

<input type="hidden" name="{$attribute_base}_data_option_id_{$attribute.id}_{$MultiOptionList.id}[]" value="{$OptionList.id}" />
<input type="hidden" name="{$attribute_base}_data_option_option_id_{$attribute.id}_{$MultiOptionList.id}[]" value="{$OptionList.option_id}" />
</td>
</tr>
{/section}
</table>
{section-else}
<p>{'There are no options.'|i18n( 'design/standard/content/datatype' )}</p>
{/section}

{section show=$MultiOptionList.item.optionlist}
<input class="button" type="submit" name="CustomActionButton[{$attribute.id}_remove-selected-option_{$MultiOptionList.id}]" value="{'Remove selected'|i18n('design/standard/content/datatype')}" title="{'Remove selected options.'|i18n( 'design/standard/content/datatype' )}" />
{section-else}
<input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_remove-selected-option_{$MultiOptionList.id}]" value="{'Remove selected'|i18n('design/standard/content/datatype')}" disabled="disabled" />
{/section}

<input class="button" type="submit" name="CustomActionButton[{$attribute.id}_new-option_{$MultiOptionList.id}]" value="{'Add option'|i18n('design/standard/content/datatype')}" title="{'Add a new option.'|i18n( 'design/standard/content/datatype' )}" />

</div>
</td>
</tr>
{/section}
</table>
{section-else}
<p>{'There are no multioptions.'|i18n( 'design/standard/content/datatype' )}</p>
{/section}


{section show=$attribute.content.multioption_list}
<input class="button" type="submit" name="CustomActionButton[{$attribute.id}_remove_selected_multioption]" value="{'Remove selected'|i18n('design/standard/content/datatype')}" title="{'Remove selected multioptions.'|i18n( 'design/standard/content/datatype' )}" />
{section-else}
<input class="button-disabled" type="submit" name="CustomActionButton[{$attribute.id}_remove_selected_multioption]" value="{'Remove selected'|i18n('design/standard/content/datatype')}" disabled="disabled" />
{/section}

<input class="button" type="submit" name="CustomActionButton[{$attribute.id}_new_multioption]" value="{'Add multioption'|i18n('design/standard/content/datatype')}" title="{'Add a new multioption.'|i18n('design/standard/content/datatype')}" />


{/default}

