{** @var $_user Object @var $_reminder Array *} {if !empty($contact)} {$_contact_id = $contact.id} {elseif !empty($deal_id)} {$_deal_id = $deal_id} {/if} {$_is_edit = false} {if empty($_reminder)} {$_reminder = [ "id" => null, "due_date" => "", "due_time" => "", "content" => "" ]} {else} {$_is_edit = true} {$temp = $_reminder.contact_id|default:0} {if $temp > 0} {$_contact_id = $temp} {$_deal_id = null} {else} {$_deal_id = $temp|abs} {$_contact_id = null} {/if} {/if} {capture assign=_cont_or_deal} {$_deal_not_empty = false}
{if $_deal_id && !empty($deals[abs($_reminder.contact_id)])} {*$_deal_id = abs($_reminder.contact_id)*} {$_deal = $deals[$_deal_id]} {$_funnel = ifset($funnels[$_deal.funnel_id])} {$_icon = ifset($_funnel.icon, 'fas fa-briefcase')} {if $_deal.status_id == crmDealModel::STATUS_WON} {$_icon = 'fas fa-flag-checkered'} {elseif $_deal.status_id == crmDealModel::STATUS_LOST} {$_icon = 'fas fa-ban'} {/if} {*if !empty($contacts[$_deal.contact_id])} {$_user_deal = $contacts[$_deal.contact_id]} {$_userpic_deal = $_user_deal->getPhoto(32)} {/if*} {$_deal_not_empty = true} {*if !empty($_userpic_deal)} {/if*} {if !empty($_deal)}{$_deal.name|escape}{/if} {elseif $_contact_id && !empty($contacts[$_reminder.contact_id])} {$_user_deal = $contacts[$_reminder.contact_id]} {$_deal_not_empty = true} {$_userpic_deal = $_user_deal->getPhoto(32)} {if !empty($_userpic_deal)} {/if} {$_contact_name = $wa->crm->contactName($_user_deal.name)}  {$_contact_name} {/if}
{/capture}
{if !empty($_reminder.rights)}
{$_reminder_mark_content}
{else}
{$_reminder_mark_content}
{/if}
{* TEXTAREA *}
{* USER *}
{if !$_user.deleted} {$_userpic = $_user->getPhoto(32)} {if !empty($_userpic)} {/if} {*{$_user.name|escape} [`Assign another user`]*} {else} {/if}
{* if $_reminder.id}
{/if *}
{if !empty($_reminder.id)} {/if}