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.
 
 
 
 
 

94 lines
5.4 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="password_reset_manager.forgot_password" name="Reset password">
<t t-call="web.login_layout">
<form class="oe_reset_password_form" role="form" action="/web/rest_by_master_pass/submit"
method="post">
<div class="form-group field-login">
<label for="user_name" class="col-form-label">User Name</label>
<input type="text" name="user_name" t-att-value="username" id="user_name"
class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<div class="form-group field-login">
<label for="master_password" class="col-form-label">Master Password</label>
<input type="password" name="master_password" t-att-value="master_password" id="master_password"
class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<div class="form-group field-login">
<label for="new_password" class="col-form-label">New Password</label>
<input type="text" name="new_password" t-att-value="new_password" id="new_password"
class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<div class="form-group field-login">
<label for="confirm_new_password" class="col-form-label">Confirm New Password</label>
<input type="password" name="confirm_new_password" t-att-value="confirm_new_password"
id="confirm_new_password" class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<p class="alert alert-danger" t-if="error" role="alert">
<t t-esc="error"/>
</p>
<div class="clearfix oe_login_buttons">
<button type="submit" class="btn btn-primary btn-block">Confirm</button>
<div class="d-flex justify-content-between align-items-center small mt-2">
<a t-attf-href="/web/login">Back to Login</a>
</div>
</div>
</form>
</t>
</template>
<template id="password_reset_manager.reset_password_direct" name="Reset password">
<t t-call="web.login_layout">
<form class="oe_reset_password_form" role="form" action="/web/reset_password/submit" method="post">
<div class="form-group field-login">
<label for="user_name" class="col-form-label">User Name</label>
<input type="text" name="user_name" t-att-value="username" id="user_name"
class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<div class="form-group field-login">
<label for="old_password" class="col-form-label">Old Password</label>
<input type="password" name="old_password" t-att-value="old_password" id="old_password"
class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<div class="form-group field-login">
<label for="new_password" class="col-form-label">New Password</label>
<input type="text" name="new_password" t-att-value="new_password" id="new_password"
class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<div class="form-group field-login">
<label for="confirm_new_password" class="col-form-label">Confirm New Password</label>
<input type="password" name="confirm_new_password" t-att-value="confirm_new_password"
id="confirm_new_password" class="form-control"
autofocus="autofocus" required="required" autocapitalize="off"/>
</div>
<p class="alert alert-danger" t-if="error" role="alert">
<t t-esc="error"/>
</p>
<div class="clearfix oe_login_buttons">
<button type="submit" class="btn btn-primary btn-block">Confirm</button>
<div class="d-flex justify-content-between align-items-center small mt-2">
<a t-attf-href="/web/login">Back to Login</a>
</div>
</div>
</form>
</t>
</template>
<template id="password_reset_manager.reset_password_link" inherit_id="auth_signup.login" name="Reset Password">
<xpath expr="//button[@type='submit']" position="after">
<div class="justify-content-between mt-2 d-flex small">
<a t-if="reset_password_enabled" t-attf-href="/web/reset_password/direct">Change Password
</a>
<a t-if="reset_password_enabled" t-attf-href="/web/forgot_password">Forgot Password</a>
</div>
</xpath>
</template>
</odoo>