summaryrefslogtreecommitdiff
path: root/addons/calendar/static/src/xml/base_calendar.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-07-23 09:57:14 +0200
committerqsm-odoo <qsm@odoo.com>2015-07-23 10:51:12 +0200
commit22bb892b809ab708dac7cbdf3902b6aeed0533e9 (patch)
treea9f8f8934877f2649a6cb676ce93d63720bfe9d3 /addons/calendar/static/src/xml/base_calendar.xml
parent86c399f3bde4efb271677914bc9f2721d77a681b (diff)
[FIX] calendar: Notification (style and new API)
for compatibility with the enterprise edition. Also add type=button as the type attribute should always be specified for the <button> element (different browsers may use different default types).
Diffstat (limited to 'addons/calendar/static/src/xml/base_calendar.xml')
-rw-r--r--addons/calendar/static/src/xml/base_calendar.xml23
1 files changed, 13 insertions, 10 deletions
diff --git a/addons/calendar/static/src/xml/base_calendar.xml b/addons/calendar/static/src/xml/base_calendar.xml
index d7d5ef8896d..14652960b40 100644
--- a/addons/calendar/static/src/xml/base_calendar.xml
+++ b/addons/calendar/static/src/xml/base_calendar.xml
@@ -5,16 +5,19 @@
<span t-attf-class="o_calendar_invitation #{el[2]}"/>
</t>
</t>
- <t t-name='notify_title'>
- <span t-attf-class="link2event eid_#{id}">
- <t t-esc="title"/>
- </span>
- </t>
- <t t-name='notify_footer'>
- <br/><br/>
- <button class='link2showed oe_highlight oe_form oe_button '><span>OK</span></button>
- <button class='link2event '>Details</button>
- <button class='link2recall '>Snooze</button>
+
+ <t t-name="CalendarNotification" t-extend="Notification">
+ <t t-jquery=".o_notification_title > t" t-operation="replace">
+ <span t-attf-class="link2event eid_{{widget.eid}}">
+ <t t-esc="widget.title"/>
+ </span>
+ </t>
+ <t t-jquery=".o_notification_content" t-operation="append">
+ <br/><br/>
+ <button type="button" class="btn btn-sm btn-primary link2showed oe_highlight oe_form oe_button"><span>OK</span></button>
+ <button type="button" class="btn btn-sm btn-link link2event">Details</button>
+ <button type="button" class="btn btn-sm btn-link link2recall">Snooze</button>
+ </t>
</t>
<t t-name="invitation_view">