{if !empty($reminders)} {$_reminder_types = crmConfig::getReminderType()} {foreach $reminders as $_reminder} {$_is_deal = ( $_reminder.contact_id < 0 )} {if !empty($_reminder.type) && !empty($_reminder_types[$_reminder.type])} {$_active_reminder_type = $_reminder_types[$_reminder.type]} {/if} {capture assign="_header"}{strip} {if $_reminder.type !== "OTHER" && !empty($_active_reminder_type)} {strip} {if !empty($_active_reminder_type.icon)}{/if} {$_active_reminder_type.name|escape} {/strip} {/if} {if $_is_deal} {$_deal_id = abs($_reminder.contact_id)} {if !empty($deals[$_deal_id])} {$_deal = $deals[$_deal_id]} {if !empty($contacts[$_deal.contact_id])} {$_user = $contacts[$_deal.contact_id]} {$_userpic = $_user->getPhoto(16)} {/if} {if !empty($_userpic)} {/if} {$_deal.name|escape} {/if} {else} {$_user = false} {if !empty($contacts[$_reminder.contact_id])} {$_user = $contacts[$_reminder.contact_id]} {/if} {if $_user} {$_userpic = $_user->getPhoto(16)} {if !empty($_userpic)} {/if} {$_user.name|escape} {/if} {/if} {/strip}{/capture}
  • {if !empty($_reminder.rights)} {else} {/if} {if !empty($_header)}
    {$_header}
    {/if}
    {if !empty($_reminder.rights)}
    {if !empty($_reminder.due_datetime)} {$_time = waDateTime::format('H:i', $_reminder.due_datetime)} {/if} {if !empty($_reminder.deal_id)} {/if}
    {else} {$_reminder.content|escape|nl2br} {/if}
    {if !empty($_reminder.rights)} {/if}
  • {/foreach}
  • {/if}