X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/40a5c182712d31d44aeacddd16a457f5ab707de7..490b45cdc311a09db0266a3f974289e3979bf2ea:/floof/templates/art/new.mako?ds=inline
diff --git a/floof/templates/art/new.mako b/floof/templates/art/new.mako
index 4204700..0adc916 100644
--- a/floof/templates/art/new.mako
+++ b/floof/templates/art/new.mako
@@ -1,33 +1,42 @@
<%inherit file="/base.mako" />
Add New Art
-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)}
-${normal_field(c.form.by)}
+##<<<<<<< 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
-
-##Artist: ${h.text('artist')}
-##${h.file('file')}
${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