<h1>Add New Art</h1>
<p>Now: Upload a file. Later: Supply a link? Not exclusive to uploading.</p>
-${h.form(h.url_for(controller='art', action='upload'), multipart=True)}
-${h.file('file')}
+## Todo: write some macros to make outputting form fields easier.
+
+${h.form(h.url('create_art'), multipart=True)}
+
+${normal_field(c.form.by)}
+${normal_field(c.form.file)}
+
+
+##Artist: ${h.text('artist')}
+##${h.file('file')}
${h.submit(None, 'Upload!')}
${h.end_form()}
+
+
+
+<%def name="normal_field(field)">
+<div>
+${field.label()|n}
+${field()|n}
+%if field.errors:
+<ul class="errors">
+%for error in field.errors:
+<li>${error}
+%endfor
+</ul>
+%endif
+</div>
+</%def>