flectra/addons/calendar/views/calendar_templates.xml

74 lines
3.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<template id="assets_backend" name="calendar assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/calendar/static/src/less/calendar.less"/>
<script type="text/javascript" src="/calendar/static/src/js/base_calendar.js"></script>
<script type="text/javascript" src="/calendar/static/src/js/mail_activity.js"></script>
</xpath>
</template>
<template id="qunit_suite" inherit_id="web.qunit_suite">
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/calendar/static/tests/calendar_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-responsive center-block" src="/web/binary/company_logo"/>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h2>Calendar Invitation <small><t t-esc="event.name"/></small></h2>
</div>
<div class="panel-body">
<div class="clearfix mb16" t-if="attendee.state != 'needsAction'">
<span class="pull-right label label-info">
<t t-if="attendee.state == 'accepted'">Yes I'm going.</t>
<t t-if="attendee.state == 'declined'">No I'm not going.</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>
</table>
</div>
</div>
</div>
</div>
</t>
</template>
2018-01-16 11:34:37 +01:00
</flectra>