{if $form.icon !='' } {/if} ## {$form.title} {$form.description}

{foreach item=cell key=elems_name from=$dataPanel.elems} {if $cell.type=='ColumnStyle'} {assign var=row_style_name value=$elems_name} {else} {if $cell.type=='RowCheckbox'} {assign var=th_style value="text-align:left;padding-left:10px;"} {else} {assign var=th_style value=""} {/if} {$cell.label} {/if} {/foreach}
{assign var=row_counter value=0} {foreach item=row from=$dataPanel.data} {if $row.$row_style_name != ''} {assign var=row_style value=$dataPanel.data.$row_counter.$row_style_name} {else} {assign var=row_style value=''} {/if} {if $row_style != ''}
{elseif $form.currentRecordId == $dataPanel.ids[$row_counter]} {assign var=default_selected_id value=$dataPanel.ids[$row_counter]}
{elseif $row_counter == 0 and $form.currentRecordId == ""} {assign var=default_selected_id value=$dataPanel.ids[$row_counter]}
{elseif $row_counter is odd}
{else}
{/if} {assign var=col_counter value=0} {foreach key=name item=cell key=cell_name from=$row} {if $col_counter eq 0} {assign var=col_class value=' class="row_header" '} {else} {assign var=col_class value=' '} {/if} {if $cell_name != $row_style_name} {if $cell != ''} {$cell} {else} | {/if} {/if} {assign var=col_counter value=$col_counter+1} {/foreach} {assign var=row_counter value=$row_counter+1}
{/foreach}

{$default_selected_id}
{if $actionPanel|@count > 0}

{foreach item=elem from=$actionPanel} {$elem.element} {/foreach}

{/if}