Commit 98dd1123 authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_web_renderjs_ui: Include facebook login button

parent 6f517adb
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
portal context/getPortalObject; portal context/getPortalObject;
available_oauth_login_list python: portal.ERP5Site_getAvailableOAuthLoginList(); available_oauth_login_list python: portal.ERP5Site_getAvailableOAuthLoginList();
enable_google_login python: 'google' in available_oauth_login_list; 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; enable_openidconnect_login python: 'openidconnect' in available_oauth_login_list;
"> ">
<head> <head>
...@@ -75,6 +76,15 @@ ...@@ -75,6 +76,15 @@
</a> </a>
</div> </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"
>
<img alt="Login with Facebook" src="facebook_login_button.png">
</a>
</div>
<div class="dialog_button_container" tal:condition="enable_openidconnect_login" <div class="dialog_button_container" tal:condition="enable_openidconnect_login"
tal:define="current_url python: context.getWebSiteValue().absolute_url()"> tal:define="current_url python: context.getWebSiteValue().absolute_url()">
<a tal:attributes="href string:${current_url}/ERP5Site_redirectToOpenIdLoginPage" <a tal:attributes="href string:${current_url}/ERP5Site_redirectToOpenIdLoginPage"
......
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