view MoinMoin/templates/rename.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 5acaea38f1a2
children e615e3bbe48d
line wrap: on
line source
{% import "forms.html" as forms %}
{% extends theme("show.html") %}

{% set title = _("Rename '%(item_name)s'", item_name=item.name) %}

{% block content %}
<h1>{{ title }}</h1>
<div class="moin-form">
{{ gen.form.open(form, method="post", action=url_for('frontend.rename_item', item_name=item.name)) }}
  {{ forms.render_errors(form) }}
  <dl>
    {{ forms.render(form['target']) }}
    {{ forms.render(form['comment']) }}
    {{ forms.render_textcha(gen, form) }}
  </dl>
  {{ forms.render_submit(form) }}
{{ gen.form.close() }}
</div>
{% endblock %}