X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/bc1cccee5faefbcfe6e28ce8f49694cca47b85cb..dcf6146e9914ff3c166f242b72f04a8934d65148:/floof/templates/art/new.mako?ds=sidebyside diff --git a/floof/templates/art/new.mako b/floof/templates/art/new.mako index e2c00fb..4204700 100644 --- a/floof/templates/art/new.mako +++ b/floof/templates/art/new.mako @@ -3,7 +3,31 @@

Add New Art

Now: Upload a file. Later: Supply a link? Not exclusive to uploading.

-${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)"> +
+${field.label()|n} +${field()|n} +%if field.errors: + +%endif +
+