From 0ac94a46dee399d8c5cf02d5017bfa30cf3b542e Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 8 Apr 2013 15:55:44 +0800 Subject: Bug 853892: "Internet Public Policy" new bug form --- .../en/default/bug/create/comment-ipp.txt.tmpl | 30 ++++ .../en/default/bug/create/create-ipp.html.tmpl | 163 +++++++++++++++++++++ 2 files changed, 193 insertions(+) create mode 100644 extensions/BMO/template/en/default/bug/create/comment-ipp.txt.tmpl create mode 100644 extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl (limited to 'extensions/BMO/template/en/default/bug') diff --git a/extensions/BMO/template/en/default/bug/create/comment-ipp.txt.tmpl b/extensions/BMO/template/en/default/bug/create/comment-ipp.txt.tmpl new file mode 100644 index 000000000..5c73587a9 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/comment-ipp.txt.tmpl @@ -0,0 +1,30 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi +%] +:: Internet Public Policy Issue + +Region/Country: [% cgi.param("region") %] + +:: Description + +[%+ cgi.param("desc") %] + +:: Relevance + +[%+ cgi.param("relevance") %] + +Goal: [% cgi.param("goal") %] +When: [% cgi.param("when") %] + +[% IF cgi.param("additional") %] +:: Additional Information + +[%+ cgi.param("additional") %] +[% END %] diff --git a/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl new file mode 100644 index 000000000..0bf75f4a9 --- /dev/null +++ b/extensions/BMO/template/en/default/bug/create/create-ipp.html.tmpl @@ -0,0 +1,163 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% inline_style = BLOCK %] +#ipp_form th { + text-align: right; +} + +#ipp_form input[type="text"], #ipp_form textarea { + width: 100%; +} + +#ipp_form textarea { + font-family: inherit; + font-size: inherit; +} +[% END %] + +[% inline_javascript = BLOCK %] +function validateAndSubmit() { + var alert_text = ''; + if (!isFilledOut('component')) alert_text += 'Please select the "Area".\n'; + if (!isFilledOut('short_desc')) alert_text += 'Please enter a "Summary".\n'; + if (!isFilledOut('region')) alert_text += 'Please enter the "Region/Country".\n'; + if (!isFilledOut('desc')) alert_text += 'Please provide a "Description".\n'; + if (!isFilledOut('relevance')) alert_text += 'Please provide some "Relevance".\n'; + if (!isFilledOut('goal')) alert_text += 'Please enter the "Goal".\n'; + if (!isFilledOut('when')) alert_text += 'Please enter data for the "When" field.\n'; + if (alert_text != '') { + alert(alert_text); + return false; + } + return true; +} +[% END %] + +[% PROCESS global/header.html.tmpl + title = "Internet Public Policy Issue" + style = inline_style + javascript = inline_javascript + javascript_urls = [ 'extensions/BMO/web/js/form_validate.js', + 'js/field.js', 'js/util.js', 'js/bug.js' ] +%] + +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + +

Internet Public Policy Issue

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Area + +
Summary + +
Region/Country + +
Description + +
Relevance + +
Goal + +
When + +
Urgency + +
Additional Information + +
 
 
+
+ +[ * Required Field ] + +[% PROCESS global/footer.html.tmpl %] -- cgit v1.2.3-24-g4f1b