diff --git a/views/auth_signup_login_templates.xml b/views/auth_signup_login_templates.xml index c29b9868005e1fe96e8af6f2d6234c834cffb6ed..3666f39650942e0815db2cd7616580bf3024c893 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>