aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-01 17:19:38 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-01 17:19:38 -0400
commitc1e9e121b738909a84eba8be327b5eaca74e7964 (patch)
tree9fe2847280b3da38a07035f69707c2066ff209f9 /templates
parent14cb2b0869496105915892b509016b9e46991ee7 (diff)
downloadikiwiki-c1e9e121b738909a84eba8be327b5eaca74e7964.tar
ikiwiki-c1e9e121b738909a84eba8be327b5eaca74e7964.tar.gz
basic attachment list
Diffstat (limited to 'templates')
-rw-r--r--templates/editpage.tmpl16
1 files changed, 13 insertions, 3 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl
index 36b616f5b..1a27beb6f 100644
--- a/templates/editpage.tmpl
+++ b/templates/editpage.tmpl
@@ -61,9 +61,19 @@ Optional comment about this change:<br />
<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>
+<div id=attachments>
+<br />
+<table><caption>Attachments</caption>
+<tr><td colspan=5><TMPL_VAR FIELD-ATTACHMENT><TMPL_VAR FIELD-UPLOAD></td></tr>
+<TMPL_LOOP NAME="ATTACHMENT_LIST">
+<tr><td><TMPL_VAR FIELD-SELECT><TMPL_VAR LINK></td><td><TMPL_VAR SIZE></td><td><TMPL_VAR MTIME></td></tr>
+</TMPL_LOOP>
+<TMPL_IF NAME="ATTACHMENT_LIST">
+<tr><td colspan=2><TMPL_VAR FIELD-LINK><TMPL_VAR FIELD-DELETE><TMPL_VAR FIELD-RENAME></td></tr>
+</TMPL_IF>
+</tr>
+</table>
+</div>
</TMPL_IF>
<TMPL_VAR FORM-END>