Commit b006b7b8 authored by Romain Courteaud's avatar Romain Courteaud

Make the login message configurable.

parent f99c6d3b
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block tal:define="form_action string:logged_in;\n <tal:block tal:define="form_action string:logged_in;\n
global form_id string:login_form;\n global form_id string:login_form;\n
login_message_document_list python: here.getWebSiteValue().getDocumentValueList(reference=\'slapos-login.message\');\n
js_list python: [\'%s/login_form.js\' % (here.portal_url(), ), \'%s/erp5.js\' % (here.portal_url(), )]">\n js_list python: [\'%s/login_form.js\' % (here.portal_url(), ), \'%s/erp5.js\' % (here.portal_url(), )]">\n
<tal:block metal:use-macro="here/main_template/macros/master">\n <tal:block metal:use-macro="here/main_template/macros/master">\n
<tal:block metal:fill-slot="main">\n <tal:block metal:fill-slot="main">\n
...@@ -68,10 +69,11 @@ ...@@ -68,10 +69,11 @@
<a class="zocial google" href="./login_with_google">Signup with Google</a><br/><br/>\n <a class="zocial google" href="./login_with_google">Signup with Google</a><br/><br/>\n
You are not connected with social network? So then use BrowserID <a href="#" id="browserid" title="Sign-in with BrowserID"> <img src="./vifib_image/browser_id_logo.png" alt="Sign-in with BrowserID" title="Sign-in with BrowserID"></a>\n You are not connected with social network? So then use BrowserID <a href="#" id="browserid" title="Sign-in with BrowserID"> <img src="./vifib_image/browser_id_logo.png" alt="Sign-in with BrowserID" title="Sign-in with BrowserID"></a>\n
</div>\n </div>\n
<div class="field nolabel widthAuto center" style="background: white; color: #FF0066;; margin-top: 2em;">\n <tal:block tal:condition="python: login_message_document_list">\n
By clicking on one of the signup button, you agree that you are subscribing to a payed service.<br/>\n <div tal:content="structure python: login_message_document_list[0].convert(format=\'html\')[1]" class="field nolabel widthAuto center" style="background: white; color: #FF0066;; margin-top: 2em; text-align: left">\n
Each software service will be invoiced to you at the end of the month.\n
</div>\n </div>\n
</tal:block>\n
\n
<browserid id="browser_id_login" tal:attributes=\'value python: here.getWebSiteValue().login_with_browser_id.absolute_url()\'/>\n <browserid id="browser_id_login" tal:attributes=\'value python: here.getWebSiteValue().login_with_browser_id.absolute_url()\'/>\n
<script type="text/javascript">\n <script type="text/javascript">\n
$(\'#browserid\').click(function() {\n $(\'#browserid\').click(function() {\n
......
45 46
\ No newline at end of file \ No newline at end of file
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