[MOV] website_event: reorganize some templates

Task ID-2169118
odoo/odoo#55967
odoo/enterprise#12438

X-original-commit: 23230cf75563a39b41c4f09b252890db5167c31c
This commit is contained in:
Thibault Delavallée
2020-08-17 16:29:50 +00:00
parent 3dfb3c1e74
commit d6bfd275bb
3 changed files with 36 additions and 0 deletions
+1
View File
@@ -16,6 +16,7 @@
'views/event_templates.xml',
'views/event_templates_misc_pages.xml',
'views/event_templates_registration.xml',
'views/website_templates.xml',
'views/event_views.xml',
'security/ir.model.access.csv',
'security/event_security.xml',
@@ -54,4 +54,18 @@
</t>
</template>
<template id="404" name="Event 404">
<t t-call="website.layout">
<div id="wrap">
<div class="oe_structure oe_empty">
<div class="container">
<h1 class="mt-4">Event not found!</h1>
<p>Sorry, the requested event is not available anymore.</p>
<p><a t-attf-href="/event">Return to the event list.</a></p>
</div>
</div>
</div>
</t>
</template>
</odoo>
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- User Navbar -->
<template id="user_navbar_inherit_website_event" inherit_id="website.user_navbar">
<xpath expr="//div[@id='o_new_content_menu_choices']//div[@name='module_website_event']" position="attributes">
<attribute name="name"/>
<attribute name="t-att-data-module-id"/>
<attribute name="t-att-data-module-shortdesc"/>
<attribute name="groups">event.group_event_manager</attribute>
</xpath>
</template>
<!-- User Navbar - Edit Options -->
<template id="event_edit_options" inherit_id="website.user_navbar" name="Edit Event Options">
<xpath expr="//li[@id='edit-page-menu']" position="after">
<t t-if="main_object._name == 'event.event'" t-set="action" t-value="'event.action_event_view'"/>
</xpath>
</template>
</odoo>