This commit is contained in:
ljmwkx
2024-06-18 21:25:29 +08:00
parent e553a13946
commit b59cc520f5
5 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -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
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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) &gt; 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()"/>
+2 -2
View File
@@ -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) &gt; 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()"/>