mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Add possibility to return an action in a notification
This commit is contained in:
committed by
Yannick Vaucher
parent
8d3f2749e4
commit
b333cdc7b1
@@ -2,22 +2,32 @@
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="Notification.reload">
|
||||
<div class="o_notification_reload" t-if="widget.options.show_reload">
|
||||
<a href="#" class="o_view_reload">
|
||||
<div class="o_notification_action" t-if="widget.options.show_reload">
|
||||
<a href="#" class="o_notification_reload_view">
|
||||
<span class="fa fa-refresh"/> Reload current view
|
||||
</a>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-name="Notification.do_action">
|
||||
<div class="o_notification_action" t-if="widget.options.action">
|
||||
<a href="#" class="o_notification_do_action">
|
||||
<span class="fa fa-arrow-circle-left"/> Open
|
||||
</a>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<t t-extend="Notification">
|
||||
<t t-jquery=".o_notification_content" t-operation="after">
|
||||
<t t-call="Notification.reload"/>
|
||||
<t t-call="Notification.do_action"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<t t-extend="Warning">
|
||||
<t t-jquery=".o_notification_content" t-operation="after">
|
||||
<t t-call="Notification.reload"/>
|
||||
<t t-call="Notification.do_action"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user