addons-cm/website_membership_signup_required/views/auth_signup_templates.xml
GitHub Copilot fbd43bb459
Some checks failed
CI / lint (pull_request) Successful in 33s
CI / test (pull_request) Failing after 9m29s
CI / review (pull_request) Has been skipped
[REF] all: pass pre-commit on the whole repo
Needed for the lint job of the CI to go green. Mostly automatic hook
fixes (black, isort, prettier, pyupgrade, autoflake, whitespace). By hand:

- flake8: two unused imports, an ambiguous variable name `l`.
- pylint-odoo mandatory: manifest keys equal to their default value
  (installable, application, data, external_dependencies).
- end-of-file-fixer skips *.patch too, like trailing-whitespace: the
  upstream patches stay as git format-patch wrote them.

No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 14:34:58 +02:00

40 lines
2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="auth_signup_fields_firstname_lastname" name="Auth Signup fields (firstname / lastname)" inherit_id="auth_signup.fields">
<xpath expr="//div[hasclass('field-name')]" position="replace">
<div class="mb-3 field-firstname">
<label for="firstname">First name</label>
<input type="text" name="firstname" t-att-value="firstname" id="firstname"
class="form-control form-control-sm" placeholder="e.g. John"
required="required"
t-att-readonly="'readonly' if only_passwords else None"
t-att-autofocus="'autofocus' if login and not only_passwords else None"/>
</div>
<div class="mb-3 field-lastname">
<label for="lastname">Last name</label>
<input type="text" name="lastname" t-att-value="lastname" id="lastname"
class="form-control form-control-sm" placeholder="e.g. Doe"
required="required"
t-att-readonly="'readonly' if only_passwords else None"/>
</div>
</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 &amp; conditions</a>
</label>
</div>
</div>
</xpath>
</template>
</odoo>