You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
2.0 KiB

{if $type eq 'contacts'}
<div id="mautic_contact_container}">
<div class="d-flex justify-content-between mb-3">
<h2>{tr}Contacts{/tr}</h2>
<div>
{if in_array('create', $available_actions)}
<a type="button" class="btn btn-primary" href="#">{icon name=create} {tr}New Contact{/tr}</a>
{/if}
{if in_array('sync', $available_actions)}
<a type="button" class="btn btn-primary" href="#">{icon name=sync} {tr}Sync data{/tr}</a>
{/if}
</div>
</div>
<table class="table table-striped table-hover table-bordered">
<tr>
<th>{tr}ID{/tr}</th>
<th>{tr}Email{/tr}</th>
<th>{tr}Fullname{/tr}</th>
<th>{tr}Company{/tr}</th>
<th>{tr}Domain Name{/tr}</th>
<th>{tr}Points{/tr}</th>
<th>{tr}Actions{/tr}</th>
</tr>
{foreach $contacts as $contact}
<tr>
<td>{$contact->id}</td>
<td>{$contact->email|escape}</td>
<td>{$contact->fullname}</td>
<td>{$contact->company|escape}</td>
<td>{$contact->domain|escape}</td>
<td>{$contact->points}</td>
<td class="action">
{actions}{strip}
{if in_array('info', $available_actions)}
<action>
<a href="#">
{icon name=eye _menu_text='y' _menu_icon='y' alt="{tr}Info{/tr}"}
</a>
</action>
{/if}
{/strip}{/actions}
</td>
</tr>
{foreachelse}
<tr>
<td colspan="7">{tr}No contacts found.{/tr}</td>
</tr>
{/foreach}
</table>
</div>
{/if}