diff 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 diff
--- a/MoinMoin/templates/modify_applet.html	Sun May 29 20:40:03 2011 +0200
+++ b/MoinMoin/templates/modify_applet.html	Sun May 29 22:53:38 2011 +0200
@@ -8,14 +8,7 @@
 {{ gen.input(form['rev'], type='hidden') }}
 {% block extra_form %}{% endblock %}
 {% block data_editor %}{% endblock %}
-    <dl>
-        <dt>
-            <label for="data_file">{{ _("Upload file:") }}</label>
-         </dt>
-         <dd>
-            <input type="file" id="data_file" name="data_file" />
-        </dd>
-    </dl>
+{{ 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 />