Dot-Notation for "_id"
[mediagoblin.git] / mediagoblin / templates / mediagoblin / test_submit.html
index bf91d26b5ce656ec223598932be4b95cecee6d0e..190b9ac3232164aea0d482ab28b72a5af1bddc3c 100644 (file)
@@ -1,17 +1,32 @@
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011 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"
           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" /></td>
+         {{ csrf_token }}
         </tr>
       </table>
     </form>