summaryrefslogtreecommitdiff
path: root/addons/calendar/static/src/xml/base_calendar.xml
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2015-11-27 13:14:47 +0100
committerqsm-odoo <qsm@odoo.com>2015-11-27 16:20:32 +0100
commitbba2e39fb8a4443eb80c570bf8b8984b64f6fe7c (patch)
tree9e2ffaa22f78ee8b00540e8b4c00d89c30f486ff /addons/calendar/static/src/xml/base_calendar.xml
parent2790bb4492cdca3b1aed4fb16989b165d6ad45d4 (diff)
[FIX] calendar: redirection after invitation email
When accepting/declining a calendar event invitation received by mail, we landed on an empty gray webclient. The confirmation page had been dropped with passage to new JS API / new calendar / new webclient. Previous mechanism had been reimplemented: custom web client with event information/confirmation if the user is not connected or redirection to the event form view if the user is connected. + FIX manyattendeetag : the status circle did not turn red when an user declined the invitation.
Diffstat (limited to 'addons/calendar/static/src/xml/base_calendar.xml')
-rw-r--r--addons/calendar/static/src/xml/base_calendar.xml37
1 files changed, 37 insertions, 0 deletions
diff --git a/addons/calendar/static/src/xml/base_calendar.xml b/addons/calendar/static/src/xml/base_calendar.xml
index e4dd5eca511..d01994de2e5 100644
--- a/addons/calendar/static/src/xml/base_calendar.xml
+++ b/addons/calendar/static/src/xml/base_calendar.xml
@@ -27,4 +27,41 @@
</t>
</t>
</t>
+
+ <div t-name="CalendarInvitation" class="o_calendar_invitation_page">
+ <div class="pull-right">
+ <t t-esc="attendee_data['current_attendee'].cn"/> (<t t-esc="attendee_data['current_attendee'].email"/>)
+ <div t-if="attendee_data['current_attendee'].state !== 'needsAction'" t-attf-class="o_#{attendee_data['current_attendee'].state}">
+ <t t-if="attendee_data['current_attendee'].state === 'accepted'">Yes I'm going.</t>
+ <t t-if="attendee_data['current_attendee'].state === 'declined'">No I'm not going.</t>
+ </div>
+ </div>
+ <div class="pull-left o_logo">
+ <img class="img img-responsive" src='/web/binary/company_logo'/>
+ </div>
+ <div class="o_event_title">
+ <h2>Calendar Invitation</h2>
+ <h3><t t-esc="attendee_data['meeting'].event"/></h3>
+ </div>
+ <table class="o_event_table table table-striped">
+ <tr>
+ <th>When</th>
+ <td><t t-esc="attendee_data['meeting'].when"/></td>
+ </tr>
+ <tr>
+ <th>Where</th>
+ <td><t t-esc="attendee_data['meeting'].where or '-'"/></td>
+ </tr>
+ <tr>
+ <th>Who</th>
+ <td>
+ <ul>
+ <li t-foreach="attendee_data['attendee']" t-as="attendee" t-attf-class="o_#{attendee.status}">
+ <t t-esc="attendee.name"/>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </div>
</template>