{if isset($list)}{foreach item=item from=$list}
    <label for="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}{$item->$id}" class="label3">
        <input name="{$name}" id="{if isset($rep_name_id)}{$rep_name_id}{/if}{$name}{$item->$id}" type="radio"
               class="radio_color radio {if isset($class)}{$class}{/if} {if isset($readonly) && $readonly}ignoredisabled{/if} {if isset($within_filter) && $within_filter}within_filter{/if}"
               value="{$item->$id}"
               {if isset($smarty.post.$name) && $smarty.post.$name eq $item->$id}checked="checked"{elseif isset($default) && $default eq $item->$id}checked="checked"{/if}
               {if isset($deactivate_possible) && $deactivate}style="display:none;"{/if}
               {if isset($readonly) && $readonly}disabled="disabled"{/if}
               title="{$item->$text|escape:'html'}"
               {if isset($filter_extra)}{$filter_extra}{/if}
                {if isset($class) && stripos($class, 'required')!==false}required{/if}
               />
        <span class="ui-corner-all" style="background-color:{$item->$color}; display:inline-block; height:18px; text-align:center; min-width:30px">
        {if !empty($item->$text)}{$item->$text|escape:'html'}{else}&nbsp;{/if}
        </span>
    </label>
{/foreach}{/if}
