Before this commit there is no label shown at the top of the invite if the user hasn't done anything with the invite or if he chose 'Tentative'. Now it always shows the informative label. This commit also adds the description of a meeting subject as it can be interesting and important in many cases. closes odoo/odoo#43121 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
86 lines
4.5 KiB
XML
86 lines
4.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="assets_backend" name="calendar assets" inherit_id="web.assets_backend">
|
|
<xpath expr="." position="inside">
|
|
<link rel="stylesheet" type="text/scss" href="/calendar/static/src/scss/calendar.scss"/>
|
|
<script type="text/javascript" src="/calendar/static/src/js/base_calendar.js"></script>
|
|
<script type="text/javascript" src="/calendar/static/src/js/calendar_renderer.js"></script>
|
|
<script type="text/javascript" src="/calendar/static/src/js/calendar_controller.js"></script>
|
|
<script type="text/javascript" src="/calendar/static/src/js/calendar_model.js"></script>
|
|
<script type="text/javascript" src="/calendar/static/src/js/calendar_view.js"></script>
|
|
<script type="text/javascript" src="/calendar/static/src/js/mail_activity.js"></script>
|
|
<script type="text/javascript" src="/calendar/static/src/js/systray_activity_menu.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="qunit_suite" inherit_id="web.qunit_suite_tests">
|
|
<xpath expr="//script[last()]" position="after">
|
|
<script type="text/javascript" src="/calendar/static/tests/calendar_tests.js"/>
|
|
<script type="text/javascript" src="/calendar/static/tests/systray_activity_menu_tests.js"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<!-- Template rendered in route auth=None, for anonymous user. This allow them to see meeting details -->
|
|
<template id="invitation_page_anonymous" name="Calendar Invitation Page for anonymous users">
|
|
<t t-call="web.layout">
|
|
<t t-set="head">
|
|
<t t-call-assets="web.assets_common" t-js="false"/>
|
|
<t t-call-assets="web.assets_frontend" t-js="false"/>
|
|
</t>
|
|
|
|
<div class="container">
|
|
<div class="o_logo">
|
|
<img class="img img-fluid d-block mx-auto" src="/web/binary/company_logo" alt="Logo"/>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2>Calendar Invitation <small><t t-esc="event.name"/></small></h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="clearfix mb16" t-if="attendee.state != 'needsAction'">
|
|
<span class="float-right badge badge-info">
|
|
<t t-if="attendee.state == 'accepted'">Yes I'm going.</t>
|
|
<t t-if="attendee.state == 'declined'">No I'm not going.</t>
|
|
<t t-if="attendee.state == 'tentative'">Tentative</t>
|
|
<t t-if="attendee.state == 'needsAction'">No feedback yet</t>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="o_event_table table table-striped">
|
|
<tr>
|
|
<th>Invitation for</th>
|
|
<td><t t-esc="attendee.common_name"/> (<t t-esc="attendee.email"/>)</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Date</th>
|
|
<td><t t-esc="event.display_time"/></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Location</th>
|
|
<td><t t-esc="event.location or '-'"/></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Attendees</th>
|
|
<td>
|
|
<ul>
|
|
<li t-foreach="event.attendee_ids" t-as="attendee" t-attf-class="o_#{attendee.state}">
|
|
<t t-esc="attendee.common_name"/>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Description</th>
|
|
<td><t t-esc="event.description or '-'"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
</odoo>
|