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.
master
Joey Hess 2008-06-30 21:15:19 -04:00
parent dbab5e9b85
commit 6643db0cd2
1 changed files with 5 additions and 0 deletions

View File

@ -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">