odoo-module-odoo_web_login/templates/webclient_templates.xml

50 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="login_layout" inherit_id="web.login_layout" name="Login Layout Inherit">
<xpath expr="//t[@t-set='body_classname']" position="replace">
<t t-set="body_classname" t-value="'body_login'"/>
</xpath>
<xpath expr="//t[@t-set='head']/link[last()]" position="inside">
<link rel="stylesheet" href="/odoo_web_login/static/src/css/web_login_style.css"/>
</xpath>
<xpath expr="//div[@class='oe_single_form_container modal-content']" position="before">
<div id="background-wrapper" t-attf-style="background-image: url('#{background_src}');"></div>
</xpath>
<xpath expr="//div[@class='oe_single_form_container modal-content']" position="attributes">
<attribute name="class">col-lg-3 col-md-4 col-sm-4 col-xs-11 o_database_list</attribute>
</xpath>
<xpath expr="//hr" position="replace" />
<xpath expr="//div[@class='oe_single_form_logo']/img" position="attributes">
<attribute name="class">company_logo</attribute>
</xpath>
</template>
<template id="login" inherit_id="web.login" name="Login Inherit">
<xpath expr="//label[@for='login']" position="replace" />
<xpath expr="//label[@for='password']" position="replace" />
<xpath expr="//input[@name='login']" position="attributes">
<attribute name="placeholder">Email ...</attribute>
<attribute name="autocomplete">off</attribute>
<attribute name="autocorrect">off</attribute>
</xpath>
<xpath expr="//input[@name='password']" position="attributes">
<attribute name="placeholder">Password ...</attribute>
</xpath>
</template>
<template id="inherit_web_dbselect" inherit_id="web.database_select" name="DB Select Inherit">
<xpath expr="//label[@for='db']" position="replace" />
</template>
</data>
</openerp>