Spaces:
No application file
No application file
{# | |
Variables: | |
- note | |
- lead | |
- permissions | |
#} | |
{% set icon = 'ri-file-text-line' %} | |
{% if 'email' == note.type %} | |
{% set icon = 'ri-send-plane-line' %} | |
{% elseif 'call' == note.type %} | |
{% set icon = 'ri-phone-line' %} | |
{% elseif 'meeting' == note.type %} | |
{% set icon = 'ri-team-line' %} | |
{% endif %} | |
<li id="LeadNote{{ note.id }}"> | |
<div class="panel "> | |
<div class="panel-body np box-layout"> | |
<div class="height-auto icon bdr-r col-xs-1 text-center"> | |
<h3><i class="fa ri-lg fa-fw {{ icon }}"></i></h3> | |
</div> | |
<div class="media-body col-xs-11 pa-10"> | |
<div class="pull-right btn-group"> | |
{% if permissions['edit'] %} | |
<a class="btn btn-default btn-xs" href="{{ url('mautic_contactnote_action', {'leadId': lead.id, 'objectAction': 'edit', 'objectId': note.id}) }}" data-toggle="ajaxmodal" data-target="#MauticSharedModal" data-header="{{ 'mautic.lead.note.header.edit'|trans }}"><i class="ri-edit-line"></i></a> | |
{% endif %} | |
{% if permissions['delete'] %} | |
<a class="btn btn-default btn-xs" data-toggle="confirmation" | |
href="{{ path('mautic_contactnote_action', {'objectAction': 'delete', 'objectId': note.id, 'leadId': lead.id}) }}" | |
data-message="{{ 'mautic.lead.note.confirmdelete'|trans|e }}" | |
data-confirm-text="{{ 'mautic.core.form.delete'|trans|e }}" | |
data-confirm-callback="executeAction" | |
data-cancel-text="{{ 'mautic.core.form.cancel'|trans|e }}"> | |
<i class="ri-delete-bin-line text-danger"></i> | |
</a> | |
{% endif %} | |
</div> | |
{{ note.text|purify }} | |
<div class="mt-15 text-muted"> | |
<i class="ri-time-line fa-fw"></i> <span class="small">{{ dateToFullConcat(note.dateTime) }}</span> | |
<i class="ri-user-6-line fa-fw"></i> <span class="small">{{ note.createdByUser }}</span> | |
</div> | |
</div> | |
</div> | |
</div> | |
</li> | |