view MoinMoin/templates/lostpass.html @ 1988:490c13d072f2

remove Submit widget The Submit widget was a mistake. The buttons carry no user input, and making it part of the form screws up POST form handling. Instead of being a widget, the submit button has its label kept in the class member submit_label of the Form, and is rendered by a new macro forms.render_submit.
author Cheer Xiao <xiaqqaix@gmail.com>
date Tue, 12 Feb 2013 10:28:18 +0800
parents 100197cb69ab
children 31628ac3ec21
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}

{% block content %}
<h1>{{ _("Lost Password") }}</h1>
<div class="moin-form">
{{ _("Please note that you only need to fill out one form field.") }}
{{ gen.form.open(form, method="post", action=url_for('frontend.lostpass')) }}
  {{ forms.render_errors(form) }}
  <dl>
    {{ forms.render(form['username']) }}
    {{ forms.render(form['email']) }}
  </dl>
  {{ forms.render_submit(form) }}
{{ gen.form.close() }}
</div>
{% endblock %}