X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/dcf6146e9914ff3c166f242b72f04a8934d65148..c472ed30b5d4600a8ead8846ddbcbf3bb1b027d6:/floof/templates/art/new.mako
diff --git a/floof/templates/art/new.mako b/floof/templates/art/new.mako
index 4204700..684c004 100644
--- a/floof/templates/art/new.mako
+++ b/floof/templates/art/new.mako
@@ -7,8 +7,12 @@
${h.form(h.url('create_art'), multipart=True)}
-${normal_field(c.form.by)}
-${normal_field(c.form.file)}
+
+ ${normal_field(c.form.by)}
+ ${checkbox_field(c.form.by_me)}
+
+
+${normal_field(c.form.file)}
##Artist: ${h.text('artist')}
@@ -17,17 +21,24 @@ ${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}
-%if field.errors:
-
-%for error in field.errors:
-- ${error}
-%endfor
-
-%endif
-
+ ${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>
\ No newline at end of file