<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>_bind_names</string> </key>
            <value>
              <object>
                <klass>
                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>_asgns</string> </key>
                        <value>
                          <dictionary>
                            <item>
                                <key> <string>name_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_local_properties</string> </key>
            <value>
              <tuple/>
            </value>
        </item>
        <item>
            <key> <string>_text</string> </key>
            <value> <unicode encoding="cdata"><![CDATA[

<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
           xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
  <tal:block tal:define="form_action string:logged_in;\n
             global form_id string:login_form;\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:fill-slot="main">\n
        <div class="content login">\n
          <tal:block tal:condition="python: request.get(\'came_from\', None) is None">\n
            <h1 i18n:translate="" i18n:domain="ui">Log in</h1>\n
          </tal:block>\n
          <tal:block tal:condition="python: request.get(\'came_from\', None) is not None">\n
            <h1 i18n:translate="" i18n:domain="ui">Please login before continue.</h1>\n
          </tal:block>\n
          <tal:block tal:condition="python: request.get(\'came_from\', None) is not None">\n
            <tal:block tal:define="dummy python: request.RESPONSE.setCookie(\'redirect_after_login\', request.get(\'came_from\'), path=\'/\')"></tal:block>\n
          </tal:block>\n
          <fieldset>\n
            <script src="https://browserid.org/include.js" type="text/javascript"></script>  \n
            <div class="field nolabel validate widthAuto forgotten_password center"><br/><br/>\n
               If you have Google or Facebook accounts feel free to use any of them to signup<br/><br/>\n
               <a class="zocial facebook" href="./login_with_facebook">Signup with Facebook</a> or \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
            </div>\n
<browserid id="browser_id_login" tal:attributes=\'value python: here.getWebSiteValue().login_with_browser_id.absolute_url()\'/>\n
<script type="text/javascript">\n
$(\'#browserid\').click(function() {\n
    navigator.id.get(gotAssertion);\n
    return false;\n
  });\n
\n
function post_to_url(path, params, method) {\n
    method = method || "post"; // Set method to post by default, if not specified.\n
\n
    // The rest of this code assumes you are not using a library.\n
    // It can be made less wordy if you use one.\n
    var form = document.createElement("form");\n
    form.setAttribute("method", method);\n
    form.setAttribute("action", path);\n
\n
    for(var key in params) {\n
        if(params.hasOwnProperty(key)) {\n
            var hiddenField = document.createElement("input");\n
            hiddenField.setAttribute("type", "hidden");\n
            hiddenField.setAttribute("name", key);\n
            hiddenField.setAttribute("value", params[key]);\n
\n
            form.appendChild(hiddenField);\n
         }\n
    }\n
\n
    document.body.appendChild(form);\n
    form.submit();\n
}\n
\n
function gotAssertion(assertion) {  \n
  // got an assertion, now send it up to the server for verification  \n
  if (assertion !== null) {  \n
    post_to_url($(\'#browser_id_login\').attr(\'value\'), {\'assertion\': assertion})\n
  } \n
}  \n
</script>\n
      </tal:block>\n
    </tal:block>\n
  </tal:block>\n
</tal:block>

]]></unicode> </value>
        </item>
        <item>
            <key> <string>content_type</string> </key>
            <value> <string>text/html</string> </value>
        </item>
        <item>
            <key> <string>expand</string> </key>
            <value> <int>0</int> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>login_form</string> </value>
        </item>
        <item>
            <key> <string>output_encoding</string> </key>
            <value> <string>utf-8</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <unicode></unicode> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
