Perform uploads via a (eventually to be hidden) iframe
[citadel.git] / webcit / static / t / edit_message / attachments_pane.html
1 <div align="right">
2 <a href="javascript:hide_attachments_form();">
3 <?_("Close window")>&nbsp;<img src="static/closewindow.gif"></div>
4 </a>
5 <h2><img src="static/diskette_24x.gif">&nbsp;<?_("Attachments:")></h2>
6
7 <ul>
8 <li>FIXME this is teh not done
9 <?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")>
10 <li>FIXME <?_("Add")> <?_("Remove")>
11 </ul>
12
13 <iframe id="upload_target" name="upload_target" src="" style="width:100;height:100;border:4px solid #fff;">
14 Missing iframe support?  Teh b0rwser will not work!!!1
15 </iframe>
16
17 <form name="upload_attachment_form" id="upload_attachment_form" accept-charset="UTF-8" enctype="multipart/form-data" method="POST" action="upload_attachment" target="upload_target">
18 <input type="hidden" name="nonce" value="<?NONCE>">
19
20 <input type="hidden" name="submit_action" value="">
21 <?_("Attach file:")>
22 <input name="attachfile" id="attachfile" class="attachfile" size=40 type="file" onChange="document.upload_attachment_form.submit(); $('attachfile').value='';">
23 </form>