summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-30 21:15:19 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-30 21:29:37 -0400
commit6643db0cd20be4fdc6d06c767b079575e4e757f2 (patch)
tree7c3319267becbe4306c4aabc7fe566b160619d4b
parentdbab5e9b85b04c5ae5b8687b954ff0ae96f1c3f4 (diff)
add support for an attachment upload field
FormBuilder makes it annoyingly hard to move a submit button to a nonstandard place. The button name has to be "_submit" or FormBuilder will ignore it.
-rw-r--r--templates/editpage.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl
index b0bb0ecb9..36b616f5b 100644
--- a/templates/editpage.tmpl
+++ b/templates/editpage.tmpl
@@ -60,6 +60,11 @@ Optional comment about this change:<br />
</TMPL_IF>
<TMPL_VAR FORM-SUBMIT>
<TMPL_VAR HELPONFORMATTINGLINK>
+<TMPL_IF NAME="FIELD-ATTACHMENT">
+<div id=attachment><p>
+Attach a file: <TMPL_VAR FIELD-ATTACHMENT><input name="_submit" type="submit" value="Upload" />
+</p></div>
+</TMPL_IF>
<TMPL_VAR FORM-END>
<TMPL_IF NAME="PAGE_PREVIEW">