Commit 2ab15c19 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Display recovery form labels

Followup of nexedi/erp5@340accd1
parent 4fa3a1b9
...@@ -22,28 +22,30 @@ ...@@ -22,28 +22,30 @@
</div> </div>
</div> </div>
<div class="gadget-content"> <div data-role="page">
<article> <div class="gadget-content">
<article>
<section> <section>
<form method="post" tal:attributes="action python: context.absolute_url()"> <form method="post" tal:attributes="action python: context.absolute_url()">
<div class="ui-field-contain"> <div class="ui-field-contain">
<label i18n:domain="ui" i18n:translate="">Login</label> <label i18n:domain="ui" i18n:translate="">Login</label>
<div><input autofocus type="text" name="user_login" value="" required=""></div> <div><input autofocus type="text" name="user_login" value="" required=""></div>
</div> </div>
<br/> <br/>
<div class="ui-field-contain"> <div class="ui-field-contain">
<label></label> <label></label>
<div><input type="submit" value="Validate" i18n:attributes="value" i18n:domain="ui" tal:attributes="name python: '%s:method' % (form_action, )"/></div> <div><input type="submit" value="Validate" i18n:attributes="value" i18n:domain="ui" tal:attributes="name python: '%s:method' % (form_action, )"/></div>
</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
...@@ -21,29 +21,31 @@ ...@@ -21,29 +21,31 @@
</div> </div>
</div> </div>
<div class="gadget-content"> <div data-role="page">
<article class="ui-content"> <div class="gadget-content">
<article class="ui-content">
<section> <section>
<form method="post" tal:attributes="action python: context.absolute_url()"> <form method="post" tal:attributes="action python: context.absolute_url()">
<div class="ui-field-contain"> <div class="ui-field-contain">
<label data-i18n="New Password">New Password<span></span></label> <label data-i18n="New Password">New Password<span></span></label>
<div><input autofocus name="password" type="password" value="" required=""></div> <div><input autofocus name="password" type="password" value="" required=""></div>
</div> </div>
<div class="ui-field-contain"> <div class="ui-field-contain">
<label data-i18n="Retype New Password">Retype New Password<span></span></label> <label data-i18n="Retype New Password">Retype New Password<span></span></label>
<div><input name="password_confirm" type="password" value="" required=""></div> <div><input name="password_confirm" type="password" value="" required=""></div>
</div> </div>
<div class="ui-field-contain"> <div class="ui-field-contain">
<label></label> <label></label>
<div><input type="submit" value="Validate" tal:attributes="name python: '%s:method' % (form_action, )"/></div> <div><input type="submit" value="Validate" tal:attributes="name python: '%s:method' % (form_action, )"/></div>
</div> </div>
<input type="hidden" name="came_from" tal:attributes="value python: context.absolute_url()" /> <input type="hidden" name="came_from" tal:attributes="value python: context.absolute_url()" />
<input type="hidden" name="password_key" tal:attributes="value python: request.get('reset_key') or ''" /> <input type="hidden" name="password_key" tal:attributes="value python: request.get('reset_key') or ''" />
</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