Commit 50215b31 authored by Rafael Monnerat's avatar Rafael Monnerat

Drop zocial update login form

See merge request nexedi/slapos.core!380
parents 0efe833e cf83819e
a.create_new_account {
padding: 6pt;
margin-top: 10pt;
margin-right: 12pt;
background-color: #FF6600;
color: #FFFFFF;
border-radius: 0.325em;
border-width: 1px;
border-style: solid;
border-color: #FF6600;
min-width: 8em;
text-decoration: none;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
display: inline-block
}
a.create_new_account:hover,
a.create_new_account:focus {
background-color: #ff8533;
}
<html>
<html tal:define="form_action string:WebSite_login;
absolute_url context/absolute_url;
portal context/getPortalObject;
available_oauth_login_list python: portal.ERP5Site_getAvailableOAuthLoginList();
enable_google_login python: 'google' in available_oauth_login_list;
enable_facebook_login python: 'facebook' in available_oauth_login_list;
enable_openidconnect_login python: 'openidconnect' in available_oauth_login_list;
">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title tal:content="python: here.getPortalObject().getTitle()"></title>
<title tal:content="portal/getTitle"></title>
<link rel="stylesheet" href="gadget_erp5_nojqm.css">
<link rel="stylesheet" href="zocial.min.css">
<link rel="stylesheet" href="gadget_slapos_login_page.css">
</head>
<body tal:define="form_action string:WebSite_login;
portal here/getPortalObject">
<div data-role='page'>
<body>
<div data-gadget-scope='header'>
<div class="ui-header">
<h1><span i18n:domain="ui" i18n:translate="">Connect</span></h1>
<h1><span i18n:domain="ui" i18n:translate="">Log in</span></h1>
</div>
</div>
......@@ -25,80 +30,85 @@
</div>
</div>
<div role="main" class="ui-container gadget-content">
<div data-role="page">
<div class="gadget-content">
<article>
<div class="ui-field-contain">
<section>
<span tal:replace="structure here/WebSection_getLoginWarningMessage"></span>
</section>
</div>
<div class="ui-field-contain">
<section>
<tal:block tal:condition="exists: request/portal_status_message">
<span tal:attributes="data-i18n request/portal_status_message"><span tal:content="request/portal_status_message"></span></span>
</tal:block>
</section>
<div class="visible" data-gadget-scope="notification" tal:condition="exists: request/portal_status_message">
<button type="submit" class="error" tal:attributes="data-i18n request/portal_status_message"><span tal:content="request/portal_status_message"></span></button>
</div>
</section>
<section tal:condition="not: portal/portal_membership/isAnonymousUser">
<p i18n:domain="ui" i18n:translate="" >It seems you're already authenticated.</p>
<p><a tal:condition="exists: request/came_from"
tal:attributes="href request/came_from" >Go back</a></p>
</section>
<section tal:condition="portal/portal_membership/isAnonymousUser">
<form method="post" tal:attributes="action python: '%s/' % context.absolute_url()">
<section class="ui-content-header-plain">
<h3 class="ui-content-title ui-body-c">
<span class="ui-icon ui-icon-custom ui-icon-sign-in"></span>
<tal:block i18n:domain="ui" i18n:translate="">Log in</tal:block>
</h3>
</section>
<form method="post" tal:attributes="action python: '%s/' % absolute_url" class="field_container">
<div>
<div>
<div class="ui-field-contain">
<label i18n:domain="ui" i18n:translate="" >Login</label>
<label i18n:domain="ui" i18n:translate="" >Username</label>
<div><input autofocus type="text" name="__ac_name" value="" required=""></div>
</div><br/>
<div class="ui-field-contain">
<label i18n:domain="ui" i18n:translate="" >Password</label>
<div><input type="password" name="__ac_password" value="" required=""></div>
</div><br/>
<div class="ui-field-contain">
<label></label>
<div tal:define="absolute_url python:context.absolute_url()">
<a i18n:domain="ui" i18n:translate="" tal:attributes="href python: '%s/WebSite_viewRecoverAccount?came_from=%s' % (absolute_url, absolute_url)">I forgot my password!</a>
</div>
</div><br/>
<div class="ui-field-contain">
<label></label>
<div><input type="submit" value='Login' i18n:attributes="value" i18n:domain="ui" tal:attributes="name python: '%s:method' % (form_action, )"/></div>
</div>
<br/>
<div class="ui-field-contain">
<label></label>
<div><a tal:attributes="href string:join_form"
i18n:translate="" i18n:domain="ui" class="zocial secondary"> Create New Account </a>
<label i18n:domain="ui" i18n:translate="" >Password</label>
<div><input type="password" name="__ac_password" value="" autocomplete="off" /></div>
</div>
<div class="dialog_button_container">
<input type="submit" value="Login" i18n:attributes="value" i18n:domain="ui" tal:attributes="name python: '%s:method' % (form_action, )"/>
<a i18n:domain="ui" i18n:translate="" tal:attributes="href python: '%s/WebSite_viewRecoverAccount?came_from=%s' % (absolute_url, absolute_url)">I forgot my password!</a>
</div>
<hr />
<tal:block tal:define="available_oauth_login_list python: context.getPortalObject().ERP5Site_getAvailableOAuthLoginList();">
<tal:block tal:condition="python: 'google' in available_oauth_login_list">
<div class="ui-field-contain">
<label></label>
<div>
<a tal:attributes="href string:${here/portal_url}/ERP5Site_redirectToGoogleLoginPage"
i18n:translate="" i18n:domain="ui" class="zocial google">Sign in or Login with Google</a>
<label i18n:domain="ui" i18n:translate="" >Or you can ...</label>
<div></div>
</div>
<div class="dialog_button_container">
<a tal:attributes="href string:join_form" i18n:translate="" i18n:domain="ui" class="create_new_account"> Create New Account </a>
</div>
<div class="dialog_button_container" tal:condition="enable_google_login"
tal:define="current_url python: context.getWebSiteValue().absolute_url()">
<a tal:attributes="href string:${current_url}/ERP5Site_redirectToGoogleLoginPage"
i18n:translate=""
i18n:domain="ui"
class="sign_in_with_google"
>
<img alt="Sign in with Google" src="google_login_button.png"/>
</a>
</div>
<div class="dialog_button_container" tal:condition="enable_facebook_login"
tal:define="current_url python: context.getWebSiteValue().absolute_url()">
<a tal:attributes="href string:${current_url}/ERP5Site_redirectToFacebookLoginPage"
i18n:translate=""
i18n:domain="ui"
class="sign_in_with_facebook"
>
<img alt="Login with Facebook" src="facebook_login_button.png">
</a>
</div>
<div class="dialog_button_container" tal:condition="enable_openidconnect_login"
tal:define="current_url python: context.getWebSiteValue().absolute_url()">
<a tal:attributes="href string:${current_url}/ERP5Site_redirectToOpenIdLoginPage"
i18n:translate=""
i18n:domain="ui"
class="sign_in_with_openid"
>
<img alt="Sign in with OpenID Connect" src="openid_login_button.png"/>
</a>
</div>
</div><br/>
</tal:block>
<tal:block tal:condition="python: 'facebook' in available_oauth_login_list">
<div class="ui-field-contain">
<label></label>
<div>
<a tal:attributes="href string:${here/portal_url}/ERP5Site_redirectToFacebookLoginPage"
i18n:translate="" i18n:domain="ui" class="zocial facebook">Sign in or Login with Facebook</a>
</div>
</div>
</tal:block>
</tal:block>
<input type="hidden" name="url" tal:attributes="value python: context.absolute_url()" />
<input type="hidden" name="url" tal:attributes="value absolute_url" />
<input tal:condition="exists: request/came_from"
type="hidden" name="came_from"
tal:attributes="value request/came_from" />
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>zocial.min.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>zocial.min.css</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -213,6 +213,7 @@ web_page_module/rjs_slapos_load_meta_schema_json
web_page_module/rjs_slapos_load_meta_schema_xml_in_json_json
web_page_module/rjs_slapos_load_meta_schema_xml_json
web_page_module/rjs_slapos_load_software_schema_json
web_page_module/rjs_gadget_slapos_login_page_css
web_page_module/rjs_tv4_min_js
web_page_module/rjs_vkbeautify_js
web_site_module/hostingjs
......
......@@ -195,6 +195,7 @@ web_page_module/rjs_gadget_slapos_invoice_state_html
web_page_module/rjs_gadget_slapos_invoice_state_js
web_page_module/rjs_gadget_slapos_label_listbox_field_html
web_page_module/rjs_gadget_slapos_label_listbox_field_js
web_page_module/rjs_gadget_slapos_login_page_css
web_page_module/rjs_gadget_slapos_network_status_html
web_page_module/rjs_gadget_slapos_network_status_js
web_page_module/rjs_gadget_slapos_panel_html
......
......@@ -88,12 +88,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td tal:content="python: '//span[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td tal:content="python: '//button[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td tal:content="python: '//span[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td tal:content="python: '//button[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td></td>
</tr>
<tr>
......
......@@ -31,12 +31,12 @@ have the correct "me" setting, so we just let the getSettingMe
function redirect us to the login page -->
<tr>
<td>waitForElementPresent</td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Login', lang=lang))"></td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Username', lang=lang))"></td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Login', lang=lang))"></td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Username', lang=lang))"></td>
<td></td>
</tr>
<tr>
......
......@@ -122,12 +122,12 @@
<tr>
<td>waitForElementPresent</td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Login', lang=lang))"></td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Username', lang=lang))"></td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Login', lang=lang))"></td>
<td tal:content="python: '//label[contains(text(), \'%s\')]' % (here.Base_translateString('Username', lang=lang))"></td>
<td></td>
</tr>
<tr>
......
......@@ -104,12 +104,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td tal:content="python: '//span[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td tal:content="python: '//button[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td tal:content="python: '//span[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td tal:content="python: '//button[@data-i18n=\'%s\']' % (here.Base_translateString('Login and/or password is incorrect.', lang=lang))"></td>
<td></td>
</tr>
</tbody>
......
......@@ -88,13 +88,13 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td tal:content="python: '//span[@data-i18n=\'%s\']' % (here.Base_translateString('An email has been sent to you.', lang=lang))"></td>
<td tal:content="python: '//button[@data-i18n=\'%s\']' % (here.Base_translateString('An email has been sent to you.', lang=lang))"></td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td tal:content="python: '//span[@data-i18n=\'%s\']' % (here.Base_translateString('An email has been sent to you.', lang=lang))"></td>
<td tal:content="python: '//button[@data-i18n=\'%s\']' % (here.Base_translateString('An email has been sent to you.', lang=lang))"></td>
<td></td>
</tr>
......@@ -169,13 +169,13 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//span[@data-i18n="Password changed."]</td>
<td>//button[@data-i18n="Password changed."]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[@data-i18n="Password changed."]</td>
<td>//button[@data-i18n="Password changed."]</td>
<td></td>
</tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment