From 9243cbb3b6f014563d15c8b7ababdd55a722627a Mon Sep 17 00:00:00 2001 From: Sebastin Santy Date: Sat, 10 Jun 2017 08:48:53 +0530 Subject: 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 --- template/en/default/bug/new_bug.html.tmpl | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'template/en/default') 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 %]

Coming Soon!

+

This is a demonstration of a reusable comment component

+[% + IF user.id; + INCLUDE bug_modal/common_new_comment.html.tmpl; + ELSE; + %] +
+ You need to log in + before you can file a [% terms.bug %]. +
+ [% + END; + %] + + -[% PROCESS global/footer.html.tmpl %] +[% PROCESS global/footer.html.tmpl %] \ No newline at end of file -- cgit v1.2.3-24-g4f1b