%inherit file="/base.mako" />
Add New Art
${h.form(h.url('create_art'), multipart=True)}
##<<<<<<< HEAD
##
## ${normal_field(c.form.by)}
## ${checkbox_field(c.form.by_me)}
##
##
##${normal_field(c.form.file)}
##=======
## Todo: write some macros to make outputting form fields easier.
${normal_field(c.form.file)}
##>>>>>>> origin/master
${h.submit(None, 'Upload!')}
${h.end_form()}
<%def name="field_errors(errors)">
%if errors:
%for error in errors:
- ${error}
%endfor
%endif
%def>
<%def name="normal_field(field)">
${field.label()|n}
${field()|n}
${field_errors(field.errors)}
%def>
<%def name="checkbox_field(field)">
${field()|n} ${field.label()|n}
${field_errors(field.errors)}
%def>