File size: 2,234 Bytes
d2897cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{#
  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>