summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug
diff options
context:
space:
mode:
authorSebastin Santy <sebastinssanty@gmail.com>2017-07-03 21:41:09 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-07 00:19:20 +0200
commit3ae73efc60d570fc3f0e918be3889f0ae5a9f263 (patch)
treed8cfb21d3e5a8d2d3bce51949835b8b6e7686549 /template/en/default/bug
parent6f68125893590fc9de60185f5535bae12adbcb54 (diff)
downloadbugzilla-3ae73efc60d570fc3f0e918be3889f0ae5a9f263.tar.gz
bugzilla-3ae73efc60d570fc3f0e918be3889f0ae5a9f263.tar.xz
Bug 1365345 - Modal Bug Entry Prototype
Diffstat (limited to 'template/en/default/bug')
-rw-r--r--template/en/default/bug/new_bug.html.tmpl31
1 files changed, 30 insertions, 1 deletions
diff --git a/template/en/default/bug/new_bug.html.tmpl b/template/en/default/bug/new_bug.html.tmpl
index dc64a9678..3a07dec0a 100644
--- a/template/en/default/bug/new_bug.html.tmpl
+++ b/template/en/default/bug/new_bug.html.tmpl
@@ -9,12 +9,18 @@
[% title = BLOCK %]Enter [% terms.Bug %] [% END %]
[% PROCESS bug_modal/common_header.html.tmpl
title = title
+ jquery = [ "selectize" ]
+ jquery_css = [ "js/jquery/plugins/selectize/selectize.default.css" ]
javascript_urls = ['extensions/BugModal/web/new_bug.js']
%]
[% PROCESS global/header.html.tmpl %]
<p>Coming Soon!</p>
<p>This is a demonstration of a reusable comment component</p>
+<form name="newbugform" id="newbugform" method="post" action="new_bug.cgi">
+
+<input type="hidden" value="[% issue_hash_token(['new_bug']) FILTER html %]" name="token">
+
[% WRAPPER bug_modal/module.html.tmpl
title = ""
%]
@@ -25,6 +31,7 @@
field_type = constants.FIELD_TYPE_FREETEXT
edit_only = 1
editable = 1
+ required = 1
help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#short_desc"
%]
@@ -131,6 +138,27 @@
[% END %]
[% END %]
+[%# === tracking === %]
+
+[% WRAPPER bug_modal/module.html.tmpl
+ title = "Tracking"
+ subtitle = sub
+ collapsed = col
+%]
+ [% WRAPPER fields_lhs %]
+
+ [%# version %]
+ [% INCLUDE bug_modal/field.html.tmpl
+ field = bug_fields.version
+ field_type = constants.FIELD_TYPE_SINGLE_SELECT
+ help = "https://wiki.mozilla.org/BMO/UserGuide/BugFields#version"
+ edit_only = 1
+ editable = 1
+ %]
+
+ [% END %]
+[% END %]
+
[% BLOCK fields_lhs %]
<div class="fields-lhs">[% content FILTER none %]</div>
[% END %]
@@ -153,5 +181,6 @@
%]
<div style="display: none" id="xhr-error"></div>
-
+<button type="submit" id="commit-btn" class="create-btn major">Create New Bug</button>
+</form>
[% PROCESS global/footer.html.tmpl %] \ No newline at end of file