<?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>