{************************************************************************************ * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. *************************************************************************************}
{* Comupte the nubmer of columns required *} {assign var="SPANSIZE" value=12} {if $MINILIST_WIDGET_MODEL->getHeaderCount()} {assign var="SPANSIZE" value=12/$MINILIST_WIDGET_MODEL->getHeaderCount()} {/if}
{foreach item=FIELD from=$MINILIST_WIDGET_MODEL->getHeaders()}
{vtranslate($FIELD->get('label'),$BASE_MODULE)}
{/foreach}
{assign var="MINILIST_WIDGET_RECORDS" value=$MINILIST_WIDGET_MODEL->getRecords()} {foreach item=RECORD from=$MINILIST_WIDGET_RECORDS}
{foreach item=FIELD from=$MINILIST_WIDGET_MODEL->getHeaders() name="minilistWidgetModelRowHeaders"}
{if $smarty.foreach.minilistWidgetModelRowHeaders.last} {/if} {$RECORD->get($FIELD->get('name'))} 
{/foreach}
{/foreach} {if count($MINILIST_WIDGET_RECORDS) >= $MINILIST_WIDGET_MODEL->getRecordLimit()}
{vtranslate('LBL_MORE')}
{/if}