Skip to content
Snippets Groups Projects
Commit a4a8a3ec authored by Ravish Murari's avatar Ravish Murari Committed by Martin Trigaux
Browse files

[FIX] event: avoid double "Publish" button

The event.track view wa sextending the event.event view which was adding action buttons linked to the event.event object instead of the track.
This patch uses the general website view to avoid the confusion (and the risk of publishing an event instead a track).
parent 76cee517
No related branches found
No related tags found
No related merge requests found
......@@ -173,12 +173,25 @@
<template id="track_view">
<t t-call="website_event.layout">
<t t-call="website.layout">
<div id="wrap" class="js_event">
<div class="container">
<div class="row mt8">
<div class="col-sm-7" id="event_menu">
<ol class="breadcrumb mb0" id="event_menu" t-if="event.menu_id">
<t t-foreach="event.menu_id.child_id" t-as="submenu">
<t t-call="website.submenu"/>
</t>
</ol>
</div>
<t t-call="website.publish_management">
<t t-set="object" t-value="track"/>
<t t-set="publish_edit" t-value="True"/>
</t>
</div>
</div>
</div>
<div class="container">
<t t-call="website.publish_management">
<t t-set="object" t-value="track"/>
<t t-set="publish_edit" t-value="True"/>
</t>
<div class="clearfix"/>
<h2 t-field="track.name" class="text-center"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment