[FIX] website_slides: fix template for 'Join This Course' button
Before this commit: Clicking on the 'Join This Course' button without login triggers an error. Reason: The 'slide.course.join.popupContent' template contains multiple root nodes. For correct template rendering text and anchor tags are placed inside div tags. After this commit: Correct popup content renders when clicking on the 'Join This Course' button, without login. Task-3559181 closes odoo/odoo#143280 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -13,18 +13,18 @@
|
||||
</t>
|
||||
|
||||
<t t-name="slide.course.join.popupContent">
|
||||
<t t-if="widget.invitePreview">
|
||||
<div t-if="widget.invitePreview">
|
||||
Please <a t-attf-href="/slides/#{channelId}/identify?invite_partner_id=#{widget.invitePartnerId}&invite_hash=#{widget.inviteHash}">
|
||||
<t t-if="widget.isPartnerWithoutUser">create an account</t><t t-else="">login</t>
|
||||
</a> to join this course
|
||||
</t>
|
||||
<t t-else="">
|
||||
</div>
|
||||
<div t-else="">
|
||||
<t t-if="errorSignupAllowed">
|
||||
Please <a t-attf-href="/web/login?redirect=#{courseUrl}">login</a> or <a t-attf-href="/web/signup?redirect=#{courseUrl}">create an account</a> to join this course
|
||||
</t>
|
||||
<t t-else="">
|
||||
Please <a t-attf-href="/web/login?redirect=#{courseUrl}">login</a> to join this course
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user