1- {% trans_default_domain ' EMSCoreBundle' %}{% if rejectedNotifications | length <= 0 %}
2- <p >{{ ' No result for this filters combinaison' | trans }}: <a href =" {{ path(' notifications.inbox' ) }}" >{{ ' reset filters' }}</a ></p >
3- {% else %}
4- <div class =" table-responsive" >
5- <table class =" table table-condensed table-striped" >
6- <tbody >
7- <tr >
8- <th class =" " style =" " >
9- Notification
10- </th >
11- <th >Rejected by</th >
12- <th >On</th >
13- <th >Environment</th >
14- <th >Message</th >
15- <th >Revision</th >
16- <th >Actions</th >
17- </tr >
18- </tbody >
19- {% for notification in rejectedNotifications %}
20- <tr >
21- <td class =" " nowrap =" nowrap" >
22- <i class =" fa {{notification .template .icon }}" ></i > {{ notification .template .name }}
23-
24- </td >
25- <td >{{ notification .responseBy }}</td >
26- <td >{{ notification .responseTimestamp | date| date (date_time_format ) }}</td >
27- <td >
28- <span class =" badge bg-{{ notification .environment .color | raw }}" >{{ notification .environment .name }}</span >
29- </td >
30- <td >
31- {% if notification .responseText | length > 0 %}
32-
33- <!-- Button trigger modal -->
34- <button type =" button" class =" btn btn-primary btn-sm" data-toggle =" modal" data-target =" #showRejectedMessageModal_{{ loop .index }}" >
35- <i class =" fa fa-commenting-o" ></i >
36- </button >
37-
38- <!-- Modal -->
39- <div class =" modal fade" id =" showRejectedMessageModal_{{ loop .index }}" tabindex =" -1" role =" dialog" aria-labelledby =" showRejectedMessageModal_{{ loop .index }}_Label" >
40- <div class =" modal-dialog" role =" document" >
41- <div class =" modal-content" >
42- <div class =" modal-header" >
43- <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span aria-hidden =" true" >× </span ></button >
44- <h4 class =" modal-title" id =" showRejectedMessageModal_{{ loop .index }}_Label" >Rejected message</h4 >
45- </div >
46- <div class =" modal-body" >
47- {{ notification .responseText | raw }}
48- </div >
49- <div class =" modal-footer" >
50- <button type =" button" class =" btn btn-default" data-dismiss =" modal" >
51- <i class =" fa fa-close" ></i >
52- Close
53- </button >
54- </div >
55- </div >
56- </div >
57- </div >
58- {% endif %}
59-
60- </td >
61- <td >
62- {{ (notification .revision .contentType .name~' :' ~notification.revision .ouuid )| data_link(notification .revision .id )| raw }}
63-
64- <td >
65- <div class =" btn-group" >
66- {% include ' EMSCoreBundle:elements:post-button.html.twig' with {
67- ' url' : path(' notification.acknowledge' , {' notification' : notification .id } ),
68- ' label' : ' Acknowledge' ,
69- ' icon' : ' check' ,
70- ' message' : ' Do you confirm?'
71- }%}
72-
73- {% include ' EMSCoreBundle:elements:object-views-button.html.twig' with {
74- ' object' : notification .revision .buildObject ,
75- ' contentType' : notification .revision .contentType ,
76- ' environment' : notification .environment ,
77- ' ouuid' : notification .revision ,
78- ' currentTemplate' : notification .template
79- }%}
80- </div >
81- </td >
82- </tr >
83- {% endfor %}
84- </table >
85- </div >
1+ {% trans_default_domain ' EMSCoreBundle' %}{% if rejectedNotifications | length <= 0 %}
2+ <p >{{ ' No result for this filters combinaison' | trans }}: <a href =" {{ path(' notifications.inbox' ) }}" >{{ ' reset filters' }}</a ></p >
3+ {% else %}
4+ <div class =" table-responsive" >
5+ <table class =" table table-condensed table-striped" >
6+ <tbody >
7+ <tr >
8+ <th class =" " style =" " >
9+ Notification
10+ </th >
11+ <th >Rejected by</th >
12+ <th >On</th >
13+ <th >Environment</th >
14+ <th >Message</th >
15+ <th >Revision</th >
16+ <th >Actions</th >
17+ </tr >
18+ </tbody >
19+ {% for notification in rejectedNotifications %}
20+ <tr >
21+ <td class =" " nowrap =" nowrap" >
22+ <i class =" {{notification .template .icon }}" ></i > {{ notification .template .name }}
23+
24+ </td >
25+ <td >{{ notification .responseBy }}</td >
26+ <td >{{ notification .responseTimestamp | date| date (date_time_format ) }}</td >
27+ <td >
28+ <span class =" badge bg-{{ notification .environment .color | raw }}" >{{ notification .environment .name }}</span >
29+ </td >
30+ <td >
31+ {% if notification .responseText | length > 0 %}
32+
33+ <!-- Button trigger modal -->
34+ <button type =" button" class =" btn btn-primary btn-sm" data-toggle =" modal" data-target =" #showRejectedMessageModal_{{ loop .index }}" >
35+ <i class =" fa fa-commenting-o" ></i >
36+ </button >
37+
38+ <!-- Modal -->
39+ <div class =" modal fade" id =" showRejectedMessageModal_{{ loop .index }}" tabindex =" -1" role =" dialog" aria-labelledby =" showRejectedMessageModal_{{ loop .index }}_Label" >
40+ <div class =" modal-dialog" role =" document" >
41+ <div class =" modal-content" >
42+ <div class =" modal-header" >
43+ <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span aria-hidden =" true" >× </span ></button >
44+ <h4 class =" modal-title" id =" showRejectedMessageModal_{{ loop .index }}_Label" >Rejected message</h4 >
45+ </div >
46+ <div class =" modal-body" >
47+ {{ notification .responseText | raw }}
48+ </div >
49+ <div class =" modal-footer" >
50+ <button type =" button" class =" btn btn-default" data-dismiss =" modal" >
51+ <i class =" fa fa-close" ></i >
52+ Close
53+ </button >
54+ </div >
55+ </div >
56+ </div >
57+ </div >
58+ {% endif %}
59+
60+ </td >
61+ <td >
62+ {{ (notification .revision .contentType .name~' :' ~notification.revision .ouuid )| data_link(notification .revision .id )| raw }}
63+
64+ <td >
65+ <div class =" btn-group" >
66+ {% include ' EMSCoreBundle:elements:post-button.html.twig' with {
67+ ' url' : path(' notification.acknowledge' , {' notification' : notification .id } ),
68+ ' label' : ' Acknowledge' ,
69+ ' icon' : ' check' ,
70+ ' message' : ' Do you confirm?'
71+ }%}
72+
73+ {% include ' EMSCoreBundle:elements:object-views-button.html.twig' with {
74+ ' object' : notification .revision .buildObject ,
75+ ' contentType' : notification .revision .contentType ,
76+ ' environment' : notification .environment ,
77+ ' ouuid' : notification .revision ,
78+ ' currentTemplate' : notification .template
79+ }%}
80+ </div >
81+ </td >
82+ </tr >
83+ {% endfor %}
84+ </table >
85+ </div >
8686{% endif %}
0 commit comments