Commit 340accd1 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: fix Login&Password Label not displayed bug in login view

parent 5b6f319a
...@@ -21,45 +21,46 @@ ...@@ -21,45 +21,46 @@
</div> </div>
</div> </div>
</div> </div>
<div data-role="page">
<div class="gadget-content">
<article>
<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="gadget-content"> <section>
<article> <form method="post" tal:attributes="action python: '%s/' % context.absolute_url()">
<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>
<section> <div class="ui-field-contain">
<form method="post" tal:attributes="action python: '%s/' % context.absolute_url()"> <label i18n:domain="ui" i18n:translate="" >Login</label>
<div><input autofocus type="text" name="__ac_name" value="" required=""></div>
<div class="ui-field-contain"> </div>
<label i18n:domain="ui" i18n:translate="" >Login</label> <div class="ui-field-contain">
<div><input autofocus type="text" name="__ac_name" value="" required=""></div> <label i18n:domain="ui" i18n:translate="" >Password</label>
</div> <div><input type="password" name="__ac_password" value="" required=""></div>
<div class="ui-field-contain"> </div>
<label i18n:domain="ui" i18n:translate="" >Password</label> <div class="ui-field-contain">
<div><input type="password" name="__ac_password" value="" required=""></div> <label></label>
</div> <div tal:define="absolute_url python:context.absolute_url()">
<div class="ui-field-contain"> <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>
<label></label> </div>
<div tal:define="absolute_url python:context.absolute_url()"> </div><br/>
<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 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> </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>
<input type="hidden" name="url" tal:attributes="value python: context.absolute_url()" /> <input type="hidden" name="url" tal:attributes="value python: context.absolute_url()" />
<input tal:condition="exists: request/came_from" <input tal:condition="exists: request/came_from"
type="hidden" name="came_from" type="hidden" name="came_from"
tal:attributes="value request/came_from" /> tal:attributes="value request/came_from" />
</form> </form>
</section> </section>
</article> </article>
</div>
</div> </div>
</body> </body>
</html> </html>
\ 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