{* /************************************* * SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. * SPDX-License-Identifier: AGPL-3.0-only ************************************/ *} {* crmv@43942 crmv@54707 *}
{if !empty($module.create_url)} {'LBL_CREATE'|getTranslatedString} {/if}   {if !empty($module.list_url)} {'LBL_FULL_LIST'|getTranslatedString} {/if}
{assign var=ENTRIES value=$AREAMODULELIST[$module.tabid].entries} {if !empty($ENTRIES)}
{$AREAMODULELIST[$module.tabid].header}
{foreach name=areamodulelistentries item=entry from=$ENTRIES} {/foreach} {if $AREAMODULELIST[$module.tabid].show_other_button eq true} {math equation="(x+y)%z" x=$smarty.foreach.areamodulelistentries.total y=1 z=2 assign=othercount} {/if}
{assign var=areamodulelistentry1 value=""} {assign var=areamodulelistentry2 value=""} {foreach name=areamodulelistentry key=id item=value from=$entry} {if $smarty.foreach.areamodulelistentry.iteration-1|@in_array:$AREAMODULELIST[$module.tabid].name_field_position} {if empty($areamodulelistentry1)} {assign var=areamodulelistentry1 value=$value} {else} {assign var=areamodulelistentry1 value=$areamodulelistentry1|cat:" "|cat:$value} {/if} {elseif $value neq ''} {if empty($areamodulelistentry2)} {assign var=areamodulelistentry2 value=$value} {else} {assign var=areamodulelistentry2 value=$areamodulelistentry2|cat:", "|cat:$value} {/if} {/if} {/foreach} {* TODO stop propagation of clicks *} {*
*}
{$areamodulelistentry1}
{$areamodulelistentry2}
{$APP.LBL_OTHERS} >>
{else}
{$APP.LBL_NO_M} {$APP.LBL_RECORDS} {$APP.LBL_FOUND}
{/if}
{* TODO stop propagation of clicks *}