summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorSebastin Santy <sebastinssanty@gmail.com>2017-06-10 05:18:53 +0200
committerDylan William Hardison <dylan@hardison.net>2017-06-10 05:18:53 +0200
commit9243cbb3b6f014563d15c8b7ababdd55a722627a (patch)
tree40aa9450f816610d73c9254c74567bb390bad667 /template/en/default
parentb1abfe7caca072a36c312d6961ff9fbbfe306933 (diff)
downloadbugzilla-9243cbb3b6f014563d15c8b7ababdd55a722627a.tar.gz
bugzilla-9243cbb3b6f014563d15c8b7ababdd55a722627a.tar.xz
Bug 1365342 - Extract the preview comment functionality and make it a reusable template
* Putting variables.none at the top * Put the message at the top * Remove header_done * Add an #xhr-error to show bugzilla_ajax() errors
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/new_bug.html.tmpl29
1 files changed, 20 insertions, 9 deletions
diff --git a/template/en/default/bug/new_bug.html.tmpl b/template/en/default/bug/new_bug.html.tmpl
index 0be090380..96ec7d8d3 100644
--- a/template/en/default/bug/new_bug.html.tmpl
+++ b/template/en/default/bug/new_bug.html.tmpl
@@ -5,16 +5,27 @@
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.%]
-[% PROCESS "global/field-descs.none.tmpl" %]
-
+[% PROCESS global/variables.none.tmpl %]
[% title = BLOCK %]Enter [% terms.Bug %] [% END %]
-
-[% PROCESS global/header.html.tmpl
- title = title
- generate_api_token = 1
- no_yui = 1
+[% PROCESS bug_modal/common_header.html.tmpl
+title = title
%]
-
+[% PROCESS global/header.html.tmpl %]
<p>Coming Soon!</p>
+<p>This is a demonstration of a reusable comment component</p>
+[%
+ IF user.id;
+ INCLUDE bug_modal/common_new_comment.html.tmpl;
+ ELSE;
+ %]
+ <div id="new-comment-notice">
+ You need to <a href="new-bug&amp;GoAheadAndLogIn=1">log in</a>
+ before you can file a [% terms.bug %].
+ </div>
+ [%
+ END;
+ %]
+
+<div style="display: none" id="xhr-error"></div>
-[% PROCESS global/footer.html.tmpl %]
+[% PROCESS global/footer.html.tmpl %] \ No newline at end of file