d4824078cb02b4b33520b1457e61adce961ce79c
[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/webcit_icons/closewindow.gif" border="0"></div>
4         </a>
5         <h2><img src="static/webcit_icons/essen/16x16/attachement.png">&nbsp;<?_("Attachments:")></h2>
6         <ul><?ITERATE("MSG:ATTACHNAMES", ="edit_message_section_attach_select")></ul>
7
8         <iframe id="upload_target" name="upload_target" src="" style="width:0;height:0;border:0">
9                 (Hidden iFrame for uploads because ajax cannot handle files)
10         </iframe>
11
12         <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">
13                 <input type="hidden" name="nonce" value="<?NONCE>">
14                 <div id="gonna_upload_this">
15                         <input type="hidden" name="submit_action" value="">
16                         <?_("Attach file:")>
17                         <input name="attachfile" id="attachfile" class="attachfile" size=40 type="file" onChange="$('gonna_upload_this').style.display='none'; $('upload_throbber').style.display='block'; document.upload_attachment_form.submit(); $('attachfile').value=''; show_attachments_form(); update_attachment_count();">
18                 </div>
19
20                 <div id="upload_throbber" style="display:none">
21                         <?_("Upload")>&nbsp;<img src="static/webcit_icons/throbber.gif" border="0">
22                 </div>
23         </form>