projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merged suff, commented out some of my own
[zzz-floof.git]
/
floof
/
templates
/
art
/
new.mako
diff --git
a/floof/templates/art/new.mako
b/floof/templates/art/new.mako
index
2b18b42
..
0adc916
100644
(file)
--- a/
floof/templates/art/new.mako
+++ b/
floof/templates/art/new.mako
@@
-3,24
+3,40
@@
<h1>Add New Art</h1>
${h.form(h.url('create_art'), multipart=True)}
<h1>Add New Art</h1>
${h.form(h.url('create_art'), multipart=True)}
+##<<<<<<< HEAD
+##<div>
+## ${normal_field(c.form.by)}
+## ${checkbox_field(c.form.by_me)}
+##</div>
+##
+##<div>${normal_field(c.form.file)}</div>
+##=======
## Todo: write some macros to make outputting form fields easier.
${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()}
${h.submit(None, 'Upload!')}
${h.end_form()}
+<%def name="field_errors(errors)">
+ %if errors:
+ <ul class="errors">
+ %for error in errors:
+ <li>${error}
+ %endfor
+ </ul>
+ %endif
+</%def>
+
<%def name="normal_field(field)">
<%def name="normal_field(field)">
-<div>
-${field.label()|n}
-${field()|n}
-%if field.errors:
-<ul class="errors">
-%for error in field.errors:
-<li>${error}
-%endfor
-</ul>
-%endif
-</div>
+ ${field.label()|n}
+ ${field()|n}
+ ${field_errors(field.errors)}
</%def>
</%def>
+
+<%def name="checkbox_field(field)">
+ ${field()|n} ${field.label()|n}
+ ${field_errors(field.errors)}
+</%def>
\ No newline at end of file