projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dbab5e9
)
add support for an attachment upload field
author
Joey Hess
<joey@kodama.kitenet.net>
Tue, 1 Jul 2008 01:15:19 +0000
(21:15 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Tue, 1 Jul 2008 01:29:37 +0000
(21:29 -0400)
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.
templates/editpage.tmpl
patch
|
blob
|
history
diff --git
a/templates/editpage.tmpl
b/templates/editpage.tmpl
index b0bb0ecb99ceb52b4b7214f214aa5660a64dae53..36b616f5b7d7df80d6d4922b7f13281f85ec39a3 100644
(file)
--- 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">