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

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

{% block content %}
{% if rev_id == None %}
    <h1>{{ title }}</h1>
    <div class="moin-form">
    {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name)) }}
      {{ forms.render_errors(form) }}
      <dl>
        {{ forms.render(form['comment']) }}
        {{ forms.render_textcha(gen, form) }}
      </dl>
      {{ forms.render_submit(form) }}
    {{ gen.form.close() }}
    </div>
{% else %}
    <h1>{{ _("DESTROY REVISION '%(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.destroy_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>
{% endif %}
{% endblock %}