view MoinMoin/templates/modify_applet.html @ 244:a11656ba1eab

modify views: use flatland also for the file upload form field
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 29 May 2011 22:53:38 +0200
parents e93157b8b0bd
children d90782ad8b24
line wrap: on
line source
{% import "forms.html" as forms %}
{% extends theme("layout.html") %}
{% block content %}
<h1>{{ _("Modifying %(item_name)s", item_name=item_name) }}</h1>
<div class="moin-form">
{{ gen.form.open(form, method='post', action='', enctype='multipart/form-data') }}
{{ forms.render_errors(form) }}
{{ gen.input(form['rev'], type='hidden') }}
{% block extra_form %}{% endblock %}
{% block data_editor %}{% endblock %}
{{ forms.render_field(gen, form['data_file'], 'file') }}
<pre>{{ help }}</pre>
{{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
<br />
{{ forms.render_errors(form['meta_text']) }}
{{ gen.form.close() }}
</div>
{% endblock %}