X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/5a8f3bd86e5fbcdd1ae077b15c17a66de14c091e..d2cfab09f98980d5c1d433a9e75eb65e0b13b0aa:/floof/templates/art/new.mako diff --git a/floof/templates/art/new.mako b/floof/templates/art/new.mako index 97cac9e..0adc916 100644 --- a/floof/templates/art/new.mako +++ b/floof/templates/art/new.mako @@ -1,10 +1,42 @@ <%inherit file="/base.mako" />

Add New Art

-

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

- ${h.form(h.url('create_art'), multipart=True)} -Artist: ${h.text('artist')} -${h.file('file')} + +##<<<<<<< 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: + + %endif + + + +<%def name="normal_field(field)"> + ${field.label()|n} + ${field()|n} + ${field_errors(field.errors)} + + +<%def name="checkbox_field(field)"> + ${field()|n} ${field.label()|n} + ${field_errors(field.errors)} + \ No newline at end of file