summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorSebastin Santy <sebastinssanty@gmail.com>2017-07-28 22:34:41 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-28 22:34:41 +0200
commite74d21eaeb3bc4ba3a5521882815b6a6c6d45bcc (patch)
treed46e54a47afdbc205cef58697de51da67b2687ca /template
parentdc378846874cca43be0a187d7c38d787395a6538 (diff)
downloadbugzilla-e74d21eaeb3bc4ba3a5521882815b6a6c6d45bcc.tar.gz
bugzilla-e74d21eaeb3bc4ba3a5521882815b6a6c6d45bcc.tar.xz
Bug 1383268 - Add attachments to new-bug
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/new_bug.html.tmpl12
1 files changed, 10 insertions, 2 deletions
diff --git a/template/en/default/bug/new_bug.html.tmpl b/template/en/default/bug/new_bug.html.tmpl
index b1367788d..a8d514142 100644
--- a/template/en/default/bug/new_bug.html.tmpl
+++ b/template/en/default/bug/new_bug.html.tmpl
@@ -18,7 +18,7 @@
[% IF user.id %]
<div style="display: none" id="xhr-error"></div>
- <form name="newbugform" id="newbugform" method="post" action="new_bug.cgi">
+ <form name="newbugform" id="newbugform" method="post" action="new_bug.cgi" enctype="multipart/form-data">
<input type="hidden" value="[% issue_hash_token(['new_bug']) FILTER html %]" name="token">
<div class="new-bug-container">
<div class="new-bug">
@@ -56,7 +56,15 @@
[% INCLUDE bug_modal/common_new_comment.html.tmpl disable_cols=1 %]
[% END %]
[% WRAPPER bug_modal/module.html.tmpl title = "Attach a File" collapsed = 1 %]
- <p>Coming Soon.</p>
+ <div class="file-container">
+ <input type="file" style="display: inline-block;" id="data" name="data" size="50" >
+ <button id="reset" style="display: none;">Reset</button>
+ </div>
+ <label for="description" style="display: inline-block;">Description:</label>
+ <input type="text" id="description" name="description" class="required"
+ size="60" maxlength="200" style="display: inline-block;">
+ <input type="radio" id="autodetect"
+ name="contenttypemethod" value="autodetect" checked="checked" style="display:none">
[% END %]
<button type="submit" id="create-btn" class="create-btn major">Submit</button>
</div>