summaryrefslogtreecommitdiff
path: root/addons/calendar/static/src/xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/calendar/static/src/xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/calendar/static/src/xml')
-rw-r--r--addons/calendar/static/src/xml/base_calendar.xml58
-rw-r--r--addons/calendar/static/src/xml/notification_calendar.xml19
2 files changed, 77 insertions, 0 deletions
diff --git a/addons/calendar/static/src/xml/base_calendar.xml b/addons/calendar/static/src/xml/base_calendar.xml
new file mode 100644
index 00000000..b136ee28
--- /dev/null
+++ b/addons/calendar/static/src/xml/base_calendar.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template>
+ <t t-name="Many2ManyAttendeeTag" t-extend="FieldMany2ManyTag">
+ <t t-jquery="span:first" t-operation="prepend">
+ <span t-if="attendeesData[el_index]" t-attf-class="o_calendar_invitation #{attendeesData[el_index].status}"/>
+ </t>
+ </t>
+
+ <div t-name="calendar.RecurrentEventUpdate">
+ <div class="form-check o_radio_item">
+ <input name="recurrence-update" type="radio" class="form-check-input o_radio_input" checked="true" value="self_only" id="self_only"/>
+ <label class="form-check-label o_form_label" for="self_only">This event</label>
+ </div>
+
+ <div class="form-check o_radio_item">
+ <input name="recurrence-update" type="radio" class="form-check-input o_radio_input" value="future_events" id="future_events"/>
+ <label class="form-check-label o_form_label" for="future_events">This and following events</label>
+ </div>
+ </div>
+
+ <t t-extend="mail.systray.ActivityMenu.Previews">
+ <t t-jquery="div.o_preview_title" t-operation="after">
+ <div t-if="activity and activity.type == 'meeting'">
+ <t t-set="is_next_meeting" t-value="true"/>
+ <t t-foreach="activity.meetings" t-as="meeting">
+ <div>
+ <span t-att-class="!meeting.allday and is_next_meeting ? 'o_meeting_filter o_meeting_bold' : 'o_meeting_filter'" t-att-data-res_model="activity.model" t-att-data-res_id="meeting.id" t-att-data-model_name="activity.name" t-att-title="meeting.name">
+ <span><t t-esc="meeting.name"/></span>
+ </span>
+ <span t-if="meeting.start" class="float-right">
+ <t t-if="meeting.allday">All Day</t>
+ <t t-else=''>
+ <t t-set="is_next_meeting" t-value="false"/>
+ <t t-esc="moment(meeting.start).local().format(Time.strftime_to_moment_format(_t.database.parameters.time_format))"/>
+ </t>
+ </span>
+ </div>
+ </t>
+ </div>
+ </t>
+ </t>
+
+ <t t-name="Calendar.attendee.status.popover" t-extend="CalendarView.event.popover">
+ <t t-jquery=".o_cw_popover_delete" t-operation="after">
+ <div t-if="widget.displayAttendeeAnswerChoice()" class="btn-group o-calendar-attendee-status ml-2">
+ <a href="#" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ <i t-attf-class="fa fa-circle o-calendar-attendee-status-icon #{widget.selectedStatusInfo.color}"/> <span class="o-calendar-attendee-status-text" t-esc="widget.selectedStatusInfo.text"></span>
+ </a>
+ <div class="dropdown-menu overflow-hidden">
+ <a class="dropdown-item" href="#" data-action="accepted"><i class="fa fa-circle text-success"/> Accept</a>
+ <a class="dropdown-item" href="#" data-action="declined"><i class="fa fa-circle text-danger"/> Decline</a>
+ <a class="dropdown-item" href="#" data-action="tentative"><i class="fa fa-circle text-muted"/> Uncertain</a>
+ </div>
+ </div>
+ </t>
+ </t>
+
+</template>
diff --git a/addons/calendar/static/src/xml/notification_calendar.xml b/addons/calendar/static/src/xml/notification_calendar.xml
new file mode 100644
index 00000000..3c51293f
--- /dev/null
+++ b/addons/calendar/static/src/xml/notification_calendar.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<template>
+
+<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="after">
+ <div class="mt-2">
+ <button type="button" class="btn btn-primary link2showed oe_highlight oe_form oe_button"><span>OK</span></button>
+ <button type="button" class="btn btn-link link2event">Details</button>
+ <button type="button" class="btn btn-link link2recall">Snooze</button>
+ </div>
+ </t>
+</t>
+
+</template>