|
10 | 10 | {% set gridName = 'contacts-email-grid' %} |
11 | 11 |
|
12 | 12 | {% block navButtons %} |
13 | | - {% if resource_granted('orocrm_call_create') %} |
14 | | - {{ UI.clientButton({ |
15 | | - 'dataUrl': path('orocrm_call_create', { 'contactId': entity.id }) , |
16 | | - 'aCss': 'no-hash log-call-button', |
17 | | - 'iCss': 'icon-phone', |
18 | | - 'dataId': entity.id, |
19 | | - 'title' : 'Log call'|trans, |
20 | | - 'label' : 'Log call'|trans |
21 | | - }) }} |
22 | | - {% endif %} |
23 | 13 | {% if resource_granted('oro_email_create') %} |
24 | 14 | {{ UI.clientButton({ |
25 | 15 | 'dataUrl': path('orocrm_contact_email_create', { 'contactId': entity.id }) , |
|
30 | 20 | 'label' : 'Send email'|trans |
31 | 21 | }) }} |
32 | 22 | {% endif %} |
| 23 | + {% if resource_granted('orocrm_call_create') %} |
| 24 | + {{ UI.clientButton({ |
| 25 | + 'dataUrl': path('orocrm_call_create', { 'contactId': entity.id }) , |
| 26 | + 'aCss': 'no-hash log-call-button', |
| 27 | + 'iCss': 'icon-phone', |
| 28 | + 'dataId': entity.id, |
| 29 | + 'title' : 'Log call'|trans, |
| 30 | + 'label' : 'Log call'|trans |
| 31 | + }) }} |
| 32 | + {% endif %} |
33 | 33 | {% if resource_granted('orocrm_contact_update') %} |
34 | 34 | {{ UI.button({ |
35 | 35 | 'path' : path('orocrm_contact_update', { 'id': entity.id }), |
|
140 | 140 | }) |
141 | 141 | }} |
142 | 142 | </div> |
143 | | - </div> |
144 | | - {# TODO: This is a temporary list of emails for demo purposes. It will be removed when 'display activities' functionality is implemented #} |
145 | | - {#{% if resource_granted('oro_email_view') %}#} |
146 | | - {#{{ render(controller('OroEmailBundle:Email:activities', {'emails': entity.emails})) }}#} |
147 | | - {#{% endif %}#} |
148 | 143 |
|
149 | | - {% if resource_granted('oro_email_view') %} |
150 | | - <div class="clearfix"> |
| 144 | + {% if resource_granted('oro_email_view') %} |
151 | 145 | <div class="responsive-cell contact-info-col"> |
152 | 146 | <div class="box-type1"> |
153 | 147 | <div class="title"> |
154 | | - <div class="pull-right widget-actions-container"></div> |
155 | 148 | <span class="widget-title">{{ "Emails"|trans }}</span> |
156 | 149 | </div> |
157 | 150 | <div class="row-fluid"> |
|
160 | 153 | </div> |
161 | 154 | </div> |
162 | 155 | </div> |
163 | | - </div> |
164 | | - {% endif %} |
| 156 | + {% endif %} |
165 | 157 |
|
166 | | - {% if resource_granted('orocrm_call_view') %} |
167 | | - <div class="clearfix"> |
168 | | - <div class="responsive-cell contact-info-col"> |
169 | | - {{ |
170 | | - oro_widget_render({ |
171 | | - 'widgetType': 'block', |
172 | | - 'url': path('orocrm_call_widget_calls', {contactId: entity.id}), |
173 | | - 'title': 'Calls'|trans, |
174 | | - 'alias': 'contact_calls' |
175 | | - }) |
176 | | - }} |
177 | | - </div> |
| 158 | + {% if resource_granted('orocrm_call_view') %} |
| 159 | + <div class="responsive-cell contact-info-col"> |
| 160 | + {{ |
| 161 | + oro_widget_render({ |
| 162 | + 'widgetType': 'block', |
| 163 | + 'url': path('orocrm_call_widget_calls', {contactId: entity.id}), |
| 164 | + 'title': 'Calls'|trans, |
| 165 | + 'alias': 'contact_calls' |
| 166 | + }) |
| 167 | + }} |
| 168 | + </div> |
| 169 | + {% endif %} |
178 | 170 | </div> |
179 | | - {% endif %} |
180 | 171 | </div> |
181 | 172 | {% endblock content_data %} |
0 commit comments