Updated attachment.php to work, sans NotificationCenter
[bugdar.git] / templates / newattach.tpl
1 <%- $doctype %>
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="<%- $stylevar['lang'] %>" xml:lang="<%- $stylevar['lang'] %>" dir="<%- $stylevar['lang_dir'] %>">
3 <head>
4 <%- $headinclude %>
5 <link rel="stylesheet" type="text/css" href="templates/box.css" media="screen" />
6 <title><%-T("New Attachment")%> - <%- $bug['summary'] %></title>
7 </head>
8
9 <body>
10
11 <%- $header %>
12
13 <% if ($show['errors']): %>
14 <div class="error" style="text-align: <%- $stylevar['left'] %>">
15 <%-T("The following errors occurred")%>:
16 <%- $message->errorBox %>
17 </div>
18 <% endif %>
19
20 <form action="attachment.php" method="post" enctype="multipart/form-data" name="newattach">
21
22 <input name="do" type="hidden" value="insert" />
23 <input name="bugid" type="hidden" value="<%- $bug['bugid'] %>" />
24 <input name="MAX_FILE_SIZE" type="hidden" value="<%- $MAXFILESIZE %>" />
25
26 <div class="box">
27 <div class="box-head" style="text-align: <%- $stylevar['left'] %>"><%- sprintf(T('New Attachment for Bug #%1$s %2$s'), $bug['bugid'], $bug['summary']) %></div>
28
29 <div class="box-mid box-margmod-bottom" style="text-align: <%- $stylevar['left'] %>">
30 <div><input name="attachment" type="file" /></div>
31 <div><strong><%-T("Description")%>:</strong> <input name="description" type="text" size="35" value="<%- $input->in['description'] %>" maxlength="250" /></div>
32 </div>
33
34 <% if ($show['obsoletes']): %>
35 <div class="box-mid box-margmod-bottom" style="text-align: <%- $stylevar['left'] %>">
36 <div><strong><%-T("Mark the Following Attachments Obsolete")%>:</strong>
37 <%- $obsoletes %>
38 </div>
39 </div>
40 <% endif %>
41
42 <% if ($show['addcomment']): %>
43 <div class="box-mid" style="text-align: <%- $stylevar['left'] %>">
44 <div><strong><%-T("Add Comment")%>:</strong>
45 <div>
46 <textarea name="comment" rows="10" cols="50" class="textarea"><%- $input->in['comment'] %></textarea>
47 </div>
48 </div>
49 </div>
50 <% endif %>
51 </div>
52
53 <br />
54
55 <div id="submitrow">
56 <input name="submit" type="submit" value=" <%-T("Submit")%> " accesskey="s" />
57 <input name="reset" type="reset" value=" <%-T("Reset")%> " accesskey="r" />
58 <script type="text/javascript"> draw_cancel("showreport.php?bugid=<%- $bug['bugid'] %>"); </script>
59 </div>
60
61 </form>
62
63 <%- $footer %>