{skeleton}
{$_user_title = $_title}
{if $is_all_reminders}
{$_user_title = "[`All reminders`]"}
{elseif ($user_id == $_user_id)}
{$_user_title = "[`My reminders`]"}
{elseif ifset($users[$user_id])}
{$_user = $users[$user_id]}
{$_user_title = $_user.name|escape}
{/if}
{if !empty($reminders)}
{if empty($_hide_sidebar)}
{/if}
{if !$iframe}
{/if}
{$_user_title}
-
{* VIEW *}
{if !empty($_reminder.rights)} {$_reminder_mark_content} {else} {$_reminder_mark_content} {/if} {$show_user_block = $_reminder.creator_contact_id !== $_reminder.user_contact_id}{* EDIT *}{if !empty($_reminder.rights)}{$_reminder.content|escape|nl2br}{**} {else}{$_reminder.content|escape|nl2br}{/if}{$_reminder_user = ifset($users[$_reminder.user_contact_id], false)} {if !$_reminder_user} {$_reminder_user.id = $_reminder.user_contact_id} {$_reminder_user.deleted = true} {/if} {include file="./ReminderFormEdit.inc.html" _user=$_reminder_user _reminder=$_reminder inline}{* CONFIRM *}{* REPORT *}
[`Are you sure?`]
[`or`]{if !empty($_reminder.rights)}{/if}{if !empty($_reminder.rights)} {/if}[`Created at`]:
{$_reminder.create_datetime|wa_date:"d.m.Y H:i"}
{/foreach}
{if isset($pages_count) && $pages_count > $current_page}
- {/if}
{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=_deal_or_contact}
{if $_is_deal && !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 = $contacts[$_deal.contact_id]}
{$_userpic = $_user->getPhoto(32)}
{/if}
{*if !empty($_userpic)}
{/if*}
{$_deal.name|escape}
{*if !empty($_reminder.rights)}
{wa_pagination total=$pages_count attrs=['class'=>'paging']}
{/if*}
{else}
{if $completed_reminders_count > 0}
[`All reminders are completed`]
{else}
[`Reminders not added`]
{/if}
{/if}