view MoinMoin/templates/revert.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 e9d25b2c89a6
line wrap: on
line source
{% import "forms.html" as forms %}
{% extends theme("layout.html") %}
{% block content %}
<h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id) }}</h1>
<div class="moin-form">
{{ gen.form.open(form, method="post", action=url_for('frontend.revert_item', item_name=item.name, rev=rev_id)) }}
  {{ forms.render_errors(form) }}
  <dl>
    {{ forms.render(form['comment']) }}
    {{ forms.render_textcha(gen, form) }}
  </dl>
  {{ forms.render_submit(form) }}
{{ gen.form.close() }}
</div>
{% endblock %}