website_membership_signup_required: accept terms & conditions in signup form. Redirect to cart
This commit is contained in:
parent
07b0e546c4
commit
ba52c72b78
6 changed files with 151 additions and 22 deletions
|
|
@ -21,4 +21,20 @@
|
|||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="auth_signup_terms_checkbox" name="Auth Signup legal terms checkbox"
|
||||
inherit_id="auth_signup.signup">
|
||||
<xpath expr="//div[hasclass('oe_login_buttons')]" position="before">
|
||||
<div class="mb-3 field-accepted_terms">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" name="accepted_terms" id="accepted_terms"
|
||||
value="accepted" class="form-check-input"
|
||||
required="required"/>
|
||||
<label for="accepted_terms" class="form-check-label">
|
||||
I agree to the <a href="/terms" target="_blank">terms & conditions</a>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue