You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.3 KiB
32 lines
1.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--
|
|
Template to add a password hint field to the sign-up form.
|
|
It finds the conform password field and adds a new element after it.
|
|
The new element is a div with a label and input field for the password hint.
|
|
-->
|
|
<template id="password_hint_auth_signup_field" inherit_id="auth_signup.fields"
|
|
name="Password hint">
|
|
<xpath expr="//div[hasclass('field-confirm_password')]"
|
|
position="after">
|
|
<div class="mb-3 field-hint">
|
|
<label for="hint">Set Password Hint</label>
|
|
<input type="text" name="hint" id="hint"
|
|
class="form-control form-control-sm"
|
|
placeholder="something related to password"
|
|
/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
<!--
|
|
Template to add a password hint button to the login form.
|
|
It finds the submit button and adds a new element after it.
|
|
The new element is an anchor link to access the password hint.
|
|
-->
|
|
<template id="password_hint_web_login" inherit_id="web.login"
|
|
name="password hint button">
|
|
<xpath expr="//button[@type='submit']" position="after">
|
|
<a id="Password_login_hint" class="btn btn-link btn-sm">Password Hint</a>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|