collection browsing: rename view/template user_collections -> collection_list
[mediagoblin.git] / mediagoblin / templates / mediagoblin / test_submit.html
index 0d2fd2589d59746dbcd2023076ccd0083ff1aec8..0771a0c7c69c2416c6c0a98beb3a0639b61930ef 100644 (file)
@@ -1,16 +1,32 @@
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011, 2012 MediaGoblin contributors.  See AUTHORS.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#}
+{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
+
 <html>
   <body>
-    <form action="{{ request.urlgen('test_submit') }}" method="POST">
+    <form action="{{ request.urlgen('test_submit') }}" method="POST"
+          enctype="multipart/form-data">
       <table>
-        {% for field in image_form %}
-          <tr>
-            <td>{{ field.label }}</td>
-            <td>{{ field }}</td>
-          </tr>
-        {% endfor %}
+        {{ wtforms_util.render_table(image_form) }}
         <tr>
           <td></td>
-          <td><input type="submit" value="submit" /></td>
+          <td><input type="submit" value="submit" class="button_form" /></td>
+         {{ csrf_token }}
         </tr>
       </table>
     </form>