Commit 67565e8 1 parent 20ce86c commit 67565e8 Copy full SHA for 67565e8
File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 21
21
</template >
22
22
<template id =" auth_saml.login" inherit_id =" web.login" name =" Samlv2 Login buttons" >
23
23
<xpath expr =" //form" position =" before" >
24
- <t t-set =" form_small" t-value =" len(saml_providers) > 2" />
24
+ <t
25
+ t-set =" form_small"
26
+ t-value =" saml_providers and len(saml_providers) > 2 or False"
27
+ />
25
28
</xpath >
26
29
<xpath expr =" //div[hasclass('o_login_auth')]" position =" inside" >
27
30
<t t-call =" auth_saml.providers" />
Original file line number Diff line number Diff line change 5
5
<attribute name =" t-attf-action" >/auth_sms/code</attribute >
6
6
<attribute name =" onsubmit" />
7
7
</xpath >
8
+ <!-- Remove database selector. -->
9
+ <xpath expr =" //label[@for='db']/parent::div" position =" replace" />
8
10
<xpath expr =" //form" position =" inside" >
9
11
<input type =" hidden" name =" secret" t-att-value =" secret" />
10
12
<input type =" hidden" name =" user_login" t-att-value =" login" />
17
19
<xpath expr =" //label[@for='password']" position =" replace" >
18
20
<label for =" password" class =" control-label" >Code</label >
19
21
</xpath >
22
+ <xpath expr =" //input[@name='password']" position =" attributes" >
23
+ <attribute name =" placeholder" />
24
+ </xpath >
20
25
</template >
21
26
</odoo >
You can’t perform that action at this time.
0 commit comments