X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/da9dc9c1a060be8de3c13fa308a047b4b57eaaeb..refs/heads/wtforms:/floof/templates/art/new.mako diff --git a/floof/templates/art/new.mako b/floof/templates/art/new.mako index 97cac9e..4204700 100644 --- a/floof/templates/art/new.mako +++ b/floof/templates/art/new.mako @@ -3,8 +3,31 @@
Now: Upload a file. Later: Supply a link? Not exclusive to uploading.
+## Todo: write some macros to make outputting form fields easier. + ${h.form(h.url('create_art'), multipart=True)} -Artist: ${h.text('artist')} -${h.file('file')} + +${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)"> +