From 51aa7794f669282b52492990a98c180bc2bf572b Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@le-filament.com> Date: Thu, 27 Feb 2025 10:52:17 +0100 Subject: [PATCH] review: high priority and fix input classes --- views/auth_signup_login_templates.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/views/auth_signup_login_templates.xml b/views/auth_signup_login_templates.xml index c29b986..3666f39 100644 --- a/views/auth_signup_login_templates.xml +++ b/views/auth_signup_login_templates.xml @@ -3,12 +3,13 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> - <template id="auth_signup_fields_inherit" inherit_id="auth_signup.fields"> + <!-- high priority because replacing name field --> + <template id="auth_signup_fields_inherit" inherit_id="auth_signup.fields" priority="200"> <!-- email field --> <!-- div with correct error class --> <xpath expr="//input[@id='login']/.." position="attributes"> - <attribute name="t-attf-class">mb-3 {{'o_has_error' if error_email else ''}}</attribute> + <attribute name="t-attf-class">mb-3 field-login {{'o_has_error' if error_email else ''}}</attribute> </xpath> <!-- input with correct type and error class--> <xpath expr="//input[@id='login']" position="attributes"> @@ -23,14 +24,14 @@ <div class="mb-3 field-firstname"> <label for="name">Prénom</label> <input type="text" name="firstname" t-att-value="firstname" id="firstname" - class="form-control form-control-sm" placeholder="par ex. Julie" + class="form-control" placeholder="par ex. Julie" required="required" t-att-readonly="'readonly' if only_passwords else None" /> </div> <div class="mb-3 field-lastname"> <label for="name">Nom</label> <input type="text" name="lastname" t-att-value="lastname" id="lastname" - class="form-control form-control-sm" placeholder="par ex. Nguyen" + class="form-control" placeholder="par ex. Nguyen" required="required" t-att-readonly="'readonly' if only_passwords else None"/> </div> </xpath> -- GitLab