合并
This commit is contained in:
@@ -19,11 +19,11 @@ class YuThonLogin(OAuthLogin):
|
||||
style = param_obj.get_param('login_background.style')
|
||||
|
||||
if style == 'left' and response.qcontext['response_template'] == 'web.login':
|
||||
response.qcontext['response_template'] = 'yuthon_login.left_login_template'
|
||||
response.template = 'yuthon_login.left_login_template'
|
||||
response.qcontext['response_template'] = 'yuthon_tianhe.left_login_template'
|
||||
response.template = 'yuthon_tianhe.left_login_template'
|
||||
if style == 'right' and response.qcontext['response_template'] == 'web.login':
|
||||
response.qcontext['response_template'] = 'yuthon_login.right_login_template'
|
||||
response.template = 'yuthon_login.right_login_template'
|
||||
response.qcontext['response_template'] = 'yuthon_tianhe.right_login_template'
|
||||
response.template = 'yuthon_tianhe.right_login_template'
|
||||
|
||||
return response
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
max-width:100vw !important;
|
||||
min-width: 85vw !important;
|
||||
float: none;
|
||||
background-image: url(/yuthon_login/static/src/img/background.png);
|
||||
background-image: url(/yuthon_tianhe/static/src/img/background.png);
|
||||
-webkit-background-size: cover;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
background-size: cover;
|
||||
-webkit-filter: blur(0px);
|
||||
z-index: -1;
|
||||
background-image: url(/yuthon_login/static/src/img/background.png);
|
||||
background-image: url(/yuthon_tianhe/static/src/img/background.png);
|
||||
}
|
||||
.body_login {
|
||||
display: inline-block;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
</template>
|
||||
|
||||
<template id="left_login_template" name="Login">
|
||||
<t t-call="yuthon_login.left_login_layout">
|
||||
<t t-call="yuthon_tianhe.left_login_layout">
|
||||
<t t-set="form_small" t-value="True" t-if="len(providers) > 2"/>
|
||||
<form class="oe_login_form" role="form" t-attf-action="/web/login" method="post" onsubmit="this.action = '/web/login' + location.hash">
|
||||
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="yuthon_login.right_login_template" name="Login">
|
||||
<t t-call="yuthon_login.right_login_layout">
|
||||
<template id="yuthon_tianhe.right_login_template" name="Login">
|
||||
<t t-call="yuthon_tianhe.right_login_layout">
|
||||
<t t-set="form_small" t-value="True" t-if="len(providers) > 2"/>
|
||||
<form class="oe_login_form" role="form" t-attf-action="/web/login" method="post" onsubmit="this.action = '/web/login' + location.hash">
|
||||
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
|
||||
|
||||
Reference in New Issue
Block a user