Commit b57a0c16 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* implement login widget.

* more precise CSS selector to display labels but hide erp5 field labels.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27032 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent be9c3562
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</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>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block replace="nothing">\n
<!--\n
This widget displays the login form.\n
\n
TODO:\n
- implement \'Password forgottn?\' feature.\n
- why \'new-line\' between checkbox and \'Remember me\'?\n
-->\n
</tal:block>\n
\n
<div class="loginform">\n
<p><input type="hidden" name="rememberme" value="0" /></p>\n
<fieldset>\n
<p><label for="name" class="top" i18n:translate="" i18n:domain="ui">User:</label><br />\n
<input type="text" name="__ac_name" id="name" class="field" value=""\n
tal:attributes="value python: request.get(\'__ac_name\') or \'\'" /></p>\n
<p><label for="password" class="top" i18n:translate="" i18n:domain="ui">Password:</label><br />\n
<input type="password" name="__ac_password" id="password" class="field" value="" /></p>\n
<p><input type="checkbox" name="__ac_persistent" id="checkbox" class="cb_remember" value="1" checked="checked" /><label for="cb_remember" class="right" i18n:translate="" i18n:domain="ui">Remember me</label></p>\n
<p><input type="submit" name="WebSite_login:method" class="button" value="LOGIN" i18n:attributes="value" i18n:domain="ui" /></p>\n
<!-- <p><a href="#" id="forgotpsswd">Password forgotten?</a></p> -->\n
</fieldset>\n
</div>\n
]]></string> </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>WebSection_viewLoginWidget</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -78,7 +78,7 @@
<string>subcontent subcontent-box linkbox (4-06. Link)</string>
<string>subcontent subcontent-box tablebox (4-07. Table)</string>
<string>subcontent subcontent-box contactbox (4-08. Contact)</string>
<string>subcontent subcontent-box loginbox(4-09. Login)</string>
<string>subcontent subcontent-box loginbox (Login)</string>
<string>subcontent subcontent-box searchbox (4-10. Search)</string>
<string>subcontent subcontent-box videobox (4-11. Video)</string>
<string>subcontent subcontent-box audiobox (4-12. Audio)</string>
......@@ -218,7 +218,7 @@
</value>
</item>
<item>
<key> <string>subcontent subcontent-box loginbox(4-09. Login)</string> </key>
<key> <string>subcontent subcontent-box loginbox (Login)</string> </key>
<value>
<list>
<string>login_box</string>
......
......@@ -13,8 +13,8 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>title</string>
<string>default</string>
<string>title</string>
</list>
</value>
</item>
......@@ -56,6 +56,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -68,6 +74,10 @@
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -77,24 +87,7 @@
<dictionary>
<item>
<key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[
<div class="loginform">\n
<form method="post" action="index.html">\n
<p><input type="hidden" name="rememberme" value="0" /></p>\n
<fieldset>\n
<p><label for="username_4" class="top">User:</label><br />\n
<input type="text" name="username_4" id="username_4" tabindex="1" class="field" value="" /></p>\n
<p><label for="password_4" class="top">Password:</label><br />\n
<input type="password" name="password_4" id="password_4" tabindex="2" class="field" value="" /></p>\n
<p><input type="checkbox" name="checkbox_4" id="checkbox_4" class="checkbox" tabindex="3" size="1" value="" /><label for="checkbox_4" class="right">Remember me</label></p>\n
<p><input type="submit" name="cmdweblogin" class="button" value="LOGIN" /></p>\n
<p><a href="#" id="forgotpsswd_4">Password forgotten?</a></p>\n
</fieldset>\n
</form>\n
</div>
]]></string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
......@@ -110,7 +103,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>subsection_box</string> </value>
<value> <string>login_box</string> </value>
</item>
</dictionary>
</value>
......@@ -118,4 +111,20 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/WebSection_viewLoginWidget</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -294,29 +294,7 @@ div.subcontent-box fieldset.widget legend {\n
display: none; /* Do not display legends on the right side */\n
}\n
\n
div.subcontent-box.sidemenu1 fieldset.widget div.field label,\n
div.subcontent-box.sidemenu2 fieldset.widget div.field label,\n
div.subcontent-box.sidemenu3 fieldset.widget div.field label,\n
div.subcontent-box.headbox1 fieldset.widget div.field label,\n
div.subcontent-box.headbox2 fieldset.widget div.field label,\n
div.subcontent-box.imagebox fieldset.widget div.field label,\n
div.subcontent-box.headbox1noicon fieldset.widget div.field label,\n
div.subcontent-box.linkbox fieldset.widget div.field label,\n
div.subcontent-box.tablebox fieldset.widget div.field label,\n
div.subcontent-box.contactbox fieldset.widget div.field label,\n
div.subcontent-box.loginbox fieldset.widget div.field label,\n
div.subcontent-box.searchbox fieldset.widget div.field label,\n
div.subcontent-box.videobox fieldset.widget div.field label,\n
div.subcontent-box.audiobox fieldset.widget div.field label,\n
div.subcontent-box.webtemplatebox fieldset.widget div.field label,\n
div.subcontent-box.documentbox fieldset.widget div.field label,\n
div.subcontent-box.blogbox fieldset.widget div.field label,\n
div.subcontent-box.forumbox fieldset.widget div.field label,\n
div.header-top fieldset.widget div.field label,\n
div.header-bottom fieldset.widget div.field label,\n
div.navbar-left fieldset.widget div.field label,\n
div.headline fieldset.widget div.field label,\n
div.footer fieldset.widget div.field label {\n
fieldset.widget > div.field > label {\n
display: none; /* Do not display labels on the right side */\n
}\n
\n
......
89
\ No newline at end of file
90
\ 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