{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($_hide_sidebar)}
{/if} {if !$iframe}

{$_user_title}

{/if}
{**}
{* USER *}
{$assign_to_user.userpic = $assign_to_user->getPhoto(32)} {if !empty($assign_to_user.userpic)} {/if} {*{$assign_to_user.name|escape} [`Assign another user`]*}
{if !empty($reminders)}
    {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)}
    {/if*} {elseif !$_is_deal && !empty($contacts[$_reminder.contact_id])} {$_user = $contacts[$_reminder.contact_id]} {$_userpic = $_user->getPhoto(32)} {if !empty($_userpic)} {/if}  {$wa->crm->contactName($_user.name)} {*if !empty($_reminder.rights)}
    {/if*} {/if} {/capture} {$_reminder_classes = []} {$_reminder_classes[] = $_reminder.state|default:""} {if $reminder_max_id && $_reminder.id > $reminder_max_id || $_reminder.id == $highlight_id} {$_reminder_classes[] = "highlighted"} {/if} {if $_reminder.id == $reminder_id} {$_reminder_classes[] = "is-target"} {/if} {$_reminder_mark_content = ""} {if $_reminder_classes[0] == "overdue"} {$_reminder_mark_content = "!!!"} {/if} {if $_reminder_classes[0] == "burn"} {$_reminder_mark_content = "!!"} {/if} {if $_reminder_classes[0] == "actual"} {$_reminder_mark_content = "!"} {/if}
  • {* VIEW *}
    {if !empty($_reminder.rights)} {$_reminder_mark_content} {else} {$_reminder_mark_content} {/if} {$show_user_block = $_reminder.creator_contact_id !== $_reminder.user_contact_id}
    {if !empty($_reminder.rights)}
    {$_reminder.content|escape|nl2br}
    {**} {else}
    {$_reminder.content|escape|nl2br}
    {/if}
    {$creator_id = $_reminder.creator_contact_id} {if $show_user_block} {if !empty($users[$creator_id])} {$_user_info = $users[$creator_id]} {$_userpic_info = $_user_info->getPhoto(32)} {if !empty($_userpic_info)} {/if} {else} {/if} {/if} {if $show_user_block || $is_all_reminders} {if !empty($users[$_reminder.user_contact_id])} {$_user_info = $users[$_reminder.user_contact_id]} {$_userpic_info = $_user_info->getPhoto(32)} {if !empty($_userpic_info)} {/if} {else} {/if} {/if}
    {* EDIT *}
    {$_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 *}

    [`Are you sure?`]

    [`or`]
    {* REPORT *}
    {if !empty($_reminder.rights)}
    {/if}
    [`Created at`]:
    {$_reminder.create_datetime|wa_date:"d.m.Y H:i"}
    {if !empty($_reminder.rights)} {/if}
  • {/foreach} {if isset($pages_count) && $pages_count > $current_page}
  • {/if}
{*OLD PAGINATION*} {*if isset($pages_count) && $pages_count > 1}
{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}