bebeboutik/modules/invite/ajax_friends.tpl
Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

44 lines
1.2 KiB
Smarty
Executable File

{if $friends}
{if isset($pending)}
<table cellspacing="0" cellpadding="0" class="table">
<tbody>
<tr>
<th class="center">{l s='Date' mod='invite'}</th>
{if $askName}<th class="center">{l s='Name' mod='invite'}</th>{/if}
<th class="center">{l s='Email' mod='invite'}</th>
</tr>
{foreach $friends as $friend}
<tr>
<td>{$friend.date_upd}</td>
{if $askName}<td>{$friend.firstname} {$friend.lastname}</td>{/if}
<td>{$friend.email}</td>
</tr>
{/foreach}
</tbody>
</table>
{else}
<table cellspacing="0" cellpadding="0" class="table">
<tbody>
<tr>
<th class="center">{l s='ID' mod='invite'}</th>
{if $askName}<th class="center">{l s='Name' mod='invite'}</th>{/if}
<th class="center">{l s='Email' mod='invite'}</th>
</tr>
{foreach $friends as $friend}
<tr>
<td>{$friend.id_customer}</td>
{if $askName}<td>{$friend.firstname} {$friend.lastname}</td>{/if}
<td>{$friend.email}</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
{else}
{if isset($pending)}
<p>{l s='This customer has no pending friends.' mod='invite'}</p>
{else}
<p>{l s='This customer has no friends.' mod='invite'}</p>
{/if}
{/if}