view MoinMoin/templates/recoverpass.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 3488b0e24ee8
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}

{% block content %}
<h1>{{ _("Recover Password") }}</h1>
{{ gen.form.open(form, method="post", action=url_for('frontend.recoverpass')) }}
  {{ forms.render_errors(form) }}
  <dl>
    {{ forms.render(form['username']) }}
    {{ forms.render(form['token']) }}
    {{ forms.render(form['password1']) }}
    {{ forms.render(form['password2']) }}
  </dl>
  {{ forms.render_submit(form) }}
{{ gen.form.close() }}
{% endblock %}